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

  • 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 interface org.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()