Class OtlpAuthentication
java.lang.Object
io.jenkins.plugins.opentelemetry.authentication.OtlpAuthentication
- All Implemented Interfaces:
ExtensionPoint
,Describable<OtlpAuthentication>
- Direct Known Subclasses:
BearerTokenAuthentication
,HeaderAuthentication
,NoAuthentication
public abstract class OtlpAuthentication
extends Object
implements Describable<OtlpAuthentication>, ExtensionPoint
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns all the registeredOtlpAuthentication
descriptors.abstract void
enrichOpenTelemetryAutoConfigureConfigProperties
(Map<String, String> configProperties) abstract void
enrichOtelEnvironmentVariables
(Map<String, String> environmentVariables) Enrich the provided environment variables injecting the authentication settings, typically appending credentials to theOTEL_EXPORTER_OTLP_HEADERS
variable
-
Constructor Details
-
OtlpAuthentication
public OtlpAuthentication()
-
-
Method Details
-
enrichOpenTelemetryAutoConfigureConfigProperties
-
enrichOtelEnvironmentVariables
public abstract void enrichOtelEnvironmentVariables(@NonNull Map<String, String> environmentVariables) Enrich the provided environment variables injecting the authentication settings, typically appending credentials to theOTEL_EXPORTER_OTLP_HEADERS
variable- Parameters:
environmentVariables
- the builder to configure
-
getDescriptor
- Specified by:
getDescriptor
in interfaceDescribable<OtlpAuthentication>
-
allDescriptors
public static DescriptorExtensionList<OtlpAuthentication,OtlpAuthentication.AbstractDescriptor> allDescriptors()Returns all the registeredOtlpAuthentication
descriptors. Used by the GUI
-