Skip to content

feat: Rename deprecated net. span attributes - #23301

Draft
s1gr1d wants to merge 2 commits into
developfrom
sig/network-attributes
Draft

feat: Rename deprecated net. span attributes#23301
s1gr1d wants to merge 2 commits into
developfrom
sig/network-attributes

Conversation

@s1gr1d

@s1gr1d s1gr1d commented Aug 11, 2026

Copy link
Copy Markdown
Member

Related to Linear: https://linear.app/getsentry/issue/SDK-1348/align-network-span-attributes

v10 attribute v11 attribute
net.host.name server.address
net.host.ip network.local.address
net.host.port network.local.port
net.peer.name server.address
net.peer.ip network.peer.address
net.peer.port network.peer.port
net.transport network.transport

@s1gr1d
s1gr1d requested review from a team as code owners August 11, 2026 14:43
@s1gr1d
s1gr1d requested review from JPeer264 and mydea and removed request for a team August 11, 2026 14:43
@s1gr1d

s1gr1d commented Aug 11, 2026

Copy link
Copy Markdown
Member Author

bugbot run


String and regular-expression matching for `tracePropagationTargets` is now case-insensitive.

### Span attribute changes

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I added all already existing entries regarding attribute changes under this heading.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Want reviews to match your repository better? Bugbot Learning can learn team-specific rules from PR activity. A team admin can enable Learning in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 43ead46. Configure here.

'net.peer.name': 'localhost',
'net.peer.port': port,
'server.address': 'localhost',
'network.peer.port': port,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

DB tests expect wrong port attribute

High Severity

Database client tests were updated to assert network.peer.port, but the matching instrumentation now emits server.port (via SERVER_PORT). Unit tests such as ioredis/postgres already expect server.port, so these integration and E2E assertions will fail across mysql, mongo, redis, knex, tedious, and similar suites.

Additional Locations (2)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 43ead46. Configure here.

attributes,
NETWORK_PROTOCOL_NAME,
urlObject && !('isRelative' in urlObject) ? urlObject.protocol.slice(0, -1) : undefined,
);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Deno protocol name can be https

Low Severity

New network.protocol.name is derived from the URL scheme, so HTTPS requests get https. Elsewhere this PR hardcodes http and documents network.protocol.name: "http" with the version in network.protocol.version. Scheme belongs in url.scheme.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 43ead46. Configure here.

@github-actions

github-actions Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 30.29 kB - -
@sentry/browser - with treeshaking flags 28.47 kB - -
@sentry/browser - with treeshaking flags tracing without tracing 26.8 kB - -
@sentry/browser (incl. Tracing) 48.57 kB +0.06% +27 B 🔺
@sentry/browser (incl. Tracing + Span Streaming) 48.58 kB +0.05% +22 B 🔺
@sentry/browser (incl. Tracing, Profiling) 51.45 kB +0.04% +19 B 🔺
@sentry/browser (incl. Tracing, Replay) 87.97 kB +0.03% +21 B 🔺
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 77.38 kB +0.03% +22 B 🔺
@sentry/browser (incl. Tracing, Replay with Canvas) 92.68 kB +0.03% +21 B 🔺
@sentry/browser (incl. Tracing, Replay, Feedback) 105.38 kB +0.02% +21 B 🔺
@sentry/browser (incl. Feedback) 47.61 kB - -
@sentry/browser (incl. sendFeedback) 35.11 kB - -
@sentry/browser (incl. FeedbackAsync) 40.26 kB - -
@sentry/browser (incl. Metrics) 31.28 kB - -
@sentry/browser (incl. Logs) 31.53 kB - -
@sentry/browser (incl. Metrics & Logs) 32.2 kB - -
@sentry/react 32.09 kB - -
@sentry/react (incl. Tracing) 50.76 kB +0.05% +23 B 🔺
@sentry/vue 35.34 kB - -
@sentry/vue (incl. Tracing) 50.53 kB +0.05% +23 B 🔺
@sentry/svelte 30.31 kB - -
CDN Bundle 31.59 kB - -
CDN Bundle (incl. Tracing) 48.89 kB +0.05% +21 B 🔺
CDN Bundle (incl. Logs, Metrics) 33.8 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 50.85 kB +0.05% +21 B 🔺
CDN Bundle (incl. Replay, Logs, Metrics) 74.34 kB - -
CDN Bundle (incl. Tracing, Replay) 86.48 kB +0.03% +22 B 🔺
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 88.35 kB +0.03% +26 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) 92.19 kB +0.03% +23 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 94.17 kB +0.03% +23 B 🔺
CDN Bundle - uncompressed 93.77 kB - -
CDN Bundle (incl. Tracing) - uncompressed 146.72 kB +0.04% +50 B 🔺
CDN Bundle (incl. Logs, Metrics) - uncompressed 100.17 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 152.51 kB +0.04% +50 B 🔺
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 229.1 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 265.97 kB +0.02% +50 B 🔺
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 271.75 kB +0.02% +50 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 279.66 kB +0.02% +50 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 285.43 kB +0.02% +50 B 🔺
@sentry/nextjs (client) 53.31 kB +0.05% +23 B 🔺
@sentry/sveltekit (client) 48.98 kB +0.05% +22 B 🔺
@sentry/core/server 65.54 kB +0.16% +103 B 🔺
@sentry/core/browser 51.82 kB +0.04% +20 B 🔺
@sentry/node 117.89 kB -0.09% -97 B 🔽
@sentry/node/import (ESM hook with diagnostics-channel injection) 0 B added added
@sentry/node - without tracing 82.12 kB +0.03% +23 B 🔺
@sentry/aws-serverless 91.52 kB +0.03% +24 B 🔺
@sentry/cloudflare (withSentry) - minified 214.24 kB +0.07% +145 B 🔺
@sentry/cloudflare (withSentry) 528.92 kB +0.06% +280 B 🔺

View base workflow run

@s1gr1d
s1gr1d marked this pull request as draft August 11, 2026 15:02
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.

1 participant