@@ -637,11 +637,35 @@ public Builder metricsSender(OtlpMetricsSender metricsSender) {
637
637
return this ;
638
638
}
639
639
640
+ /**
641
+ * Override the default matching behavior to use with
642
+ * {@link OtlpConfig#histogramFlavorPerMeter()}. The default behavior is longest
643
+ * dot-separated match wins. For example, if
644
+ * {@link OtlpConfig#histogramFlavorPerMeter()} has keys {@literal http} and
645
+ * {@literal http.server}, an ID with a name {@literal http.server.requests} would
646
+ * match with the entry having key {@literal http.server}, whereas an ID with name
647
+ * {@literal http.client.requests} would match with the entry having the key
648
+ * {@literal http}.
649
+ *
650
+ * @see OtlpConfig#histogramFlavorPerMeter()
651
+ */
640
652
public Builder histogramFlavorPerMeterLookup (HistogramFlavorPerMeterLookup histogramFlavorPerMeterLookup ) {
641
653
this .histogramFlavorPerMeterLookup = histogramFlavorPerMeterLookup ;
642
654
return this ;
643
655
}
644
656
657
+ /**
658
+ * Override the default matching behavior to use with
659
+ * {@link OtlpConfig#maxBucketsPerMeter()}. The default behavior is longest
660
+ * dot-separated match wins. For example, if
661
+ * {@link OtlpConfig#maxBucketsPerMeter()} has keys {@literal http} and
662
+ * {@literal http.server}, an ID with a name {@literal http.server.requests} would
663
+ * match with the entry having key {@literal http.server}, whereas an ID with name
664
+ * {@literal http.client.requests} would match with the entry having the key
665
+ * {@literal http}.
666
+ *
667
+ * @see OtlpConfig#maxBucketsPerMeter()
668
+ */
645
669
public Builder maxBucketsPerMeterLookup (MaxBucketsPerMeterLookup maxBucketsPerMeterLookup ) {
646
670
this .maxBucketsPerMeterLookup = maxBucketsPerMeterLookup ;
647
671
return this ;
0 commit comments