Latency Metrics Logging #5757
Answered
by
debora-ito
ozheng-circle
asked this question in
Migration from v1 to v2
-
SDK v1 could enable latency metrics logging, but I am having trouble finding the v2 counterpart? It seems like this guide is the only one that's relevant, and it doesn't have any information on latency logging. |
Beta Was this translation helpful? Give feedback.
Answered by
debora-ito
Dec 18, 2024
Replies: 1 comment
-
In v2, you can generate latency metrics by using a MetricPublisher - S3Client client = S3Client.builder()
.region(Region.US_WEST_2)
.overrideConfiguration(c->c.addMetricPublisher(LoggingMetricPublisher.create()))
.build();
For more info see Use SDK Metrics in our Dev Guide and check the examples in the blog post. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ozheng-circle
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In v2, you can generate latency metrics by using a MetricPublisher -
LoggingMetricPublisher
is provided out-of-the-box, but there's also a way to publish metrics to CloudWatch.For more info see Use SDK Metrics in our Dev Guide and check the examples in the blog post.