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

io.quarkiverse.opentelemetry.exporter.jaeger.runtime.JaegerExporterConfig Maven / Gradle / Ivy

package io.quarkiverse.opentelemetry.exporter.jaeger.runtime;

import java.time.Duration;
import java.util.Optional;

import io.quarkus.runtime.annotations.ConfigItem;
import io.quarkus.runtime.annotations.ConfigPhase;
import io.quarkus.runtime.annotations.ConfigRoot;
import io.quarkus.runtime.annotations.ConvertWith;
import io.quarkus.runtime.configuration.TrimmedStringConverter;

public class JaegerExporterConfig {
    static final String DEFAULT_JAEGER_BASE_URI = "http://localhost:14250";

    @ConfigRoot(name = "opentelemetry.tracer.exporter.jaeger", phase = ConfigPhase.BUILD_AND_RUN_TIME_FIXED)
    public static class JaegerExporterBuildConfig {
        /**
         * Jaeger SpanExporter support.
         * 

* Jaeger SpanExporter support is enabled by default. */ @ConfigItem(defaultValue = "true") public Boolean enabled; } @ConfigRoot(name = "opentelemetry.tracer.exporter.jaeger", phase = ConfigPhase.RUN_TIME) public static class JaegerExporterRuntimeConfig { /** * The Jaeger endpoint to connect to. The endpoint must start with either http:// or https://. */ @ConfigItem(defaultValue = DEFAULT_JAEGER_BASE_URI) @ConvertWith(TrimmedStringConverter.class) public Optional endpoint; /** * The maximum amount of time to wait for the collector to process exported spans before an exception is thrown. * A value of `0` will disable the timeout: the exporter will continue waiting until either exported spans are * processed, * or the connection fails, or is closed for some other reason. */ @ConfigItem(defaultValue = "10S") public Duration exportTimeout; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy