Skip to content

Global log attributes are not merged with per-log attributes when capturing structured logs #1485

@tustanivsky

Description

@tustanivsky

When using structured logging with both global attributes (set via sentry_set_attribute()) and per-log attributes (passed to sentry_log_*() functions), the global attributes are not included in the captured log and only the per-log attributes appear.

Expected Behavior:
Global attributes should be merged with per-log attributes when capturing a log entry.

Actual Behavior:
When per-log attributes are provided, global attributes are completely ignored/overwritten.

Related items:

Metadata

Metadata

Assignees

Labels

BugSomething isn't workingNative

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions