You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: agent/agent-tooling/src/main/java/com/microsoft/applicationinsights/agent/internal/configuration/Configuration.java
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -165,7 +165,8 @@ public static class Sampling {
165
165
// fixed percentage of requests
166
166
@NullablepublicDoublepercentage;
167
167
168
-
// default is 5 requests per second
168
+
// default is 5 requests per second (set in ConfigurationBuilder if neither percentage nor
169
+
// limitPerSecond was configured)
169
170
@NullablepublicDoublelimitPerSecond;
170
171
}
171
172
@@ -602,7 +603,8 @@ public static class SamplingOverride {
602
603
@NullablepublicTelemetryKindtelemetryKind;
603
604
604
605
// TODO (trask) should this be named "standalone" (and meaning flipped)
605
-
// TODO (trask) need to add test for this
606
+
// especially if we aren't going to change meaning of "request" to include unparented INTERNAL
607
+
// spans
606
608
publicbooleaninRequest = true;
607
609
608
610
// not using include/exclude, because you can still get exclude with this by adding a second
Copy file name to clipboardExpand all lines: agent/agent-tooling/src/main/java/com/microsoft/applicationinsights/agent/internal/exporter/AgentLogExporter.java
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -112,10 +112,12 @@ public CompletableResultCode export(Collection<LogData> logs) {
Copy file name to clipboardExpand all lines: agent/agent-tooling/src/main/java/com/microsoft/applicationinsights/agent/internal/sampling/AiOverrideSampler.java
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -66,7 +66,8 @@ public SamplingResult shouldSample(
Copy file name to clipboardExpand all lines: agent/agent-tooling/src/main/java/com/microsoft/applicationinsights/agent/internal/sampling/SamplingOverrides.java
+11-5Lines changed: 11 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -47,10 +47,10 @@ public SamplingOverrides(List<SamplingOverride> overrides) {
Copy file name to clipboardExpand all lines: agent/agent-tooling/src/test/java/com/microsoft/applicationinsights/agent/internal/sampling/SamplingOverridesTest.java
+15-15Lines changed: 15 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@
36
36
importjava.util.List;
37
37
importorg.junit.jupiter.api.Test;
38
38
39
-
// TODO (trask) add coverage for TelemetryKind
39
+
// TODO (trask) add coverage for TelemetryKind and inRequest
0 commit comments