Skip to content

DataCollection phase 2: migrate Sentry.AspNetCore #5430

Description

@jamescrosswell

Part of #5420. Phase 2 — behavior-neutral consumer migration.

Migrate Sentry.AspNetCore to the resolved config:

  • src/Sentry.AspNetCore/ScopeExtensions.cs:40-52 — user factory gating → UserInfo.
  • :140-151 — cookie/header capture → Cookies / HttpHeaders.Request behaviors (shared filter utility).
  • :155-159REMOTE_ADDR client IP → UserInfo.
  • :136 — query string → UrlQueryParams behavior.
  • :170-186 + RequestBodyExtractionDispatcher — body capture → HttpBodies flag for whether; MaxRequestBodySize keeps governing size (integration option takes precedence).
  • src/Sentry.AspNetCore.Grpc/ProtobufRequestExtractionDispatcher.cs — same gating for protobuf bodies.
  • src/Sentry.OpenTelemetry/AspNetCoreEnricher.cs:11-20 — user factory gating → UserInfo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions