Skip to content

Commit 20ab0e7

Browse files
authored
notice: The transactionTracer.stackTraceThreshold setting has been deprecated and no longer has any effect. (#1896)
1 parent 392391a commit 20ab0e7

File tree

8 files changed

+3
-24
lines changed

8 files changed

+3
-24
lines changed

src/Agent/Configuration/newrelic.config

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
</attributes>
1919
<transactionTracer enabled="true"
2020
transactionThreshold="apdex_f"
21-
stackTraceThreshold="500"
2221
recordSql="obfuscated"
2322
explainEnabled="false"
2423
explainThreshold="500" />

src/Agent/NewRelic/Agent/Core/Config/Configuration.xsd

+1
Original file line numberDiff line numberDiff line change
@@ -913,6 +913,7 @@
913913
<xs:attribute name="stackTraceThreshold" type="xs:int" default="500">
914914
<xs:annotation>
915915
<xs:documentation>
916+
Deprecated: The transactionTracer.stackTraceThreshold setting has been deprecated and no longer has any effect. This setting will be removed in a future major release.
916917
The threshold (in milliseconds) for when to collect a stack trace for a SQL call.
917918
In other words, when SQL statements exceed this threshold, then capture and send to New Relic the current stack trace. This is helpful for pinpointing where long SQL calls originate from.
918919
</xs:documentation>

src/Agent/NewRelic/Agent/Core/Configuration/DefaultConfiguration.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1772,7 +1772,6 @@ private RecordSqlConfigurationItem GetServerOverrideOrLocalRecordSqlConfiguratio
17721772
return new RecordSqlConfigurationItem(localRecordSqlString, LocalConfigSource);
17731773
}
17741774

1775-
public virtual TimeSpan TransactionTracerStackThreshold { get { return ServerOverrides((TimeSpanExtensions.FromSeconds(_serverConfiguration.RpmConfig.TransactionTracerStackThreshold)), TimeSpan.FromMilliseconds(_localConfiguration.transactionTracer.stackTraceThreshold)); } }
17761775
public virtual int TransactionTracerMaxStackTraces { get { return _localConfiguration.transactionTracer.maxStackTrace; } }
17771776
public virtual IEnumerable<Regex> RequestPathExclusionList
17781777
{

src/Agent/NewRelic/Agent/Core/Configuration/ReportedConfiguration.cs

-3
Original file line numberDiff line numberDiff line change
@@ -485,9 +485,6 @@ public ReportedConfiguration(IConfiguration configuration)
485485
[JsonProperty("transaction_tracer.record_sql_source")]
486486
public string TransactionTracerRecordSqlSource => _configuration.TransactionTracerRecordSqlSource;
487487

488-
[JsonProperty("transaction_tracer.stack_trace_threshold")]
489-
public TimeSpan TransactionTracerStackThreshold => _configuration.TransactionTracerStackThreshold;
490-
491488
[JsonProperty("transaction_tracer.max_stack_traces")]
492489
public int TransactionTracerMaxStackTraces => _configuration.TransactionTracerMaxStackTraces;
493490

src/Agent/NewRelic/Agent/Extensions/NewRelic.Agent.Extensions/Configuration/IConfiguration.cs

-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,6 @@ public interface IConfiguration
152152
int TransactionTracerMaxSegments { get; }
153153
string TransactionTracerRecordSql { get; }
154154
string TransactionTracerRecordSqlSource { get; }
155-
TimeSpan TransactionTracerStackThreshold { get; }
156155
int TransactionTracerMaxStackTraces { get; }
157156
IEnumerable<long> TrustedAccountIds { get; }
158157
bool ServerSideConfigurationEnabled { get; }

tests/Agent/UnitTests/Core.UnitTest/Configuration/DefaultConfigurationTests.cs

-16
Original file line numberDiff line numberDiff line change
@@ -1287,22 +1287,6 @@ public void BrowserMonitoringJavaScriptAgentLoaderTypeSetToDefaultRum()
12871287
Assert.AreEqual("rum", _defaultConfig.BrowserMonitoringJavaScriptAgentLoaderType);
12881288
}
12891289

1290-
[TestCase(500, null, ExpectedResult = 500)]
1291-
[TestCase(1, null, ExpectedResult = 1)]
1292-
[TestCase(0, null, ExpectedResult = 0)]
1293-
[TestCase(500, 0.5, ExpectedResult = 500)]
1294-
[TestCase(500, 0.0, ExpectedResult = 0)]
1295-
[TestCase(0, 0.5, ExpectedResult = 500)]
1296-
[TestCase(1, 0.2, ExpectedResult = 200)]
1297-
[TestCase(-300, null, ExpectedResult = -300)]
1298-
public int TransactionTracerStackThresholdServerOverridesLocal(int local, double? server)
1299-
{
1300-
_localConfig.transactionTracer.stackTraceThreshold = local;
1301-
_serverConfig.RpmConfig.TransactionTracerStackThreshold = server;
1302-
1303-
return _defaultConfig.TransactionTracerStackThreshold.Milliseconds;
1304-
}
1305-
13061290
[Test]
13071291
public void ThreadProfilingIgnoreMethodFromXmlDecodesIntoListOfStrings()
13081292
{

tests/Agent/UnitTests/Core.UnitTest/DataTransport/AgentSettingsTests.cs

+1-1
Large diffs are not rendered by default.

tests/Agent/UnitTests/Core.UnitTest/DataTransport/ConnectModelTests.cs

+1-1
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)