-
Notifications
You must be signed in to change notification settings - Fork 10
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
Add metrics #450
Add metrics #450
Conversation
e23a999
to
f297af0
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #450 +/- ##
==========================================
+ Coverage 68.55% 68.95% +0.39%
==========================================
Files 193 193
Lines 25082 25569 +487
==========================================
+ Hits 17195 17630 +435
- Misses 7887 7939 +52
|
f297af0
to
512cdc5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for doing this. TLDR, I assume we should comment the sending of the bytes
metrics (we can keep the rest) as it's not yet supported. And add a few missing s
to metric names.
The rest is mainly questions for my knowledge and some nitpicks that you should ignore :p
As an experiment to get rid of |
5bbddcb
to
dbb87cd
Compare
sidecar/src/self_telemetry.rs
Outdated
} | ||
if trace_metrics.chunks_sent > 0 { | ||
futures.push(self.send( | ||
self.trace_chunk_sent, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see that I'm late to the game...
dbb87cd
to
711e6e2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM functionally (so please still wait for another review please).
Thanks a lot for the implementation and the follow up on all comments.
711e6e2
to
b34e8ce
Compare
b34e8ce
to
19ca4c1
Compare
….bytes. * Rework send_request method in order to return a meaningful enum in which pertinent information about metrics and response is held. This favours that all metrics are managed in the same place regardless if the trace sent either to the intake or through the agent. * Limit the visibility for SendData fields in order to imporve their encapsulation. * Add default trait implementation for SendData. * Add support for the new metrics in the TraceFlusher service.
* Avoid sending tags for submitted_payloads, active_sessions and memory_usage. * Comment code managing trace_api_bytes as there is no suppor it. * Add status code to HTTP error logs. * Define constants for for literals. * Replace 'trace-chunk-*' for 'trace-chunks-*.
0ed9d3d
to
07475df
Compare
07475df
to
1a0aa63
Compare
What does this PR do?
Adds support for sending the following metrics:
Aside from the introduction of those new metrics a small refactor has been done on send_data.rs in order to address some technical debt from previous PRs. This changes can be summarized in:
SendData
fields.SendDataResult
.TraceHeaderTags
andSendData
.Motivation
In order to turn the sidecar on by default for PHP there is the need to support those metrics.