64
rsn primitives.ServiceName,
65
envVars envVarLookup,
67
>
// map "internal-frontend" to "frontend" for the purpose of tracing
68
>
if rsn == primitives.InternalFrontendService {
69
rsn = primitives.FrontendService
70
}
71
72
// allow custom prefix via env vars
73
>
serviceNamePrefix := "io.temporal"
env.go
74
>
if customServicePrefix, found := envVars(OtelServiceNameEnvKey); found {
75
serviceNamePrefix = customServicePrefix
76
}
77
78
>
return fmt.Sprintf("%s.%s", serviceNamePrefix, string(rsn))
env.go
79
}