Browse Source

update configure service name

master
andrey 8 months ago
parent
commit
a579343fc7
  1. 4
      meter/provider.go

4
meter/provider.go

@ -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

Loading…
Cancel
Save