We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6e8c958 + 2e6f275 commit c8fad6aCopy full SHA for c8fad6a
pkg/instrumentation/profiler.go
@@ -31,8 +31,11 @@ func (p *Profiler) Stop() {
31
// NewProfiler constructs new profiler with options.
32
// You can include common options like: profiler.WithService(appName), profiler.WithVersion(version).
33
func NewProfiler(config *Config, options ...profiler.Option) *Profiler {
34
+ serviceName := globalServiceName(config.ServiceName)
35
+
36
options = append(
37
options,
38
+ profiler.WithService(serviceName),
39
profiler.WithEnv(config.environment),
40
profiler.WithVersion(config.ServiceVersion),
41
)
0 commit comments