Repository navigation
Conversation
The Python SDK's Django integration sends the Unix socket path of a MySQL connection as server.socket.address. OpenTelemetry semantic conventions only defined this attribute in v1.21.0, as the peer address on client spans and the local address on server spans, and replaced it with network.peer.address and network.local.address in v1.22.0. Add it as deprecated in favor of network.peer.address without a backfill, like net.peer.name and net.peer.port, since the right replacement depends on the span side. Alias it with net.peer.ip and net.sock.peer.addr.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Semver Impact of This PR🟡 Minor (new features) 📋 Changelog PreviewThis is how your changes will appear in the changelog. New Features ✨Attributes
🤖 This preview updates automatically when you update the PR. |
srothh
marked this pull request as ready for review
December 1, 2026 09:50
srothh
requested review from
a team,
Lms24,
alexander-alderman-webb,
andreiborza,
cleptric,
giortzisg,
mjq and
nsdeschenes
as code owners
December 1, 2026 09:50
alexander-alderman-webb
approved these changes
Dec 1, 2026
alexander-alderman-webb
left a comment
Contributor
There was a problem hiding this comment.
Thanks this makes sense.
I remember that we added deprecated attributes for what we used to set in the SDK when doing the span first migration, and this addition fits that pattern.
Leaving this attribute in the SDK was one of a few oversights since we didn't strictly enforce conventions usage during the migration.
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The Python SDK's Django integration sends the Unix socket path of a MySQL connection as server.socket.address. OpenTelemetry semantic conventions only defined this attribute in v1.21.0, as the peer address on client spans and the local address on server spans, and replaced it with network.peer.address and network.local.address in v1.22.0.
PR Checklist
yarn testand verified that the tests pass.yarn generateto generate and format code and docs.If an attribute was added:
nextjs.function_id, notfunction_id)apply_scrubbing(i.e.manualorauto. Useneveronly for values that should never be scrubbed such as IDs)If an attribute was deprecated: