-
Notifications
You must be signed in to change notification settings - Fork 189
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
Allow clients to define custom callbacks to handle telemetry #1080
Merged
muddyfish
merged 3 commits into
awslabs:main
from
aws-hans-pistor:feat/custom-telemetry-callbacks
Jan 13, 2025
Merged
Allow clients to define custom callbacks to handle telemetry #1080
muddyfish
merged 3 commits into
awslabs:main
from
aws-hans-pistor:feat/custom-telemetry-callbacks
Jan 13, 2025
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aws-hans-pistor
commented
Oct 23, 2024
aws-hans-pistor
commented
Oct 23, 2024
79131f5
to
98df814
Compare
3000b47
to
88a2a1f
Compare
I've rebased back onto upstream's mainline |
Signed-off-by: Hans Pistor <[email protected]>
vladem
reviewed
Jan 8, 2025
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, one minor suggestion. Launched the tests, ready to approve after that.
Co-authored-by: Volodkin Vladislav <[email protected]> Signed-off-by: aws-hans-pistor <[email protected]>
vladem
approved these changes
Jan 9, 2025
muddyfish
approved these changes
Jan 9, 2025
The failing test seems unrelated
|
keremnc
pushed a commit
to keremnc/mountpoint-s3
that referenced
this pull request
Jan 24, 2025
…#1080) ## Description of change Different users of mountpoint will care about different metrics returned for each requests, so allow them to define their own custom handlers for the on_telemetry callback in addition to the default metrics that mountpoint emits. This allows users to do things like: - emit extended request ids ("x-amz-id-2") - When some criteria is met, log out additional information Relevant issues: awslabs#1079 ## Does this change impact existing behavior? No there should be no breaking changes, the only visible change is that there's a new field to the S3ClientConfig which defines the custom telemetry handler ## Does this change need a changelog entry in any of the crates? Just a note in mountpoint-s3-client letting users know this feature now exists --- By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and I agree to the terms of the [Developer Certificate of Origin (DCO)](https://developercertificate.org/). --------- Signed-off-by: Hans Pistor <[email protected]> Signed-off-by: aws-hans-pistor <[email protected]> Co-authored-by: Volodkin Vladislav <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of change
Different users of mountpoint will care about different metrics returned for each requests, so allow them to define their own custom handlers for the on_telemetry callback in addition to the default metrics that mountpoint emits.
This allows users to do things like:
Relevant issues: #1079
Does this change impact existing behavior?
No there should be no breaking changes, the only visible change is that there's a new field to the S3ClientConfig which defines the custom telemetry handler
Does this change need a changelog entry in any of the crates?
Just a note in mountpoint-s3-client letting users know this feature now exists
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and I agree to the terms of the Developer Certificate of Origin (DCO).