Skip to content

Chucker API transaction display name formatter (mapper/interceptor) #1339

@NickMelnykIronvest

Description

@NickMelnykIronvest

⚠️ Is your feature request related to a problem? Please describe

Adding simple mapper (interface and/or lambda predicate to ChuckerInterceptor/Collector) to change transaction (URL) display name. For instance, I have long legacy/proxyURL that contain real url at the end. But it is truncated (max line 4 in chucker list), thus it is hard to understand what actual request is, as all legacy/proxy request starting pretty much with the same params. So for display I would like to get HttpTransaction input and provide CharSequence output for display name.

💡 Describe the solution you'd like

Simple mapper for display name of API request. Default impl would match current display name.

📊 Describe alternatives you've considered

I have tries to implement on my own, but ChuckerCollector cannot be inherited/extended. So I do not need to change transaction itself, I only need to remap display name, which I do not found possible at the moment out of the box.

🙋 Do you want to develop this feature yourself?

  • Yes
  • No

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions