All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dk.kvalitetsit.logging.RequestIdGenerator Maven / Gradle / Ivy

Go to download

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();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy