-
Notifications
You must be signed in to change notification settings - Fork 272
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
Migrate histogram metrics to {f,u}64_histogram!
#6356
Conversation
✅ Docs Preview ReadyNo new or changed pages found. |
CI performance tests
|
apollo-router/src/graphql/request.rs
Outdated
f64_histogram!( | ||
"apollo.router.operations.batching.size", | ||
"Number of queries contained within each query batch", | ||
result.len() as f64, | ||
mode = BatchingMode::BatchHttpLink.to_string() // Only supported mode right now | ||
); |
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.
Could we safely change this to u64_histogram!
, or would that be a breaking change?
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 don't think it breaks anything. @BrynCooke do you know ?
6294bac
to
8b333e5
Compare
Notes: - The name of the metric used a `.` instead of `_` in `query_planning`. Is it breaking to change that? I'm not sure I understand the difference
8b333e5
to
eed5480
Compare
This comment has been minimized.
This comment has been minimized.
apollo-router/src/graphql/request.rs
Outdated
f64_histogram!( | ||
"apollo.router.operations.batching.size", | ||
"Number of queries contained within each query batch", | ||
result.len() as f64, | ||
mode = BatchingMode::BatchHttpLink.to_string() // Only supported mode right now | ||
); |
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 don't think it breaks anything. @BrynCooke do you know ?
This is part 2 of... 4 or 5? of a series of work to move over to our new telemetry macros, and a follow-up to #6350.
We have both a
u64_histogram!
and af64_histogram!
macro, but we don't have any legacy metrics usingu64
. We do have one that could:apollo.router.operations.batching.size
.The
tracing::info!(histogram.)
syntax continues to be supported in the 1.x branch of the router.Checklist
Complete the checklist (and note appropriate exceptions) before the PR is marked ready-for-review.
Exceptions
Note any exceptions here
Notes
Footnotes
It may be appropriate to bring upcoming changes to the attention of other (impacted) groups. Please endeavour to do this before seeking PR approval. The mechanism for doing this will vary considerably, so use your judgement as to how and when to do this. ↩
Configuration is an important part of many changes. Where applicable please try to document configuration examples. ↩
Tick whichever testing boxes are applicable. If you are adding Manual Tests, please document the manual testing (extensively) in the Exceptions. ↩