zalando/logbook

Logbook does not log URI with DiscoveryClient.

Opened this issue · 0 comments

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