update configure service name

This commit is contained in:
andrey
2024-04-06 16:27:21 +03:00
parent 87d9f87a6d
commit a579343fc7

View File

@@ -13,8 +13,8 @@ import (
semconv "go.opentelemetry.io/otel/semconv/v1.17.0" semconv "go.opentelemetry.io/otel/semconv/v1.17.0"
) )
func WithServiceName(name string) func(*Option) error { func WithServiceName(name string) func(context.Context, *Option) error {
return func(o *Option) error { return func(_ context.Context, o *Option) error {
o.serviceName = name o.serviceName = name
return nil return nil