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

rest middleware: add trace_id into the log buffer #52

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

isogram
Copy link
Collaborator

@isogram isogram commented Nov 12, 2024

What does this PR do?
This PR enhances our logging mechanism by including the trace_id in the log output. This improvement allows us to trace requests more effectively.

Why is this change necessary?
Currently, tracing requests based on the trace_id from the console output is challenging if the trace_id is not readily available. By adding the trace_id to the log output, we can easily retrieve and analyze request details.

Additional Notes

  • This change does not affect the existing functionality but enhances the logging for better traceability.
  • Ensure that the tracer is properly initialized in the context.

@isogram isogram added the enhancement New feature or request label Nov 12, 2024
@isogram isogram requested a review from a team as a code owner November 12, 2024 10:48
@agungdwiprasetyo agungdwiprasetyo changed the base branch from master to development November 13, 2024 01:16
@agungdwiprasetyo agungdwiprasetyo merged commit 44080aa into golangid:development Nov 13, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants