Class OtelLogStorageFactory

  • All Implemented Interfaces:
    ExtensionPoint, OtelComponent, Comparable<OtelComponent>, org.jenkinsci.plugins.workflow.log.LogStorageFactory

    @Extension
    public final class OtelLogStorageFactory
    extends Object
    implements org.jenkinsci.plugins.workflow.log.LogStorageFactory, OtelComponent
    Binds Otel Logs to Pipeline logs.

    See https://github.com/jenkinsci/pipeline-cloudwatch-logs-plugin/blob/pipeline-cloudwatch-logs-0.2/src/main/java/io/jenkins/plugins/pipeline_cloudwatch_logs/PipelineBridge.java

    • Constructor Detail

      • OtelLogStorageFactory

        public OtelLogStorageFactory()
    • Method Detail

      • forBuild

        @Nullable
        public org.jenkinsci.plugins.workflow.log.LogStorage forBuild​(@NonNull
                                                                      org.jenkinsci.plugins.workflow.flow.FlowExecutionOwner owner)
        Specified by:
        forBuild in interface org.jenkinsci.plugins.workflow.log.LogStorageFactory
      • afterSdkInitialized

        public void afterSdkInitialized​(io.opentelemetry.api.metrics.Meter meter,
                                        io.opentelemetry.api.logs.LoggerProvider loggerProvider,
                                        io.opentelemetry.api.events.EventEmitter eventEmitter,
                                        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
        Parameters:
        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