Skip to content

Otlp exporter config#512

Open
arjun-rajappa wants to merge 4 commits into
otlp-exporterfrom
otlp-exporter-config
Open

Otlp exporter config#512
arjun-rajappa wants to merge 4 commits into
otlp-exporterfrom
otlp-exporter-config

Conversation

@arjun-rajappa

Copy link
Copy Markdown
Contributor

Replaces the hardcoded INSTANA_OTLP_ENABLED env-var check with a proper config-driven setup. OTLP settings are now resolved through the standard Instana config system with precedence: YAML → env vars → agent discovery → defaults.

Change
Config - add :otlp config block (default: disabled); support YAML, env var, and agent-push config sources
HostAgentReportingObserver — replace inline exporter construction with initialize_otlp_exporter driven by ::Instana.config[:otlp]; remove stray debug log
Tests - add config_test.rb and expand observer tests to cover OTLP init paths

- Add OTLP config block to Config#initialize with defaults (disabled)
- Support config precedence: YAML > env vars > agent discovery > defaults
- Add read_otlp_config_from_agent to apply agent-pushed OTLP settings
- Replace hardcoded INSTANA_OTLP_ENABLED env-var branch in
  HostAgentReportingObserver with initialize_otlp_exporter driven by
  ::Instana.config[:otlp]
- Remove debug info log of converted spans before OTLP export
- Add tests for config and observer initialization

Signed-off-by: Arjun Rajappa <arjun.rajappa@ibm.com>
@arjun-rajappa arjun-rajappa changed the base branch from master to otlp-exporter June 25, 2026 09:14
@arjun-rajappa arjun-rajappa self-assigned this Jun 25, 2026
@arjun-rajappa arjun-rajappa requested a review from a team June 25, 2026 09:28
Signed-off-by: Arjun Rajappa <arjun.rajappa@ibm.com>
Signed-off-by: Arjun Rajappa <arjun.rajappa@ibm.com>
Signed-off-by: Arjun Rajappa <arjun.rajappa@ibm.com>
@sonarqubecloud

Copy link
Copy Markdown

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.

1 participant