Metric aggregation not working for me #7513
Unanswered
chanda1998
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Can you provide a full reproduction repository with the full configuration and implementation? Along with an explanation of what you expected to happen, and a demonstration of what actually happens? I don't understand what you are trying to do, just based on this little snippet you've provided. A full reproduction would be very helpful in understanding. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
we want to achieve metric aggregation using custom attribute in span. We have provided a meter provide customizer in autoConfiguration object like this
`@Override
public void customize(AutoConfigurationCustomizer autoConfiguration) {
configure();
autoConfiguration .addTracerProviderCustomizer(this::configureSdkTracerProvider) .addMeterProviderCustomizer(this::meterProviderCustomizer);
}
private SdkMeterProviderBuilder meterProviderCustomizer(SdkMeterProviderBuilder builder, ConfigProperties config) {
return builder.registerView(InstrumentSelector.builder().setName("http.server.request.duration").build() , View.builder().setAttributeFilter(new HashSet(Arrays.asList("cav.BT"))).build()); }`
but still there is no aggregation of metric, spans and metrices are comming same way as before. Is there any other configuration or code needed to achieve custom aggregation?
Beta Was this translation helpful? Give feedback.
All reactions