From eeb41f78a3fb2aa6a3b61a4e7230ed2c1f5d5c96 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 21 May 2024 20:38:07 +0000 Subject: [PATCH 1/2] fix(deps): update module go.opentelemetry.io/contrib/bridges/otelslog to v0.2.0 --- example/dice/go.mod | 2 +- example/dice/go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/example/dice/go.mod b/example/dice/go.mod index 67ac318c728..50a052368e7 100644 --- a/example/dice/go.mod +++ b/example/dice/go.mod @@ -3,7 +3,7 @@ module go.opentelemetry.io/otel/example/dice go 1.21 require ( - go.opentelemetry.io/contrib/bridges/otelslog v0.1.0 + go.opentelemetry.io/contrib/bridges/otelslog v0.2.0 go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.51.0 go.opentelemetry.io/otel v1.27.0 go.opentelemetry.io/otel/exporters/stdout/stdoutlog v0.3.0 diff --git a/example/dice/go.sum b/example/dice/go.sum index 33e07d56dc0..a29309513ce 100644 --- a/example/dice/go.sum +++ b/example/dice/go.sum @@ -13,8 +13,8 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= -go.opentelemetry.io/contrib/bridges/otelslog v0.1.0 h1:XQka5HbIS6JOeZvWz3oKyvzGmMaw7bsHH6r26Kmbrc4= -go.opentelemetry.io/contrib/bridges/otelslog v0.1.0/go.mod h1:TTRD9H+Ddlxv9NaX+2kQXUGiYAOpcOS0kkTlC1EI4Wg= +go.opentelemetry.io/contrib/bridges/otelslog v0.2.0 h1:8wisJ9dZUU1YZGJDsQgfCkexQ/zsZF1SZB6Z86j4WJA= +go.opentelemetry.io/contrib/bridges/otelslog v0.2.0/go.mod h1:/fUobpnNkWPrkMb7HKL80Ewfkqzyko1KUUX0h7aNtxo= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.51.0 h1:Xs2Ncz0gNihqu9iosIZ5SkBbWo5T8JhhLJFMQL1qmLI= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.51.0/go.mod h1:vy+2G/6NvVMpwGX/NyLqcC41fxepnuKHk16E6IZUcJc= golang.org/x/sys v0.20.0 h1:Od9JTbYCk261bKm4M/mw7AklTlFYIa0bIp9BgSm1S8Y= From b72a59826afcb966943b85fe072672e4d428a085 Mon Sep 17 00:00:00 2001 From: Tyler Yahn Date: Tue, 21 May 2024 13:42:16 -0700 Subject: [PATCH 2/2] Fix example Use new API. --- example/dice/rolldice.go | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/example/dice/rolldice.go b/example/dice/rolldice.go index 6206db9bee0..04e3a28f88c 100644 --- a/example/dice/rolldice.go +++ b/example/dice/rolldice.go @@ -7,19 +7,14 @@ import ( "go.opentelemetry.io/contrib/bridges/otelslog" "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/metric" - "go.opentelemetry.io/otel/sdk/instrumentation" ) const name = "rolldice" var ( - tracer = otel.Tracer(name) - meter = otel.Meter(name) - logger = otelslog.NewLogger( - otelslog.WithInstrumentationScope(instrumentation.Scope{ - Name: name, - }), - ) + tracer = otel.Tracer(name) + meter = otel.Meter(name) + logger = otelslog.NewLogger(name) rollCnt metric.Int64Counter )