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 ClassesNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns all the registeredOtlpAuthenticationdescriptors.abstract voidenrichOpenTelemetryAutoConfigureConfigProperties(Map<String, String> configProperties) abstract voidenrichOtelEnvironmentVariables(Map<String, String> environmentVariables) Enrich the provided environment variables injecting the authentication settings, typically appending credentials to theOTEL_EXPORTER_OTLP_HEADERSvariable
-
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_HEADERSvariable- Parameters:
environmentVariables- the builder to configure
-
getDescriptor
- Specified by:
getDescriptorin interfaceDescribable<OtlpAuthentication>
-
allDescriptors
public static DescriptorExtensionList<OtlpAuthentication,OtlpAuthentication.AbstractDescriptor> allDescriptors()Returns all the registeredOtlpAuthenticationdescriptors. Used by the GUI
-