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

Missing traceId in error log #301

Closed
wapkch opened this issue Jul 4, 2023 · 1 comment
Closed

Missing traceId in error log #301

wapkch opened this issue Jul 4, 2023 · 1 comment

Comments

@wapkch
Copy link

wapkch commented Jul 4, 2023

As mentioned in spring-projects/spring-framework#30675

The trace id in error log is missing after upgrading from Spring Boot 2 to Spring Boot 3.

After looking into it, i found that add a tomcat TraceValve like Spring Cloud Sleuth does can solve the problem. I'm not sure whether this should be provided by default?

Sample:
https://github.com/wapkch/web-tracing-log-demo

@jonatan-ivanov
Copy link
Member

There is not much we can do for this on Micrometer Tracing side, please see these issues:

As a workaround, you can create an error handler and signal the error on the Observation: example.

@jonatan-ivanov jonatan-ivanov closed this as not planned Won't fix, can't repro, duplicate, stale Jul 11, 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

2 participants