Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
Add HTTP_TARGET to server duration and active requests
  • Loading branch information
philipcwhite authored Jan 2, 2024
1 parent 7c12ad9 commit 325b397
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ def response_hook(span: Span, environ: WSGIEnvironment, status: str, response_he
SpanAttributes.HTTP_SERVER_NAME,
SpanAttributes.NET_HOST_NAME,
SpanAttributes.NET_HOST_PORT,
SpanAttributes.HTTP_TARGET,
]

_active_requests_count_attrs = [
Expand All @@ -257,6 +258,7 @@ def response_hook(span: Span, environ: WSGIEnvironment, status: str, response_he
SpanAttributes.HTTP_SCHEME,
SpanAttributes.HTTP_FLAVOR,
SpanAttributes.HTTP_SERVER_NAME,
SpanAttributes.HTTP_TARGET,
]


Expand Down

0 comments on commit 325b397

Please sign in to comment.