Class OtelStepEnvironmentContributor
- java.lang.Object
-
- org.jenkinsci.plugins.workflow.steps.StepEnvironmentContributor
-
- io.jenkins.plugins.opentelemetry.job.OtelStepEnvironmentContributor
-
- All Implemented Interfaces:
ExtensionPoint
@Extension public class OtelStepEnvironmentContributor extends org.jenkinsci.plugins.workflow.steps.StepEnvironmentContributor
Inject OpenTelemetry environment variables in shell steps:TRACEPARENT
,OTEL_EXPORTER_OTLP_ENDPOINT
...
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description OtelStepEnvironmentContributor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
buildEnvironmentFor(org.jenkinsci.plugins.workflow.steps.StepContext stepContext, EnvVars envs, TaskListener listener)
void
setEnvironmentContributorService(OtelEnvironmentContributorService otelEnvironmentContributorService)
void
setOtelTraceService(OtelTraceService otelTraceService)
-
-
-
Method Detail
-
buildEnvironmentFor
public void buildEnvironmentFor(@NonNull org.jenkinsci.plugins.workflow.steps.StepContext stepContext, @NonNull EnvVars envs, @NonNull TaskListener listener) throws IOException, InterruptedException
- Overrides:
buildEnvironmentFor
in classorg.jenkinsci.plugins.workflow.steps.StepEnvironmentContributor
- Throws:
IOException
InterruptedException
-
setEnvironmentContributorService
@Inject public void setEnvironmentContributorService(OtelEnvironmentContributorService otelEnvironmentContributorService)
-
setOtelTraceService
@Inject public void setOtelTraceService(OtelTraceService otelTraceService)
-
-