Class OtelEnvironmentContributor
java.lang.Object
hudson.model.EnvironmentContributor
io.jenkins.plugins.opentelemetry.job.OtelEnvironmentContributor
- All Implemented Interfaces:
ExtensionPoint
Inject OpenTelemetry environment variables in shell steps:
TRACEPARENT, OTEL_EXPORTER_OTLP_ENDPOINT...-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.EnvironmentContributor
EnvironmentContributor.EnvVarsHtmlNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbuildEnvironmentFor(Run run, EnvVars envs, TaskListener listener) voidsetEnvironmentContributorService(OtelEnvironmentContributorService otelEnvironmentContributorService) voidsetOtelTraceService(OtelTraceService otelTraceService) Methods inherited from class hudson.model.EnvironmentContributor
all, buildEnvironmentFor
-
Constructor Details
-
OtelEnvironmentContributor
public OtelEnvironmentContributor()
-
-
Method Details
-
buildEnvironmentFor
public void buildEnvironmentFor(@NonNull Run run, @NonNull EnvVars envs, @NonNull TaskListener listener) - Overrides:
buildEnvironmentForin classEnvironmentContributor
-
setOtelTraceService
-
setEnvironmentContributorService
@Inject public void setEnvironmentContributorService(OtelEnvironmentContributorService otelEnvironmentContributorService)
-