Skip to content

Try to make MEL and Serilog integrations behave more consistently #5635

Open

Description

@jamescrosswell
  • Which values: MEL keeps only string values (UserId = 42 is dropped). Serilog converts every property with ToString().
  • When they're read: MEL copies the values into the Sentry scope when BeginScope is called. Serilog reads LogContext each time an event is captured.
  • Opt-out: MEL can be customised or switched off through the public SentryOptions.SentryScopeStateProcessor. The Serilog processor is internal, so it can't be removed or replaced.
  • Global mode (MAUI, desktop): MEL's PushScope does nothing there. The Serilog processor still runs.

Originally posted by @ric-oliv in #5573 (comment)

Activity

  1. linear-code commented on Sep 28, 2026

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions