Metric aggregation not working for me #2056
Unanswered
chanda1998
asked this question in
Q&A
Replies: 0 comments
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.
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