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 -
Method Summary
Modifier and TypeMethodDescriptionvoidbuildEnvironmentFor(org.jenkinsci.plugins.workflow.steps.StepContext stepContext, EnvVars envs, TaskListener listener) voidsetEnvironmentContributorService(OtelEnvironmentContributorService otelEnvironmentContributorService) voidsetOtelTraceService(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:
buildEnvironmentForin classorg.jenkinsci.plugins.workflow.steps.StepEnvironmentContributor- Throws:
IOExceptionInterruptedException
-
setEnvironmentContributorService
@Inject public void setEnvironmentContributorService(OtelEnvironmentContributorService otelEnvironmentContributorService) -
setOtelTraceService
-