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

[SDTEST-184] Agentless telemetry #3779

Merged
merged 15 commits into from
Jul 22, 2024
Merged

Conversation

anmarchenko
Copy link
Member

@anmarchenko anmarchenko commented Jul 11, 2024

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
@codecov-commenter
Copy link

codecov-commenter commented Jul 11, 2024

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 23 commits behind head on master.

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

@pr-commenter
Copy link

pr-commenter bot commented Jul 17, 2024

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
Copy link
Member

@ivoanjo ivoanjo left a comment

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 👍

lib/datadog/core/configuration/settings.rb Outdated Show resolved Hide resolved
lib/datadog/core/telemetry/http/transport.rb Outdated Show resolved Hide resolved
lib/datadog/core/environment/ext.rb Outdated Show resolved Hide resolved
lib/datadog/core/telemetry/http/transport.rb Outdated Show resolved Hide resolved
lib/datadog/core/configuration/components.rb Outdated Show resolved Hide resolved
sig/datadog/core/environment/ext.rbs Show resolved Hide resolved
sig/datadog/core/telemetry/component.rbs Outdated Show resolved Hide resolved
sig/datadog/core/telemetry/emitter.rbs Outdated Show resolved Hide resolved
sig/datadog/core/telemetry/worker.rbs Outdated Show resolved Hide resolved
Copy link
Member

@marcotc marcotc left a comment

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
171 checks passed
@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