Skip to content

Releases: getsentry/sentry-dotnet

4.4.0

12 Apr 23:57

Choose a tag to compare

Features

  • Metrics now honor any Rate Limits set in HTTP headers returned by Sentry (#3276)

Fixes

  • Fixed normalization for metric tag values for carriage return, line feed and tab characters (#3281)

Dependencies

4.3.0

10 Apr 20:11

Choose a tag to compare

Features

  • EnableNetworkEventBreadcrumbs can now be set on the Native Android options (#3267)
  • Update normalization of metrics keys, tags and values (#3271)

Fixes

  • Fix missing exception StackTraces in some situations (#3215)
  • Scopes now get applied to OTEL spans in ASP.NET Core (#3221)
  • Fixed InvalidCastException when setting the SampleRate on Android (#3258)
  • Fixed MAUI iOS build issue related to SentryVersionNumber and SentryVersionString (#3278)

API changes

  • Removed SentryOptionsExtensions class - all the public methods moved directly to SentryOptions (#3195)

Dependencies

4.2.1

12 Mar 13:14

Choose a tag to compare

Fixes

  • Dynamic Sampling Context not propagated correctly for HttpClient spans (#3208)

4.2.0

11 Mar 19:04

Choose a tag to compare

Features

  • ASP.NET Core: Blocking call detection. An event with the stack trace of the blocking call will be captured as event. (#2709)
    • IMPORTANT: Verify this in test/staging before prod! Blocking calls in hot paths could create a lot of events for your Sentry project.
    • Opt-in via options.CaptureBlockingCalls = true
    • Disabled for specific code blocks with using (new SuppressBlockingDetection())
    • Doesn't detect everything. See original Caveats described by Ben Adams.
  • Added Crons support via SentrySdk.CaptureCheckIn and an integration with Hangfire (#3128)
  • Common tags set automatically for metrics and metrics summaries are attached to Spans (#3191)

API changes

  • Removed ScopeExtensions class - all the public methods moved directly to Scope (#3186)

Fixes

  • The Sentry Middleware on ASP.NET Core no longer throws an exception after having been initialized multiple times (#3185)
  • Empty strings are used instead of underscores to replace invalid metric tag values (#3176)
  • Filtered OpenTelemetry spans are garbage collected correctly (#3198)

Dependencies

4.1.2

20 Feb 12:03

Choose a tag to compare

Fixes

  • Metric unit names are now sanitized correctly. This was preventing some built in metrics from showing in the Sentry dashboard (#3151)
  • The Sentry OpenTelemetry integration no longer throws an exception with the SDK disabled (#3156)

4.1.1

14 Feb 20:21

Choose a tag to compare

Fixes

  • The SDK can be disabled by setting options.Dsn = ""; By convention, the SDK allows the DSN set to string.Empty to be overwritten by the environment. (#3147)

Dependencies

4.1.0

09 Feb 23:50

Choose a tag to compare

Features

  • The SDK now automatically collects metrics coming from OpenTelemetry.Instrumentation.Runtime (#3133)

Fixes

  • "No service for type 'Sentry.IHub' has been registered" exception when using OpenTelemetry and initializing Sentry via SentrySdk.Init (#3129)

4.0.3

07 Feb 18:32

Choose a tag to compare

Fixes

  • To resolve conflicting types due to the SDK adding itself to the global usings:
    • The class Sentry.Constants has been renamed to Sentry.SentryConstants (#3125)

4.0.2

06 Feb 23:01

Choose a tag to compare

Fixes

  • To resolve conflicting types due to the SDK adding itself to the global usings:
  • The class Sentry.Context has been renamed to Sentry.SentryContext (#3121)
  • The class Sentry.Package has been renamed to Sentry.SentryPackage (#3121)
  • The class Sentry.Request has been renamed to Sentry.SentryRequest (#3121)

Dependencies

4.0.1

05 Feb 23:02

Choose a tag to compare

Fixes

  • To resolve conflicting types due to the SDK adding itself to the global usings:
  • The interface Sentry.ISession has been renamed to Sentry.ISentrySession (#3110)
  • The interface Sentry.IJsonSerializable has been renamed to Sentry.ISentryJsonSerializable (#3116)
  • The class Sentry.Session has been renamed to Sentry.SentrySession (#3110)
  • The class Sentry.Attachment has been renamed to Sentry.SentryAttachment (#3116)
  • The class Sentry.Hint has been renamed to Sentry.SentryHint (#3116)

Dependencies