forked from DataDog/dd-trace-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
traceprof.go
21 lines (18 loc) · 902 Bytes
/
traceprof.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Unless explicitly stated otherwise all files in this repository are licensed
// under the Apache License Version 2.0.
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2021 Datadog, Inc.
// Package traceprof contains shared logic for cross-cutting tracer/profiler features.
package traceprof
// pprof labels applied by the tracer to show up in the profiler's profiles.
const (
SpanID = "span id"
LocalRootSpanID = "local root span id"
TraceEndpoint = "trace endpoint"
)
// env variables used to control cross-cutting tracer/profiling features.
const (
CodeHotspotsEnvVar = "DD_PROFILING_CODE_HOTSPOTS_COLLECTION_ENABLED" // aka code hotspots
EndpointEnvVar = "DD_PROFILING_ENDPOINT_COLLECTION_ENABLED" // aka endpoint profiling
EndpointCountEnvVar = "DD_PROFILING_ENDPOINT_COUNT_ENABLED" // aka unit of work
)