Skip to content

Allow to fallback on global OTEL options #4571

@olegbespalov

Description

@olegbespalov

What?

As pointed out in grafana/xk6-output-opentelemetry#24, how we currently define our default configuration makes it harder to use the output and confuses users familiar with OTEL SDK configuration.

The current approach was likely adopted to provide k6-specific configurability. However, it creates a divergence from standard OTEL practices, potentially confusing users familiar with OTEL SDK configuration.
Moving forward, we should consider:

  • Gradually aligning our custom variables with standard OTEL naming conventions.
  • Implementing a fallback mechanism where standard OTEL variables are checked if custom ones are not set.
  • Providing clear documentation on which standard OTEL variables are supported and which are superseded by custom configurations.

So, we must adjust our configuration and consider OTEL environment variables if they are defined. Still K6_OTEL_ will have priority.

Why?

Align with OTEL.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions