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

io.quarkiverse.reactive.messaging.nats.jetstream.tracing.JetStreamTraceTextMapSetter Maven / Gradle / Ivy

There is a newer version: 3.17.0
Show newest version
package io.quarkiverse.reactive.messaging.nats.jetstream.tracing;

import java.util.List;

import io.opentelemetry.context.propagation.TextMapSetter;

public enum JetStreamTraceTextMapSetter implements TextMapSetter {
    INSTANCE;

    @Override
    public void set(final JetStreamTrace carrier, final String key, final String value) {
        if (carrier != null) {
            final var headers = carrier.headers();
            if (headers != null) {
                headers.put(key, List.of(value));
            }
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy