Skip to content

[SDTEST-184] Agentless telemetry#3779

Merged
anmarchenko merged 15 commits into
masterfrom
anmarchenko/agentless_telemetry
Jul 22, 2024
Merged

[SDTEST-184] Agentless telemetry#3779
anmarchenko merged 15 commits into
masterfrom
anmarchenko/agentless_telemetry

Conversation

@anmarchenko

@anmarchenko anmarchenko commented Jul 11, 2024

Copy link
Copy Markdown
Member

What does this PR do?
Adds configurable agentless mode and configurable shutdown timeout to telemetry

Motivation:
Test visibility library runs in agentless mode more often than with Datadog agent, so we need agentless mode for telemetry to submit metrics.

Configurable shutdown timeout will help us to make sure that all metrics will be flushed when test suite finishes.

How to test the change?
Unit tests are provided. In parallel to review process I am going to work on POC for sending telemetry from test visibility instrumentation to test this end2end.

@anmarchenko anmarchenko changed the title Agentless telemetry [SDTEST-184] Agentless telemetry Jul 11, 2024
@github-actions github-actions Bot added the core Involves Datadog core libraries label Jul 11, 2024
Comment thread lib/datadog/core/telemetry/emitter.rb
@codecov-commenter

codecov-commenter commented Jul 11, 2024

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 99.41176% with 1 line in your changes missing coverage. Please review.

Project coverage is 97.91%. Comparing base (2a662b0) to head (f8966a7).
Report is 2954 commits behind head on master.

Files with missing lines Patch % Lines
lib/datadog/core/telemetry/event.rb 50.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           master    #3779    +/-   ##
========================================
  Coverage   97.91%   97.91%            
========================================
  Files        1246     1246            
  Lines       74999    75122   +123     
  Branches     3627     3633     +6     
========================================
+ Hits        73436    73558   +122     
- Misses       1563     1564     +1     

☔ 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.

@pr-commenter

pr-commenter Bot commented Jul 17, 2024

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2024-07-22 13:51:26

Comparing candidate commit f8966a7 in PR branch anmarchenko/agentless_telemetry with baseline commit 2a662b0 in branch master.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 10 metrics, 2 unstable metrics.

@anmarchenko
anmarchenko marked this pull request as ready for review July 17, 2024 08:56
@anmarchenko
anmarchenko requested a review from a team as a code owner July 17, 2024 08:56

@ivoanjo ivoanjo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Left a bunch of notes and suggestions, but overall it LGTM 👍

Comment thread lib/datadog/core/configuration/settings.rb
Comment thread lib/datadog/core/telemetry/http/transport.rb Outdated
Comment thread lib/datadog/core/environment/ext.rb Outdated
Comment thread lib/datadog/core/telemetry/http/transport.rb Outdated
Comment thread lib/datadog/core/configuration/components.rb Outdated
Comment thread sig/datadog/core/environment/ext.rbs
Comment thread sig/datadog/core/telemetry/component.rbs Outdated
Comment thread sig/datadog/core/telemetry/emitter.rbs Outdated
Comment thread sig/datadog/core/telemetry/worker.rbs Outdated
Comment thread spec/datadog/core/configuration/components_spec.rb

@marcotc marcotc left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks great. I agree with @ivoanjo's points, as well, but otherwise 🚢

@anmarchenko
anmarchenko merged commit 7f7f565 into master Jul 22, 2024
@anmarchenko
anmarchenko deleted the anmarchenko/agentless_telemetry branch July 22, 2024 14:15
@github-actions github-actions Bot added this to the 2.3.0 milestone Jul 22, 2024
@TonyCTHsu TonyCTHsu mentioned this pull request Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Involves Datadog core libraries

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants