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.EnvVarsHtml
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
buildEnvironmentFor
(Run run, EnvVars envs, TaskListener listener) void
setEnvironmentContributorService
(OtelEnvironmentContributorService otelEnvironmentContributorService) void
setOtelTraceService
(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:
buildEnvironmentFor
in classEnvironmentContributor
-
setOtelTraceService
-
setEnvironmentContributorService
@Inject public void setEnvironmentContributorService(OtelEnvironmentContributorService otelEnvironmentContributorService)
-