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