-
Notifications
You must be signed in to change notification settings - Fork 698
feat(wsgi): low cardinality span name and name override #837
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
Conversation
Signed-off-by: Emil Madsen <[email protected]>
…rdinality_span_names
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.
A couple minor changes requested. Only one comment requires attention, there may be a bug on the implementation of get_default_span_name
, so please just respond to it, @majorgreys.
ext/opentelemetry-ext-wsgi/src/opentelemetry/ext/wsgi/__init__.py
Outdated
Show resolved
Hide resolved
ext/opentelemetry-ext-wsgi/src/opentelemetry/ext/wsgi/__init__.py
Outdated
Show resolved
Hide resolved
def get_predefined_span_name(scope): | ||
# pylint: disable=unused-argument | ||
return span_name |
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.
Nit: this could be replaced with a Mock
:
In [4]: from unittest.mock import Mock
In [5]: the_mock = Mock(**{"return_value": "Dymaxion"})
In [6]: the_mock({"a": "b"})
Out[6]: 'Dymaxion'
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.
Nice
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.
Please review the comments, @majorgreys.
ext/opentelemetry-ext-wsgi/src/opentelemetry/ext/wsgi/__init__.py
Outdated
Show resolved
Hide resolved
ext/opentelemetry-ext-wsgi/src/opentelemetry/ext/wsgi/__init__.py
Outdated
Show resolved
Hide resolved
Co-authored-by: Diego Hurtado <[email protected]>
Closes #440