diff --git a/commands/root.go b/commands/root.go index 6b1f867..9e2a9f3 100644 --- a/commands/root.go +++ b/commands/root.go @@ -64,7 +64,11 @@ func Execute() { func execute() error { // initialize otel SDK - otelShutdown, err := otelsetup.Init(context.Background(), "autoscaler", version.Version) + otelShutdown, err := otelsetup.InitWithOptions(context.Background(), otelsetup.Options{ + ServiceName: "autoscaler", + ServiceVersion: version.Version, + ServiceNamespace: "sacloud", + }) if err != nil { log.Println("Error in initializing OTel SDK: " + err.Error()) return err