python-django icon indicating copy to clipboard operation
python-django copied to clipboard

Feature Request: custom operation name in middleware

Open AgDude opened this issue 6 years ago • 0 comments

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.

AgDude avatar Nov 05 '19 19:11 AgDude