update configure service name
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user