Skip to content

feat(attributes): Add deprecated server.socket.address attribute - #840

Open
srothh wants to merge 2 commits into
mainfrom
srothh/deprecate-server-socket-address
Open

srothh wants to merge 2 commits into
mainfrom
srothh/deprecate-server-socket-address

Conversation

@srothh

@srothh srothh commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

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

  • I have run yarn test and verified that the tests pass.
  • I have run yarn generate to generate and format code and docs.

If an attribute was added:

  • The attribute is in a namespace (e.g. nextjs.function_id, not function_id)
  • I have used the correct value for apply_scrubbing (i.e. manual or auto. Use never only for values that should never be scrubbed such as IDs)

If an attribute was deprecated:

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.
@vercel

vercel Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
sentry-conventions Ready Ready Preview Nov 30, 2026 2:01pm UTC

Request Review

@github-actions

Copy link
Copy Markdown

Semver Impact of This PR

🟡 Minor (new features)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


New Features ✨

Attributes

  • Add deprecated server.socket.address attribute by srothh in #840
  • Add missing log severity attributes by srothh in #831
  • Add WebSocket span name convention by chargome and claude in #836

🤖 This preview updates automatically when you update the PR.

@alexander-alderman-webb alexander-alderman-webb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

1 active deployment
Preview — f8d83298 Deployed Nov 30, 2026 by vercel[bot]
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