Skip to content

Commit

Permalink
Sort the list of env vars for profiler config (#4040)
Browse files Browse the repository at this point in the history
  • Loading branch information
szegedi authored and tlhunter committed Feb 14, 2024
1 parent c2c092b commit 66847e3
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions packages/dd-trace/src/profiling/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,34 +18,34 @@ const { isFalse, isTrue } = require('../util')
class Config {
constructor (options = {}) {
const {
DD_PROFILING_ENABLED,
DD_PROFILING_PROFILERS,
DD_ENV,
DD_TAGS,
DD_SERVICE,
DD_VERSION,
DD_TRACE_AGENT_URL,
DD_AGENT_HOST,
DD_TRACE_AGENT_PORT,
DD_ENV,
DD_PROFILING_CODEHOTSPOTS_ENABLED,
DD_PROFILING_DEBUG_SOURCE_MAPS,
DD_PROFILING_UPLOAD_TIMEOUT,
DD_PROFILING_SOURCE_MAP,
DD_PROFILING_UPLOAD_PERIOD,
DD_PROFILING_PPROF_PREFIX,
DD_PROFILING_HEAP_ENABLED,
DD_PROFILING_V8_PROFILER_BUG_WORKAROUND,
DD_PROFILING_WALLTIME_ENABLED,
DD_PROFILING_ENABLED,
DD_PROFILING_ENDPOINT_COLLECTION_ENABLED,
DD_PROFILING_EXPERIMENTAL_CODEHOTSPOTS_ENABLED,
DD_PROFILING_EXPERIMENTAL_CPU_ENABLED,
DD_PROFILING_EXPERIMENTAL_OOM_MONITORING_ENABLED,
DD_PROFILING_EXPERIMENTAL_ENDPOINT_COLLECTION_ENABLED,
DD_PROFILING_EXPERIMENTAL_OOM_EXPORT_STRATEGIES,
DD_PROFILING_EXPERIMENTAL_OOM_HEAP_LIMIT_EXTENSION_SIZE,
DD_PROFILING_EXPERIMENTAL_OOM_MAX_HEAP_EXTENSION_COUNT,
DD_PROFILING_EXPERIMENTAL_OOM_EXPORT_STRATEGIES,
DD_PROFILING_TIMELINE_ENABLED,
DD_PROFILING_EXPERIMENTAL_OOM_MONITORING_ENABLED,
DD_PROFILING_EXPERIMENTAL_TIMELINE_ENABLED,
DD_PROFILING_CODEHOTSPOTS_ENABLED,
DD_PROFILING_ENDPOINT_COLLECTION_ENABLED,
DD_PROFILING_EXPERIMENTAL_CODEHOTSPOTS_ENABLED,
DD_PROFILING_EXPERIMENTAL_ENDPOINT_COLLECTION_ENABLED
DD_PROFILING_HEAP_ENABLED,
DD_PROFILING_PPROF_PREFIX,
DD_PROFILING_PROFILERS,
DD_PROFILING_SOURCE_MAP,
DD_PROFILING_TIMELINE_ENABLED,
DD_PROFILING_UPLOAD_PERIOD,
DD_PROFILING_UPLOAD_TIMEOUT,
DD_PROFILING_V8_PROFILER_BUG_WORKAROUND,
DD_PROFILING_WALLTIME_ENABLED,
DD_SERVICE,
DD_TAGS,
DD_TRACE_AGENT_PORT,
DD_TRACE_AGENT_URL,
DD_VERSION
} = process.env

const enabled = isTrue(coalesce(options.enabled, DD_PROFILING_ENABLED, true))
Expand Down

0 comments on commit 66847e3

Please sign in to comment.