Skip to content

WIP otel auto setup#711

Closed
sl0thentr0py wants to merge 2 commits into
masterfrom
neel/otel-exporter
Closed

WIP otel auto setup#711
sl0thentr0py wants to merge 2 commits into
masterfrom
neel/otel-exporter

Conversation

@sl0thentr0py

Copy link
Copy Markdown
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
Copy Markdown
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

solnic commented Oct 8, 2024

Copy link
Copy Markdown
Collaborator

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

@sl0thentr0py

Copy link
Copy Markdown
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.

3 participants