Skip to content

The SetDefaultAttributes call in CaptureLog overwrites user-set attributes from the configureLog callback #5351

Description

@jamescrosswell

This is not a new problem, but existing behavior, that we now add more default attributes that potentially overwrite user-defined attributes. Previously, we would overwrite

  • sentry.environment

  • sentry.release

  • sentry.sdk.name

  • sentry.sdk.version

We could open a follow-up to change this behavior.

This is technically a change in behavior, so we might want to do this in the next major (v7.0.0).

But we probably do want to do this, because with Metrics we did get it right where user-attributes might overwrite default-attributes.

Originally posted by @Flash0ver in #5216

Metadata

Metadata

Assignees

No one assigned

    Labels

    .NETPull requests that update .net codeFeatureNew feature or requestLogs

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions