Skip to content

tracing: log whether OTLP span export is active at startup#347

Closed
worstell wants to merge 1 commit into
mainfrom
worstell/tracing-startup-log
Closed

tracing: log whether OTLP span export is active at startup#347
worstell wants to merge 1 commit into
mainfrom
worstell/tracing-startup-log

Conversation

@worstell

Copy link
Copy Markdown
Contributor

tracing.New silently no-ops when OTEL_EXPORTER_OTLP_ENDPOINT is unset, so a misconfigured or black-holed OTLP endpoint is invisible until you notice the absence of spans in APM. This logs the active endpoint when tracing is enabled, and the reason (enabled flag + endpoint) when it is disabled, so the export state is obvious from cachew's own startup logs.

tracing.New silently no-ops when OTEL_EXPORTER_OTLP_ENDPOINT is unset,
so a misconfigured or black-holed endpoint is invisible until you notice
the absence of spans. Log the active endpoint when tracing is enabled,
and log the reason when it is disabled.

Amp-Thread-ID: https://ampcode.com/threads/T-019ef5b1-2315-74bc-8062-20eb783e6d55
Co-authored-by: Amp <amp@ampcode.com>
@worstell worstell closed this Jun 23, 2026
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