Browse Source

update configure service name

master
andrey 1 month 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"
)
func WithServiceName(name string) func(*Option) error {
return func(o *Option) error {
func WithServiceName(name string) func(context.Context, *Option) error {
return func(_ context.Context, o *Option) error {
o.serviceName = name
return nil

Loading…
Cancel
Save