Skip to content

Conversation

@mitchdenny
Copy link
Member

@mitchdenny mitchdenny commented Apr 8, 2025

This PR changes from using the standard OTEL environment variable to turn on OTEL for the CLI to a dedicated (but hidden) switch where you specify the URL. The reason this is hidden is that because Aspire itself deals with telemetry we didn't want people thinking this switch somehow overrode the default OTEL configuration injection for resources running the app host.

This switch is purely for diagnostic purposes around the CLI itself and we didn't want it to be reactive to standard OTEL switches.

otel-switch.mp4

Copilot AI review requested due to automatic review settings April 8, 2025 03:01
@mitchdenny mitchdenny self-assigned this Apr 8, 2025
@mitchdenny mitchdenny added this to the 9.2 milestone Apr 8, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

@mitchdenny mitchdenny requested a review from davidfowl April 8, 2025 03:02
@mitchdenny mitchdenny changed the title Add hidden --otel switch. Add hidden --cli-otlp-endpoint switch. Apr 8, 2025
@mitchdenny mitchdenny marked this pull request as draft April 8, 2025 09:44
}
});
otelOption.Recursive = true;
otelOption.Hidden = true; // Hiding for now since this could be confusing about what it does.
Copy link
Member

Choose a reason for hiding this comment

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

should we obfuscate the name? or --cli-otlp-endpoint-experimental-only ?

@mitchdenny mitchdenny closed this Apr 11, 2025
@mitchdenny mitchdenny deleted the mitchdenny/otel-switch branch April 11, 2025 00:32
@github-actions github-actions bot locked and limited conversation to collaborators May 11, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants