Skip to content

feat: Report host information in telemetry#118

Merged
dmehala merged 2 commits into
mainfrom
dmehala/fix-telemetry
May 20, 2024
Merged

feat: Report host information in telemetry#118
dmehala merged 2 commits into
mainfrom
dmehala/fix-telemetry

Conversation

@dmehala
Copy link
Copy Markdown
Contributor

@dmehala dmehala commented Apr 30, 2024

Description

The telemetry implementation was missing some host information. This PR adds those.

Content:

  • Collect informations on the Operating System and the CPU architecture
  • Report those informations in telemetry

- Collect informations on the Operating System and the CPU architecture
- Report those informations in telemetry
@dmehala dmehala requested a review from Anilm3 April 30, 2024 08:56
@dmehala dmehala requested a review from a team May 7, 2024 13:58
Comment thread src/datadog/datadog_agent.cpp
Copy link
Copy Markdown
Contributor

@pablomartinezbernardo pablomartinezbernardo left a comment

Choose a reason for hiding this comment

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

Small comment, LGTM

Comment thread src/datadog/tracer_telemetry.h Outdated
std::shared_ptr<Logger> logger_;
HostInfo host_info_;
TracerSignature tracer_signature_;
std::string hostname_;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We should be able to remove hostname_, right?

Copy link
Copy Markdown
Contributor Author

@dmehala dmehala May 20, 2024

Choose a reason for hiding this comment

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

Indeed. Thank you.
EDIT: fixed in 316ebbb

- Set debug header only if debug is enabled
- Keep in memory uname result
@pr-commenter
Copy link
Copy Markdown

pr-commenter Bot commented May 20, 2024

Benchmarks

Benchmark execution time: 2024-05-20 13:35:09

Comparing candidate commit 316ebbb in PR branch dmehala/fix-telemetry with baseline commit 3a8e1e9 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 f8cacf4 into main May 20, 2024
@dmehala dmehala deleted the dmehala/fix-telemetry branch May 20, 2024 13:37
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