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

Intercept frequently used attributes like trace id, workspace id #46

Open
yashpokar opened this issue Feb 7, 2023 · 0 comments
Open

Comments

@yashpokar
Copy link

Most of the time while designing the web application, we repeatedly log things like x-trace-id, request-id. Specific to segment's use-case WorkspaceID is also one mostly being logged.

Wouldn't that be a good idea to expose middleware like API to intercept the logger where we can add such repeatedly used attributes.

Inspired by: morgan

@yashpokar yashpokar changed the title Intercept frequently used arguments like trace id Intercept frequently used attributes like trace id, workspace id Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant