Skip to content

Commit ce6a46d

Browse files
committed
remove prefix
1 parent bdc556e commit ce6a46d

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/OtlpSpecConfigDefinitions.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ namespace OpenTelemetry.Exporter;
1111
/// </remarks>
1212
internal static class OtlpSpecConfigDefinitions
1313
{
14-
public const string EnvVarPrefix = "OTEL_";
15-
1614
public const string DefaultEndpointEnvVarName = "OTEL_EXPORTER_OTLP_ENDPOINT";
1715
public const string DefaultHeadersEnvVarName = "OTEL_EXPORTER_OTLP_HEADERS";
1816
public const string DefaultTimeoutEnvVarName = "OTEL_EXPORTER_OTLP_TIMEOUT";

src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpExporterOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ internal OtlpExporterOptions(
6262
{
6363
Debug.Assert(defaultBatchOptions != null, "defaultBatchOptions was null");
6464
var finalConfiguration = new ConfigurationBuilder()
65-
.AddEnvironmentVariables(OtlpSpecConfigDefinitions.EnvVarPrefix)
65+
.AddEnvironmentVariables()
6666
.AddConfiguration(configuration)
6767
.Build();
6868

0 commit comments

Comments
 (0)