From 7169a6fcd71f22ee9850a76a8afbbbf4b65eb60a Mon Sep 17 00:00:00 2001 From: Tyler Yahn Date: Wed, 20 Mar 2024 15:21:31 -0700 Subject: [PATCH] Test NewLogger (#5316) --- bridges/otelslog/handler_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bridges/otelslog/handler_test.go b/bridges/otelslog/handler_test.go index e66e611b35f..f685d6b13bb 100644 --- a/bridges/otelslog/handler_test.go +++ b/bridges/otelslog/handler_test.go @@ -14,6 +14,10 @@ import ( "go.opentelemetry.io/otel/log/embedded" ) +func TestNewLogger(t *testing.T) { + assert.IsType(t, &Handler{}, NewLogger().Handler()) +} + // embeddedLogger is a type alias so the embedded.Logger type doesn't conflict // with the Logger method of the recorder when it is embedded. type embeddedLogger = embedded.Logger // nolint:unused // Used below.