From e308db8adf2e667139b24200bc18e7c450d35198 Mon Sep 17 00:00:00 2001 From: Damien Mathieu <42@dmathieu.com> Date: Fri, 31 Oct 2025 21:55:01 +0100 Subject: [PATCH] chore: handle Float64Histogram in log/observe errMeter (#7555) Calling other metrics from this meter provider should be a noop, not a panic. This fixes the test suite in https://github.com/open-telemetry/opentelemetry-go/pull/7524 --- sdk/log/internal/observ/simple_log_processor_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sdk/log/internal/observ/simple_log_processor_test.go b/sdk/log/internal/observ/simple_log_processor_test.go index 1d63c4d6a..a186d656c 100644 --- a/sdk/log/internal/observ/simple_log_processor_test.go +++ b/sdk/log/internal/observ/simple_log_processor_test.go @@ -41,6 +41,10 @@ func (m *errMeter) Int64Counter(string, ...mapi.Int64CounterOption) (mapi.Int64C return nil, m.err } +func (m *errMeter) Float64Histogram(string, ...mapi.Float64HistogramOption) (mapi.Float64Histogram, error) { + return nil, m.err +} + const slpComponentID = 0 func TestNewSLPError(t *testing.T) {