Class OtelLogStorageFactory
- java.lang.Object
-
- io.jenkins.plugins.opentelemetry.job.log.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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description OtelLogStorageFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
Invoked soon after the Otel SDK has been initialized.org.jenkinsci.plugins.workflow.log.LogStorage
forBuild(org.jenkinsci.plugins.workflow.flow.FlowExecutionOwner owner)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.jenkins.plugins.opentelemetry.OtelComponent
afterSdkInitialized, beforeSdkShutdown, compareTo, ordinal
-
-
-
-
Method Detail
-
forBuild
@Nullable public org.jenkinsci.plugins.workflow.log.LogStorage forBuild(@NonNull org.jenkinsci.plugins.workflow.flow.FlowExecutionOwner owner)
- Specified by:
forBuild
in interfaceorg.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. CreatedAutoCloseable
metering instruments don't have to be closed by Otel components, the OpenTelemetry plugin takes care of this (egObservableLongUpDownCounter
,ObservableLongCounter
...)- Specified by:
afterSdkInitialized
in interfaceOtelComponent
- Parameters:
meter
-Meter
of the newly initialized Otel SDKloggerProvider
-Logger
of the newly initialized Otel SDKtracer
-Tracer
of the newly initialized Otel SDKconfigProperties
-ConfigProperties
of the newly initialized Otel SDK
-
-