Skip to content

Commit

Permalink
Request ASGI attributes passed to Sampler
Browse files Browse the repository at this point in the history
  • Loading branch information
tammy-baylis-swi committed Apr 17, 2023
1 parent d01c96f commit d17ca4c
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -531,15 +531,16 @@ async def __call__(self, scope, receive, send):

span_name, additional_attributes = self.default_span_details(scope)

attributes = collect_request_attributes(scope)
attributes.update(additional_attributes)
span, token = _start_internal_or_server_span(
tracer=self.tracer,
span_name=span_name,
start_time=None,
context_carrier=scope,
context_getter=asgi_getter,
attributes=attributes,
)
attributes = collect_request_attributes(scope)
attributes.update(additional_attributes)
active_requests_count_attrs = _parse_active_request_count_attrs(
attributes
)
Expand Down

0 comments on commit d17ca4c

Please sign in to comment.