Skip to content

Add signal based OTLP configuration#3527

Merged
Kielek merged 14 commits into
open-telemetry:mainfrom
RassK:refator-otlp-envs
Jul 29, 2024
Merged

Add signal based OTLP configuration#3527
Kielek merged 14 commits into
open-telemetry:mainfrom
RassK:refator-otlp-envs

Conversation

@RassK
Copy link
Copy Markdown
Contributor

@RassK RassK commented Jul 22, 2024

Why

Adds signal based OTLP exporter configuration variables.

SDK

Related issue:
open-telemetry/opentelemetry-dotnet#5429

Note: This is NOT currently utilized meaning AddOtlpExporter extension does NOT gain the ability to use these as of this PR.

  • SDK's logic is using whole block of variables, there is no priority based logic.
  • Logic is not fully finalized yet.

What

Signal specified variables have higher priority than default variables. Auto instrumentation is using more detailed variables and overwrites options, default variable handling is left to SDK.

Full list of supported variables:

OTEL_EXPORTER_OTLP_ENDPOINT
OTEL_EXPORTER_OTLP_HEADERS
OTEL_EXPORTER_OTLP_TIMEOUT
OTEL_EXPORTER_OTLP_PROTOCOL

OTEL_EXPORTER_OTLP_LOGS_ENDPOINT
OTEL_EXPORTER_OTLP_LOGS_HEADERS
OTEL_EXPORTER_OTLP_LOGS_TIMEOUT
OTEL_EXPORTER_OTLP_LOGS_PROTOCOL

OTEL_EXPORTER_OTLP_METRICS_ENDPOINT
OTEL_EXPORTER_OTLP_METRICS_HEADERS
OTEL_EXPORTER_OTLP_METRICS_TIMEOUT
OTEL_EXPORTER_OTLP_METRICS_PROTOCOL

OTEL_EXPORTER_OTLP_TRACES_ENDPOINT
OTEL_EXPORTER_OTLP_TRACES_HEADERS
OTEL_EXPORTER_OTLP_TRACES_TIMEOUT
OTEL_EXPORTER_OTLP_TRACES_PROTOCOL

Tests

Extended some existing ones.

Checklist

  • CHANGELOG.md is updated.
  • Documentation is updated.
  • New features are covered by tests.

Comment thread CHANGELOG.md Outdated
@RassK RassK marked this pull request as ready for review July 23, 2024 10:57
@RassK RassK requested a review from a team July 23, 2024 10:57
RassK added 3 commits July 23, 2024 23:02
# Conflicts:
#	CHANGELOG.md
#	src/OpenTelemetry.AutoInstrumentation/Configurations/LogSettings.cs
#	src/OpenTelemetry.AutoInstrumentation/Configurations/MetricSettings.cs
#	src/OpenTelemetry.AutoInstrumentation/Configurations/TracerSettings.cs
#	src/OpenTelemetry.AutoInstrumentation/Logger/LogBuilderExtensions.cs
#	test/OpenTelemetry.AutoInstrumentation.Tests/Configurations/SettingsTests.cs
Comment thread CHANGELOG.md Outdated
@Kielek
Copy link
Copy Markdown
Member

Kielek commented Jul 26, 2024

@RassK, could you please resolve confilcts?

# Conflicts:
#	CHANGELOG.md
#	src/OpenTelemetry.AutoInstrumentation/Configurations/LogSettings.cs
#	src/OpenTelemetry.AutoInstrumentation/Configurations/MetricSettings.cs
#	src/OpenTelemetry.AutoInstrumentation/Configurations/TracerSettings.cs
#	test/OpenTelemetry.AutoInstrumentation.Tests/Configurations/SettingsTests.cs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants