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 Modifier and Type Class Description static class
OtlpAuthentication.AbstractDescriptor
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description OtlpAuthentication()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static DescriptorExtensionList<OtlpAuthentication,OtlpAuthentication.AbstractDescriptor>
allDescriptors()
Returns 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
variableDescriptor<OtlpAuthentication>
getDescriptor()
-
-
-
Method Detail
-
enrichOpenTelemetryAutoConfigureConfigProperties
public abstract void enrichOpenTelemetryAutoConfigureConfigProperties(Map<String,String> configProperties)
-
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
public Descriptor<OtlpAuthentication> getDescriptor()
- Specified by:
getDescriptor
in interfaceDescribable<OtlpAuthentication>
-
allDescriptors
public static DescriptorExtensionList<OtlpAuthentication,OtlpAuthentication.AbstractDescriptor> allDescriptors()
Returns all the registeredOtlpAuthentication
descriptors. Used by the GUI
-
-