Skip to content

feat: implement OpenTelemetry for command execution metrics#83

Open
mduthey wants to merge 3 commits intomainfrom
feat/implement-opentelemetry
Open

feat: implement OpenTelemetry for command execution metrics#83
mduthey wants to merge 3 commits intomainfrom
feat/implement-opentelemetry

Conversation

@mduthey
Copy link
Contributor

@mduthey mduthey commented Aug 21, 2025

We need to update the default telemetry endpoint for fallback on telemetry mod

pub const DEFAULT_TELEMETRY_ENDPOINT: &str = "http://localhost:4318/v1/metrics";

Currently defined as: http://localhost:4318/v1/metrics
The endpoint will be defined at global config under telemetry section as otlp_endpoint

@mduthey mduthey requested a review from scarmuega August 21, 2025 19:51
src/main.rs Outdated
Comment on lines 111 to 113
let meter_provider = telemetry::init_telemetry(global_config.telemetry.otlp_endpoint);

let command_name = cli.command.name();
Copy link
Contributor

Choose a reason for hiding this comment

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

the flag saying if telemetry is on should be used here to avoid bootstrapping the whole otlp infra if we're not going to push any data.

@mduthey mduthey requested a review from scarmuega September 2, 2025 15:21
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.

2 participants