Skip to content

Commit 26d9110

Browse files
committed
comment
1 parent 00bf613 commit 26d9110

File tree

1 file changed

+2
-0
lines changed
  • instrumentation/opentelemetry-instrumentation-django/src/opentelemetry/instrumentation/django/middleware

1 file changed

+2
-0
lines changed

instrumentation/opentelemetry-instrumentation-django/src/opentelemetry/instrumentation/django/middleware/otel_middleware.py

+2
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,8 @@ def process_view(self, request, view_func, *args, **kwargs):
318318
duration_attrs = request.META[
319319
self._environ_duration_attr_key
320320
]
321+
# Metrics currently use the 1.11.0 schema, which puts the route in `http.target`.
322+
# TODO: use `http.route` when the user sets `OTEL_SEMCONV_STABILITY_OPT_IN`.
321323
duration_attrs[SpanAttributes.HTTP_TARGET] = route
322324

323325
def process_exception(self, request, exception):

0 commit comments

Comments
 (0)