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

feat: Report host information in telemetry #118

Merged
merged 2 commits into from May 20, 2024
Merged

Conversation

dmehala
Copy link
Collaborator

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

@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

@@ -48,6 +49,7 @@ class TracerTelemetry {
bool debug_ = false;
Clock clock_;
std::shared_ptr<Logger> logger_;
HostInfo host_info_;
TracerSignature tracer_signature_;
std::string hostname_;

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
Collaborator 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

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
19 checks passed
@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.

None yet

2 participants