Skip to content

DataCollection phase 2: migrate OpenTelemetry and logging integrations #5435

Closed as not planned

Description

@jamescrosswell

Part of #5420. Phase 2 — consumer migration.

Migrate remaining integrations to the resolved config:

  • src/Sentry.OpenTelemetry/SentrySpanProcessor.cs — db attribute passthrough. db.statement / db.query.text stay ungated: the spec puts query statements outside databaseQueryData, and ref: remove the experimental DataCollectionOptions.DatabaseQueryData until .NET collects query data #5933 removed that option because .NET collects nothing it covers. Any db.query.parameter.* attributes on OTel spans belong to DataCollection: capture database query parameters and reintroduce DatabaseQueryData #5955, which brings the option back. Messaging attributes are out of scope: Queues was dropped from the options.
  • src/Sentry.Serilog/SentrySinkExtensions.cs:20,255 — sendDefaultPii sink parameter (keep mapping to the legacy option until the major; document).
  • src/Sentry.NLog/SentryTarget.cs:490-502 — user layouts → these are user-configured (explicit), so per spec they are NOT gated; confirm and add a test locking that in.
  • src/Sentry.Extensions.Logging — anything reading SendDefaultPii via options binding.

Category list narrowed (2026-11-05). Mcp, Queues, FilePaths, StackFrameVariables and FrameContextLines were removed from DataCollectionOptions in #5853, as none has a consumer in the .NET SDK and the spec is still a candidate. See the deferred-categories note on #5420. This issue has been updated accordingly.

Activity

  1. added
    Feature
    on Jul 22, 2026
  2. linear-code commented on Jul 22, 2026

    @linear-code
  3. added
    .NET
    on Jul 22, 2026
  4. jamescrosswell commented on Nov 18, 2026

    @jamescrosswell
    CollaboratorAuthor

    Not planned. Sentry.OpenTelemetry is deprecated in favour of Sentry.OpenTelemetry.Exporter, so it won't be moved onto the DataCollection options. #5967 adds XML doc remarks to AddSentry and SentrySpanProcessor saying they don't apply ConfigureDataCollection. The deprecated OpenTelemetry page in the .NET docs will get a Data Collection section saying the same.

    The logging integrations had nothing to migrate. None of Sentry.Serilog, Sentry.NLog, Sentry.Log4Net or Sentry.Extensions.Logging reads SendDefaultPii, and Serilog's sendDefaultPii sink parameter went away in #5573. NLog's User layouts are configured by the app, so the spec treats them as user-set data and they stay ungated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    .NETFeature

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions