Skip to content
This repository was archived by the owner on Nov 13, 2025. It is now read-only.
This repository was archived by the owner on Nov 13, 2025. It is now read-only.

Can I configure the library to log the flow id? #703

@iav0207

Description

@iav0207

I found no docs or examples throughout many projects on how to put the flow id in the logging pattern. Here I mean the ordinary logging as in Logback or similar, not the opentracing logs.

Detailed Description

In the deprecated zalando/tracer library one could trivially achieve it: the value of X-Flow-ID was present in the slf4j MDC and could be referenced to enhance the logging pattern like this.

If there is such a possibility it should be documented. Otherwise, it could be mentioned in the readme that this is not supported out of the box.

Context

Having flow ids in logs increases traceability of the logs. A more complete documentation in this part can save hours of discovery for users.

Possible Implementation

Your Environment

Kotlin
Spring Boot
Webflux
Logback

    implementation("org.zalando:opentracing-spring-webflux-extension-starter:4.0.3")
    implementation("org.zalando:opentracing-kotlin:4.0.3")
    implementation("org.zalando:opentracing-flowid:4.0.3")
    implementation("org.zalando:opentracing-flowid-autoconfigure:4.0.3")

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions