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

[part 1] refactor!: expose telemetry module #166

Merged
merged 5 commits into from
Oct 30, 2024
Merged

Conversation

dmehala
Copy link
Collaborator

@dmehala dmehala commented Oct 30, 2024

Description

This the first PR in a series of PR aiming at refactoring the telemetry module. The purpose of this refactoring
is to support external usage of the library without the tracer, serializing payloads in MessagePack, supporting the few gaps in the current implementation (unsupported env var, logs, histogram, etc.)

Part 1 of the refactoring is to make the telemetry module publicly usable by other Datadog products without any dependencies on the tracer.

NOTE TO REVIEWER: This is not the sexiest PR but is the foundation of the following one.

Changes

  • Replace report_telemetry configuration with telemetry configuration struct.
  • Add support for telemetry environment variables.
  • Implement unit tests

This PR is the first part of the telemetry module refactoring.
Part of the refactoring is to make the telemetry module publicly
usable by other Datadog products without any dependencies on the tracer.

- Replace report_telemetry with telemetry configuration struct
@dmehala dmehala requested a review from a team as a code owner October 30, 2024 08:43
@dmehala dmehala requested review from pablomartinezbernardo and removed request for a team October 30, 2024 08:43
@codecov-commenter
Copy link

codecov-commenter commented Oct 30, 2024

Codecov Report

Attention: Patch coverage is 94.11765% with 5 lines in your changes missing coverage. Please review.

Project coverage is 93.95%. Comparing base (159629e) to head (c99e3eb).

Files with missing lines Patch % Lines
src/datadog/tracer_telemetry.cpp 70.00% 3 Missing ⚠️
src/datadog/telemetry/configuration.cpp 98.21% 1 Missing ⚠️
src/datadog/tracer_config.cpp 80.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #166      +/-   ##
==========================================
- Coverage   94.67%   93.95%   -0.72%     
==========================================
  Files          72       73       +1     
  Lines        3810     4170     +360     
==========================================
+ Hits         3607     3918     +311     
- Misses        203      252      +49     

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

@pr-commenter
Copy link

pr-commenter bot commented Oct 30, 2024

Benchmarks

Benchmark execution time: 2024-10-30 14:37:00

Comparing candidate commit c99e3eb in PR branch dmehala/public-telemetry with baseline commit 159629e in branch main.

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

@dmehala dmehala merged commit 963f78b into main Oct 30, 2024
22 checks passed
@dmehala dmehala deleted the dmehala/public-telemetry branch October 30, 2024 14:40
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.

3 participants