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

Feature Request: custom operation name in middleware #61

Open
AgDude opened this issue Nov 5, 2019 · 0 comments
Open

Feature Request: custom operation name in middleware #61

AgDude opened this issue Nov 5, 2019 · 0 comments

Comments

@AgDude
Copy link

AgDude commented Nov 5, 2019

The current implementation of the DjangoTracing class forces the use of view_func.__name__ as the operation name for the span. I have a use case with class based views where the view func ends up being the same, but they are distinct operations. I would like the ability to customize this without overriding the entire _apply_tracing method.

Perhaps accept a kwarg for operation name so subclasses could handle it.

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

1 participant