dk.kvalitetsit.logging.RequestIdGenerator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-request-id-logger Show documentation
Show all versions of spring-request-id-logger Show documentation
Adds correlation id to all log lines within the same request in a Spring Boot Application.
The newest version!
package dk.kvalitetsit.logging;
public interface RequestIdGenerator {
/**
* Returns the request id. If @customRequestId have been called that one is used. Otherwise, the configured HTTP
* header is checked and if header not found a random request id is generated.
* @return The request id.
*/
String getOrGenerateRequestId();
}