Class OtelJulHandler

    • Constructor Detail

      • OtelJulHandler

        public OtelJulHandler()
    • Method Detail

      • flush

        public void flush()
        Specified by:
        flush in class Handler
      • afterSdkInitialized

        public void afterSdkInitialized​(io.opentelemetry.api.metrics.Meter meter,
                                        io.opentelemetry.api.logs.LoggerProvider loggerProvider,
                                        io.opentelemetry.api.trace.Tracer tracer,
                                        io.opentelemetry.sdk.autoconfigure.spi.ConfigProperties configProperties)
        Description copied from interface: OtelComponent
        Invoked soon after the Otel SDK has been initialized. Created AutoCloseable metering instruments don't have to be closed by Otel components, the OpenTelemetry plugin takes care of this (eg ObservableLongUpDownCounter, ObservableLongCounter...)
        Specified by:
        afterSdkInitialized in interface OtelComponent
        meter - Meter of the newly initialized Otel SDK
        loggerProvider - Logger of the newly initialized Otel SDK
        tracer - Tracer of the newly initialized Otel SDK
        configProperties - ConfigProperties of the newly initialized Otel SDK
      • ordinal

        public int ordinal()
        Hooking Otel logs is the first thing to initialize
        Specified by:
        ordinal in interface OtelComponent
        the ordinal of this otel component to execute step handlers in predictable order. The smallest ordinal is handled first.