Skip to content

feat(logs): Add Monolog channel to compiled log attributes#2029

Open
melkamar wants to merge 1 commit intogetsentry:masterfrom
melkamar:patch-1
Open

feat(logs): Add Monolog channel to compiled log attributes#2029
melkamar wants to merge 1 commit intogetsentry:masterfrom
melkamar:patch-1

Conversation

@melkamar
Copy link

Description

Adds channel name to the log metadata.

The channel is a relevant piece of metadata of a log entry. This change includes the channel in the recorded attributes, but remains backwards compatible and will not overwrite existing extra or context fields named 'channel'.

I considered making this an opt-in configuration of the Handler in the constructor, but since this is backwards compatible, I figured that's not necessary.

The channel is a relevant piece of metadata of a log entry.
This change includes the channel in the recorded attributes,
but remains backwards compatible and will not overwrite
existing extra or context fields named 'channel'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant