Skip to content

Conversation

@saurabh-saraswat
Copy link

Description

Replaces usage of the deprecated SpanAttributes with semconv constants.

Fixes # #3475

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Ptox run -e $(tox --listenvs | grep memcache | tr '\n' ',')

Does This PR Require a Core Repo Change?

  • Yes. - Link to PR:
  • No.

Checklist:

See contributing.md for styleguide, changelog guidelines, and more.

  • Followed the style guidelines of this project
  • Changelogs have been updated
  • Unit tests have been added
  • Documentation has been updated

@linux-foundation-easycla
Copy link

CLA Not Signed

)
logger = logging.getLogger(__name__)

NET_TRANSPORT = "network.transport"
Copy link
Contributor

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"
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants