Skip to content

feat: enable operational telemetry #539

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 30, 2025
Merged

Conversation

natdurlik
Copy link
Contributor

@natdurlik natdurlik commented May 29, 2025

Problem

We need to begin sending operational telemetry for users of our runtime. Telemetry sharing is disabled by default when no configuration is specified.

Solution

  • Initialized OperationalTelemetryService during LSP initialization
  • Increased interval for exporting logs to backend
  • Added telemetry endpoint

Testing

Manually tested with "CodeWhisperer Agentic Server Token" extension in language-servers. Used TELEMETRY_GATEWAY_ENDPOINT to direct telemetry to a non-prod endpoint. Added 'telemetryOptOut' in initializationOptions in activation.ts file.
Tested scenarios:

  • telemetryOptOut: true - OpenTelemetry SDK is not initialized and telemetry is not exported to the backend.
  • telemetryOptOut: false - OpenTelemetry SDK logs appear at Debug level, indicating successful SDK initialization. Metrics are sent to the backend at the desired interval and are accepted in the expected format.
  • telemetryOptOut not specified - Results were the same as telemetryOptOut: true.

Additionally, confirmed that sending data to the actual prod telemetry endpoint works.

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@natdurlik natdurlik requested a review from a team as a code owner May 29, 2025 18:22
@natdurlik natdurlik merged commit f49206f into main May 30, 2025
4 checks passed
@natdurlik natdurlik deleted the enable-operational-telemetry branch May 30, 2025 10:54
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