Conversation
…etchIntegration Addresses skill drift from getsentry/sentry-javascript#19770. The nativeNodeFetchIntegration() now accepts headersToSpanAttributes to capture specific HTTP headers as span attributes, which became opt-in after @opentelemetry/instrumentation-undici@0.22.0. Co-Authored-By: Claude (Anthropic) Co-authored-by: HazAT <363802+HazAT@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] [skill-drift] Update sentry-node-sdk for new features
fix(node-sdk): document headersToSpanAttributes on nativeNodeFetchIntegration
Mar 17, 2026
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.
Since
@opentelemetry/instrumentation-undici@0.22.0, response headers likecontent-lengthare no longer captured automatically on outgoing fetch/undici spans.getsentry/sentry-javascript#19770exposedheadersToSpanAttributesonnativeNodeFetchIntegration()to restore this as opt-in behavior. The skill had no documentation for this integration's options.Changes
references/tracing.md: Added "Capturing HTTP Headers on Fetch Spans" subsection under HTTP & Web with the breaking change context, working example, and options table. Updated the Configuration Reference code block to include the integration.SKILL.md: AddednativeNodeFetchIntegration()Options subsection to Config Reference with options table (breadcrumbs,headersToSpanAttributes.requestHeaders,headersToSpanAttributes.responseHeaders).Usage
Original prompt
💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.