We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0a61bc commit 7841b6bCopy full SHA for 7841b6b
docs/examples/metrics/instruments/example.py
@@ -58,5 +58,13 @@ def observable_gauge_func(options: CallbackOptions) -> Iterable[Observation]:
58
histogram = meter.create_histogram("histogram")
59
histogram.record(99.9)
60
61
+
62
+# Histogram with explicit_bucket_boundaries advisory
63
+histogram = meter.create_histogram(
64
+ "histogram_with_advisory",
65
+ advisory={"explicit_bucket_boundaries": [0, 1, 2]},
66
+)
67
+histogram.record(99.9)
68
69
# Async Gauge
70
gauge = meter.create_observable_gauge("gauge", [observable_gauge_func])
0 commit comments