Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 of 2 tasks
NickMelnykIronvest opened this issue Jan 27, 2025 · 2 comments
Open
1 of 2 tasks

Comments

@NickMelnykIronvest
Copy link

NickMelnykIronvest commented Jan 27, 2025

⚠️ 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
@cortinico
Copy link
Member

This is not easily achievable today. I think the easiest thing we could add is a Redact-URL feature similar to the Redact-Header feature we have explained here: https://github.com/ChuckerTeam/chucker#redact-header-%EF%B8%8F

@NickMelnykIronvest
Copy link
Author

@cortinico please see this PR
#1340

@NickMelnykIronvest NickMelnykIronvest changed the title Chucker API transaction display name mapper/interceptor Chucker API transaction display name formatter (mapper/interceptor) Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants