Skip to content
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

✅ Add e2e test for telemetry usage #3222

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

thomas-lebeau
Copy link
Collaborator

Motivation

Telemetry usage e2e test were missing

Changes

  • Add missing e2e test for telemetryUsage
  • Add comment explaining why we setup *SampleRate: 100 in the default e2e test config.

Testing

  • Local
  • Staging
  • Unit
  • End to end

I have gone over the contributing documentation.

Comment on lines +26 to +30
// Force All sample rates to 100% to avoid flakiness
sessionReplaySampleRate: 100,
telemetrySampleRate: 100,
telemetryUsageSampleRate: 100,
telemetryConfigurationSampleRate: 100,
Copy link
Collaborator Author

@thomas-lebeau thomas-lebeau Dec 17, 2024

Choose a reason for hiding this comment

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

I think ideally we should have test that are more resilient to sample rates:

  • only set them where needed (when we test a feature related to it)
  • explicitly trigger an event instead of relying on telemety event:

for example, in here the logs SDK is considered started because we have a telemetry configuration event and it works because we force telemetry configuration sample rate to 100%, but that's not very explicit in the test itself.

@thomas-lebeau thomas-lebeau marked this pull request as ready for review December 17, 2024 09:13
@thomas-lebeau thomas-lebeau requested a review from a team as a code owner December 17, 2024 09:13
Copy link

@sethfowler-datadog sethfowler-datadog left a comment

Choose a reason for hiding this comment

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

LGTM; nice addition!

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