-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HH-231026 small fixes #742
Conversation
span.set_attribute(SpanAttributes.USER_AGENT_ORIGINAL, tornado_request.headers.get('User-Agent')) | ||
if hasattr(tornado_request, '_path_format'): | ||
span.set_attribute(SpanAttributes.HTTP_ROUTE, getattr(tornado_request, '_path_format')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
это новые строчки, остальное сдвинул просто
description=otel_status_description, | ||
) | ||
span.set_attribute(SpanAttributes.HTTP_STATUS_CODE, status_code) | ||
span.set_attribute(SpanAttributes.USER_AGENT_ORIGINAL, tornado_request.headers.get('User-Agent')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Давай если по каким-то неведомым причинам юзер агента нет, проставим явно 'noUserAgent', как в джаве https://github.com/hhru/nuts-and-bolts/blob/5278d44115583b6ac7fd48aa7a4919ecedf69df4/nab-telemetry/src/main/java/ru/hh/nab/telemetry/TelemetryFilter.java#L67
SonarQube Quality Gate |
https://jira.hh.ru/browse/HH-231026