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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
buildEnvironmentFor
(org.jenkinsci.plugins.workflow.steps.StepContext stepContext, EnvVars envs, TaskListener listener) void
setEnvironmentContributorService
(OtelEnvironmentContributorService otelEnvironmentContributorService) void
setOtelTraceService
(OtelTraceService otelTraceService)
-
Constructor Details
-
OtelStepEnvironmentContributor
public OtelStepEnvironmentContributor()
-
-
Method Details
-
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
-