traceprof.go 902 B

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