Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmojaki committed Jul 16, 2024
1 parent 00bf613 commit 26d9110
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,8 @@ def process_view(self, request, view_func, *args, **kwargs):
duration_attrs = request.META[
self._environ_duration_attr_key
]
# Metrics currently use the 1.11.0 schema, which puts the route in `http.target`.
# TODO: use `http.route` when the user sets `OTEL_SEMCONV_STABILITY_OPT_IN`.
duration_attrs[SpanAttributes.HTTP_TARGET] = route

def process_exception(self, request, exception):
Expand Down

0 comments on commit 26d9110

Please sign in to comment.