Skip to content

Commit

Permalink
Enable queue time tracing by default (#6833)
Browse files Browse the repository at this point in the history
  • Loading branch information
richardstartin committed Mar 21, 2024
1 parent 45ff2b9 commit 78b3d6c
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,6 @@ class ExecutorInstrumentationLegacyForkedTest extends ExecutorInstrumentationTes
class ExecutorInstrumentationQueueTimeForkedTest extends ExecutorInstrumentationTest {
def setupSpec() {
System.setProperty("dd.profiling.enabled", "true")
System.setProperty("dd.profiling.experimental.queueing.time.enabled", "true")
System.setProperty("dd.profiling.queueing.time.enabled", "true")
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class QueueTimingForkedTest extends AgentTestRunner {
protected void configurePreAgent() {
// required for enabling the unwrapping instrumentation to get the relevant non-carrier class names
injectSysConfig("dd.profiling.enabled", "true")
injectSysConfig("dd.profiling.experimental.queueing.time.enabled", "true")
injectSysConfig("dd.profiling.queueing.time.enabled", "true")
InstrumentationBasedProfiling.enableInstrumentationBasedProfiling()
super.configurePreAgent()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class TaskUnwrappingForkedTest extends AgentTestRunner {
@Override
protected void configurePreAgent() {
injectSysConfig("dd.profiling.enabled", "true")
injectSysConfig("dd.profiling.experimental.queueing.time.enabled", "true")
injectSysConfig("dd.profiling.queueing.time.enabled", "true")
super.configurePreAgent()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class TimingTest extends AgentTestRunner {
@Override
protected void configurePreAgent() {
injectSysConfig("dd.profiling.enabled", "true")
injectSysConfig("dd.profiling.experimental.queueing.time.enabled", "true")
injectSysConfig("dd.profiling.queueing.time.enabled", "true")
InstrumentationBasedProfiling.enableInstrumentationBasedProfiling()
super.configurePreAgent()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -763,8 +763,8 @@ private static ProcessBuilder createProcessBuilder(
"-Ddd.profiling.endpoint.collection.enabled=" + endpointCollectionEnabled,
"-Ddd.profiling.upload.timeout=" + PROFILING_UPLOAD_TIMEOUT_SECONDS,
"-Ddd.profiling.debug.dump_path=/tmp/dd-profiler",
"-Ddd.profiling.experimental.queueing.time.enabled=true",
"-Ddd.profiling.experimental.queueing.time.threshold.millis=0",
"-Ddd.profiling.queueing.time.enabled=true",
"-Ddd.profiling.queueing.time.threshold.millis=0",
"-Ddd.profiling.experimental.jmethodid_cache.enabled=" + jmethodIdCacheEnabled,
"-Ddatadog.slf4j.simpleLogger.defaultLogLevel=debug",
"-Ddd.profiling.context.attributes=foo,bar",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,13 +187,12 @@ public final class ProfilingConfig {
public static final String PROFILING_CONTEXT_ATTRIBUTES_RESOURCE_NAME_ENABLED =
"profiling.context.attributes.resource.name.enabled";

public static final String PROFILING_QUEUEING_TIME_ENABLED =
"profiling.experimental.queueing.time.enabled";
public static final String PROFILING_QUEUEING_TIME_ENABLED = "profiling.queueing.time.enabled";

public static final boolean PROFILING_QUEUEING_TIME_ENABLED_DEFAULT = false;
public static final boolean PROFILING_QUEUEING_TIME_ENABLED_DEFAULT = true;

public static final String PROFILING_QUEUEING_TIME_THRESHOLD_MILLIS =
"profiling.experimental.queueing.time.threshold.millis";
"profiling.queueing.time.threshold.millis";

public static final long PROFILING_QUEUEING_TIME_THRESHOLD_MILLIS_DEFAULT = 50;

Expand Down

0 comments on commit 78b3d6c

Please sign in to comment.