Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/HH-237726' into EXP-105586
Browse files Browse the repository at this point in the history
  • Loading branch information
HH ReleaseBot committed Jan 17, 2025
2 parents fc5f2e4 + 78e4fb1 commit 87d1ec4
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions frontik/request_integrations/telemetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
def _start_span(tracer, tornado_request) -> trace.span.Span:
span, token = _start_internal_or_server_span(
tracer=tracer,
span_name=_get_default_span_name(tornado_request),
span_name='undefinedOperation',
start_time=time_ns(),
context_carrier=tornado_request.headers,
context_getter=textmap.default_getter,
Expand All @@ -45,14 +45,6 @@ def _start_span(tracer, tornado_request) -> trace.span.Span:
return span


def _get_default_span_name(tornado_request):
path = tornado_request.path
method = tornado_request.method
if method and path:
return f'{method} {path}'
return f'{method}'


def _get_attributes_from_request(tornado_request: HTTPServerRequest):
attrs = {
SpanAttributes.HTTP_METHOD: tornado_request.method,
Expand Down

0 comments on commit 87d1ec4

Please sign in to comment.