-
Notifications
You must be signed in to change notification settings - Fork 606
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
Update pymemcache instrumentation to follow semantic conventions #183
Update pymemcache instrumentation to follow semantic conventions #183
Conversation
cc @lzchen |
@@ -115,7 +114,7 @@ def wrapper(wrapped, instance, args, kwargs): | |||
@_with_tracer_wrapper | |||
def _wrap_cmd(tracer, cmd, wrapped, instance, args, kwargs): | |||
with tracer.start_as_current_span( | |||
_CMD, kind=SpanKind.INTERNAL, attributes={} | |||
cmd, kind=SpanKind.CLIENT, attributes={} | |||
) as span: |
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.
From before, does pymemcache not have the concept of 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.
I am not sure if I understood you correctly, but memcache supports this list of commands. We are using the command as a 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.
Sorry I was referring to adding the db.name
attribute. We should have it as a span attribute and also use it as a span name fallback if the command isn't present for some reason.
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.
No, it doesn't have any concept of databases that can be used for db.name
.
Description
Part of #159
Type of change
How Has This Been Tested?
tox -e test-instrumentation-pymemcache