Skip to content

Add custom attributes to log messages - #9

Open
xperimental wants to merge 1 commit into
ankurcha:masterfrom
xperimental:custom-attributes
Open

Add custom attributes to log messages#9
xperimental wants to merge 1 commit into
ankurcha:masterfrom
xperimental:custom-attributes

Conversation

@xperimental

Copy link
Copy Markdown

From looking at the current implementation it looks to me like there is no way of attaching arbitrary information to a log message aside from using the MDC, which groups all the information under details and also looks like it only works properly if a single request is not multiplexed across multiple threads.

This pull-request provides a simple implementation for attaching custom information to a log entry.

@xperimental
xperimental force-pushed the custom-attributes branch 2 times, most recently from 64e381c to 97e0d49 Compare June 21, 2021 17:41
@xperimental

Copy link
Copy Markdown
Author

Any opinion on this?

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