Skip to content

Conversation

@sl0thentr0py
Copy link
Member

No description provided.

Comment on lines +7 to +12
if Config.dsn() do
Application.put_env(:opentelemetry, :traces_exporter, :otlp)
Application.put_env(:opentelemetry_exporter, :otlp_protocol, :http_protobuf)
Application.put_env(:opentelemetry_exporter, :otlp_traces_endpoint, Config.spans_endpoint())
Application.put_env(:opentelemetry_exporter, :otlp_headers, Config.auth_headers())
end
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I honestly believe this is a suboptimal idea.

The OTEL spec expects environment configuration to work correctly, among other things. DevOps wouldn't like this, and troubleshooting will require knowing this code exists instead of, for the most part, checking the config directory.
I have already encountered problems with adding or expecting global environment configuration, which has caused significant headaches.

Proper documentation significantly goes a long way when these configurations barely change.

@solnic
Copy link
Collaborator

solnic commented Oct 8, 2024

@sl0thentr0py I suppose this should be closed in favor of #784?

@sl0thentr0py
Copy link
Member Author

yep, no longer relevant

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