Skip to content

feat: expose Sentry data collection controls (2.5.0) - #25

Merged
benminer merged 1 commit into
mainfrom
bminer/eng-559-expose-sentry-data-collection-controls-before
Nov 13, 2026
Merged

benminer merged 1 commit into
mainfrom
bminer/eng-559-expose-sentry-data-collection-controls-before

Conversation

@benminer

Copy link
Copy Markdown
Collaborator

Expose Sentry's dataCollection option so services can exclude selected automatically collected HTTP headers before request spans are created. For example, a request-header deny rule suppresses the header value at spanStart while the handler still receives it.

The optional setting is forwarded unchanged to the pinned Sentry SDK. Omitting it preserves existing behavior; supplied settings follow the SDK's precedence and defaults. These controls do not filter manually added span attributes or data collected by other instrumentation. This change does not upgrade the SDK.

  • Adds compiled-wrapper loopback coverage for Sentry-only and OTLP-enabled tracing, plus request and response option forwarding.
  • Independently checked default and deny behavior against local Sentry and OTLP receivers, with an unrelated header as a positive control.
  • Prepares version 2.5.0 for the existing manually dispatched release workflow.

Validation: build, typecheck, lint, and 62 tests passed locally on Node 24. CI covers Node 20.20.2 and 24.

Closes ENG-559

@benminer
benminer merged commit 0b2d2fd into main Nov 13, 2026
2 checks passed
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