Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the ability to customize the log record field name for correlation ids. #115

Merged
merged 2 commits into from
Apr 25, 2024

Conversation

NiklasBeierl
Copy link
Contributor

Motivation

I use elastic common schema for the logs of my django application (with ecs-logging). ECS dictates the use of http.request.id as the field name for request ids. At the moment I use an an additional filter that moves the field form correlation_id to http.request.id, but I figured it is much cleaner to choose the field name here and other people might also find this usefull. Very neat package btw, thx!

@NiklasBeierl NiklasBeierl force-pushed the custom_log_field branch 2 times, most recently from 3010417 to 9e42cb4 Compare February 3, 2024 00:27
@NiklasBeierl
Copy link
Contributor Author

NiklasBeierl commented Mar 27, 2024

Hey @JonasKs @sondrelg @ingvaldlorentzen is snok still invested in maintaining this package?

@JonasKs
Copy link
Member

JonasKs commented Mar 27, 2024

Wow - I never saw this.
I'll try to get to it this weekend. Sorry.

@NiklasBeierl
Copy link
Contributor Author

NiklasBeierl commented Apr 25, 2024

Wow - I never saw this. I'll try to get to it this weekend. Sorry.

One of those long weekends again. 😝

(No offense, I know what it's like! 😆)

@JonasKs
Copy link
Member

JonasKs commented Apr 25, 2024

You're right, sorry. Life's busy these days.

LGTM!

@JonasKs JonasKs merged commit d039a7e into snok:main Apr 25, 2024
12 checks passed
@JonasKs
Copy link
Member

JonasKs commented Apr 25, 2024

I've pushed a new release, should be out in a few mins.

@NiklasBeierl NiklasBeierl deleted the custom_log_field branch April 25, 2024 15:53
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.

2 participants