Class OtelLogStorageFactory
java.lang.Object
io.jenkins.plugins.opentelemetry.job.log.OtelLogStorageFactory
- All Implemented Interfaces:
ExtensionPoint
,io.jenkins.plugins.opentelemetry.api.OpenTelemetryLifecycleListener
,Comparable<io.jenkins.plugins.opentelemetry.api.OpenTelemetryLifecycleListener>
,org.jenkinsci.plugins.workflow.log.LogStorageFactory
@Extension
public final class OtelLogStorageFactory
extends Object
implements org.jenkinsci.plugins.workflow.log.LogStorageFactory, io.jenkins.plugins.opentelemetry.api.OpenTelemetryLifecycleListener
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
-
Method Summary
Modifier and TypeMethodDescriptionorg.jenkinsci.plugins.workflow.log.LogStorage
forBuild
(org.jenkinsci.plugins.workflow.flow.FlowExecutionOwner owner) Create a LogStorage for a given FlowExecutionOwnervoid
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.api.OpenTelemetryLifecycleListener
afterConfiguration, compareTo, ordinal
-
Constructor Details
-
OtelLogStorageFactory
public OtelLogStorageFactory()
-
-
Method Details
-
forBuild
@Nullable public org.jenkinsci.plugins.workflow.log.LogStorage forBuild(@NonNull org.jenkinsci.plugins.workflow.flow.FlowExecutionOwner owner) Create a LogStorage for a given FlowExecutionOwner- Specified by:
forBuild
in interfaceorg.jenkinsci.plugins.workflow.log.LogStorageFactory
- Parameters:
owner
- the FlowExecutionOwner- Returns:
- the LogStorage, null if no Opentelemetry data is found, or a BrokenLogStorage if an error occurs.
-
postConstruct
@PostConstruct public void postConstruct()
-