Skip to content

feat(cli): telemetry sent to endpoint #775

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

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from
Draft

Conversation

kaizencc
Copy link
Contributor

@kaizencc kaizencc commented Aug 6, 2025

This PR includes the following

  • more robust trace messaging for telemetry success / failure
  • use of Funnel class to combine FileSink and EndpointSink
  • update integ tests to assert on trace messages that the telemetry sent returns 200 OK

The tests work if the endpoint provided is included as an env variable TELEMETRY_ENDPOINT


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

@aws-cdk-automation aws-cdk-automation requested a review from a team August 6, 2025 18:57
@kaizencc kaizencc changed the title feat: telemetry sent to endpoint feat(cli): telemetry sent to endpoint Aug 6, 2025
Signed-off-by: github-actions <github-actions@github.com>
@codecov-commenter
Copy link

codecov-commenter commented Aug 6, 2025

Codecov Report

❌ Patch coverage is 53.48837% with 20 lines in your changes missing coverage. Please review.
✅ Project coverage is 80.85%. Comparing base (409f8e7) to head (b45506e).

Files with missing lines Patch % Lines
packages/aws-cdk/lib/cli/io-host/cli-io-host.ts 58.82% 14 Missing ⚠️
...es/aws-cdk/lib/cli/telemetry/sink/endpoint-sink.ts 42.85% 4 Missing ⚠️
...ges/aws-cdk/lib/cli/telemetry/collect-telemetry.ts 0.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #775      +/-   ##
==========================================
- Coverage   81.42%   80.85%   -0.57%     
==========================================
  Files          63       63              
  Lines        8602     8625      +23     
  Branches     1034     1034              
==========================================
- Hits         7004     6974      -30     
- Misses       1567     1617      +50     
- Partials       31       34       +3     
Flag Coverage Δ
suite.unit 80.85% <53.48%> (-0.57%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants