-
Notifications
You must be signed in to change notification settings - Fork 936
Open
Labels
feature-requestA feature should be added or improved.A feature should be added or improved.p2This is a standard priority issueThis is a standard priority issuesdk-metrics
Description
Describe the bug
In v1 for Java, one could call AwsSdkMetrics.setMetricCollector(new MyCustomCollector()) if you wanted SDK client metrics but didn't want to use CloudWatch (we use Prometheus and Grafana). With a custom collector, we could automatically transform any AWS service call in the application to a Prometheus metric without having to wrap each and every call site or client reference in the codebase.
Expected Behavior
Single point to register and transform all AWS SDK metrics to custom output.
Current Behavior
No such equivalent API appears to exist in v2.
Reproduction Steps
Nothing in the JavaDocs or blog posts seem to show any alternatives. The bug is that v1 behavior cannot be reproduced.
Possible Solution
Re-implement a AwsSdkMetrics.setMetricCollector(...) equivalent for v2.
Additional Information/Context
No response
AWS Java SDK version used
2.17.220
JDK version used
17.0.1
Operating System and version
MacOS 12.2.1
kdelalic, mdaniel, karpoftea, genuss, jakubskalak and 17 more
Metadata
Metadata
Assignees
Labels
feature-requestA feature should be added or improved.A feature should be added or improved.p2This is a standard priority issueThis is a standard priority issuesdk-metrics