22 references to ExportStrategy
Microsoft.Extensions.Telemetry.PerformanceTests (22)
SerializedExporterImpactBench.cs (15)
38
ExportStrategy
.RandomOnePercent,
39
ExportStrategy
.RandomByCategory,
40
ExportStrategy
.TraceRetain,
41
ExportStrategy
.TraceDrop,
42
ExportStrategy
.BottomKOnePercent)]
43
public
ExportStrategy
Strategy { get; set; }
54
if (Strategy is
ExportStrategy
.TraceRetain or
ExportStrategy
.TraceDrop)
58
ActivityTraceFlags = Strategy ==
ExportStrategy
.TraceRetain
88
ExportStrategy
? strategy = null,
100
case
ExportStrategy
.RandomOnePercent:
104
case
ExportStrategy
.RandomByCategory:
117
case
ExportStrategy
.TraceRetain:
118
case
ExportStrategy
.TraceDrop:
122
case
ExportStrategy
.BottomKOnePercent:
SerializedExporterVolumeMeasurement.cs (7)
22
foreach (SerializedExporterImpactBench.
ExportStrategy
strategy
23
in Enum.GetValues<SerializedExporterImpactBench.
ExportStrategy
>())
30
private static void Measure(SerializedExporterImpactBench.
ExportStrategy
? strategy, int recordCount)
53
private static Activity? StartActivity(SerializedExporterImpactBench.
ExportStrategy
? strategy)
56
SerializedExporterImpactBench.
ExportStrategy
.TraceRetain or
57
SerializedExporterImpactBench.
ExportStrategy
.TraceDrop))
64
ActivityTraceFlags = strategy == SerializedExporterImpactBench.
ExportStrategy
.TraceRetain