mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user