-
Notifications
You must be signed in to change notification settings - Fork 849
Remove span attributes pymemcache #4076
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
base: main
Are you sure you want to change the base?
Remove span attributes pymemcache #4076
Conversation
| ) | ||
| logger = logging.getLogger(__name__) | ||
|
|
||
| NET_TRANSPORT = "network.transport" |
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.
You should be using from opentelemetry.semconv._incubating.attributes.net_attributes import NET_TRANSPORT here.
| address_attributes[NET_PEER_NAME] = host | ||
| address_attributes[NET_PEER_PORT] = port | ||
| address_attributes[NET_TRANSPORT] = ( | ||
| "tcp" |
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.
We cannot perform this update here since there is no suitable alternative since the non-depricated NetworkTransportValues does not have ip_tcp as a value, and we want to ensure no breaking changes here.
...elemetry-instrumentation-pymemcache/src/opentelemetry/instrumentation/pymemcache/__init__.py
Show resolved
Hide resolved
|
@saurabh-saraswat Thanks for the PR but in order to contribute to this project you need to sign the CLA |
Description
Replaces usage of the deprecated SpanAttributes with semconv constants.
Fixes # #3475
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Ptox run -e $(tox --listenvs | grep memcache | tr '\n' ',')
Does This PR Require a Core Repo Change?
Checklist:
See contributing.md for styleguide, changelog guidelines, and more.