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

Logbook does not log URI with DiscoveryClient. #1937

Open
VladislavBakshanskij opened this issue Oct 15, 2024 · 0 comments
Open

Logbook does not log URI with DiscoveryClient. #1937

VladislavBakshanskij opened this issue Oct 15, 2024 · 0 comments
Labels

Comments

@VladislavBakshanskij
Copy link

Logbook does not log URI with DiscoveryClient.

Description

We use DiscoveryClient to implement Client-Side with spring cloud loadbalancer. As a result, Logbook logs the service name, not the URI that the request actually went to.

Example repository: https://github.com/VladislavBakshanskij/logbook-service-logging

Expected behavior

Logbook logs the URI that the request went to, not the service name

Actual behavior

Logbook logs the service name

Steps to reproduce

  1. Clone repository https://github.com/VladislavBakshanskij/logbook-service-logging
  2. Run the application in IDEA
  3. Open the page:
    1. http://localhost:8080/api/web-client
    2. http://localhost:8080/api/rest-client
    3. http://localhost:8080/api/rest-template
  4. Check the logs
image

Context

When balancing on the client side, this makes it difficult to analyze incidents

Your environment

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

1 participant