chore: rename service -> coder_service, remove agent_id label (#19241)

Pyroscope uses `service` tag for top level distinction. So move our
`service` -> `coder_service`
This commit is contained in:
Steven Masley
2025-08-07 13:58:39 -05:00
committed by GitHub
parent b8851f03e3
commit 34c46c0748
4 changed files with 40 additions and 14 deletions
+9 -1
View File
@@ -10,14 +10,22 @@ func Go(ctx context.Context, labels pprof.LabelSet, f func(context.Context)) {
go pprof.Do(ctx, labels, f)
}
func Do(ctx context.Context, labels pprof.LabelSet, f func(context.Context)) {
pprof.Do(ctx, labels, f)
}
const (
ServiceTag = "service"
// ServiceTag should not collide with the pyroscope built-in tag "service".
// Use `coder_` to avoid collisions.
ServiceTag = "coder_service"
ServiceHTTPServer = "http-api"
ServiceLifecycles = "lifecycle-executor"
ServiceMetricCollector = "metrics-collector"
ServicePrebuildReconciler = "prebuilds-reconciler"
ServiceTerraformProvisioner = "terraform-provisioner"
RequestTypeTag = "coder_request_type"
)
func Service(name string, pairs ...string) pprof.LabelSet {