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

No traceId for SpringCloudGateway request in SpringBoot 3.2.0 #1694

Closed
MatthiasDrewsCS opened this issue Nov 29, 2023 · 3 comments
Closed

No traceId for SpringCloudGateway request in SpringBoot 3.2.0 #1694

MatthiasDrewsCS opened this issue Nov 29, 2023 · 3 comments
Labels

Comments

@MatthiasDrewsCS
Copy link

After upgrading a SpringCloudGateway application to SpringBoot 3.2.0, and SpringCloud 2023.0.0-RC1, there is no traceId logged with the request.

Description

There is however a traceId logged with the response. We are using the LogbookWebFilter.

With SpringBoot 3.1.5 and SpringCloud 2022.0.4, the behavior was the opposite. The traceId was logged with request, but not with the response. However we managed to apply a workaround for our application, to get the traceId also with the response.

Expected Behavior

The instrumentation of Spring should make sure, that traceIds are logged for requests and responses.

Actual Behavior

TraceIds are logged with the response only.

Possible Fix

Steps to Reproduce

Context

Your Environment

  • SpringBoot: 3.2.0
  • SpringCloud: 2023.0.0-RC1
  • Logbook: 3.6.0
@kasmarian
Copy link
Member

Is this related a similar problems raised in #1512 ?

@MatthiasDrewsCS
Copy link
Author

No, I am talking about server requests here and not client requests

@MatthiasDrewsCS
Copy link
Author

We can close this issue. It can be fixed by upgrading to SpringFramework 6.1.2, so with SpringBoot 3.2.1 it will be alright

@MatthiasDrewsCS MatthiasDrewsCS closed this as not planned Won't fix, can't repro, duplicate, stale Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants