3 instantiations of ActivityCreationOptions
System.Diagnostics.DiagnosticSource (3)
System\Diagnostics\ActivitySource.cs (3)
213aco = new ActivityCreationOptions<string>(this, name, parentId, kind, tags, links, idFormat); 217acoContext = new ActivityCreationOptions<ActivityContext>(this, name, aco.GetContext(), kind, tags, links, ActivityIdFormat.W3C); 289var aco = new ActivityCreationOptions<ActivityContext>(this, name, useCurrentActivityContext ? Activity.Current!.Context : context, kind, tags, links, idFormat);
47 references to ActivityCreationOptions
Microsoft.AspNetCore.Hosting.Tests (6)
HostingApplicationDiagnosticsTests.cs (4)
185Sample = (ref ActivityCreationOptions<ActivityContext> _) => ActivitySamplingResult.AllData 958Sample = (ref ActivityCreationOptions<ActivityContext> options) => ComputeActivitySamplingResult(ref options), 982static ActivitySamplingResult ComputeActivitySamplingResult(ref ActivityCreationOptions<ActivityContext> options) 1028Sample = (ref ActivityCreationOptions<ActivityContext> _) => ActivitySamplingResult.AllData,
HostingApplicationTests.cs (2)
101Sample = (ref ActivityCreationOptions<ActivityContext> _) => ActivitySamplingResult.AllData 143Sample = (ref ActivityCreationOptions<ActivityContext> _) => ActivitySamplingResult.AllData
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (6)
HubConnectionTests.Tracing.cs (6)
43Sample = (ref ActivityCreationOptions<ActivityContext> _) => ActivitySamplingResult.AllData, 238Sample = (ref ActivityCreationOptions<ActivityContext> _) => ActivitySamplingResult.AllData, 382Sample = (ref ActivityCreationOptions<ActivityContext> _) => ActivitySamplingResult.AllData, 485Sample = (ref ActivityCreationOptions<ActivityContext> _) => ActivitySamplingResult.AllData, 581Sample = (ref ActivityCreationOptions<ActivityContext> _) => ActivitySamplingResult.AllData, 671Sample = (ref ActivityCreationOptions<ActivityContext> _) => ActivitySamplingResult.AllData,
Microsoft.AspNetCore.SignalR.Client.Tests (5)
HubConnectionTests.Tracing.cs (5)
30Sample = (ref ActivityCreationOptions<ActivityContext> _) => ActivitySamplingResult.AllData, 67Sample = (ref ActivityCreationOptions<ActivityContext> _) => ActivitySamplingResult.AllData, 105Sample = (ref ActivityCreationOptions<ActivityContext> _) => ActivitySamplingResult.AllData, 139Sample = (ref ActivityCreationOptions<ActivityContext> _) => ActivitySamplingResult.AllData, 177Sample = (ref ActivityCreationOptions<ActivityContext> _) => ActivitySamplingResult.AllData,
Microsoft.AspNetCore.SignalR.Tests (8)
HubConnectionHandlerTests.Activity.cs (8)
39Sample = (ref ActivityCreationOptions<ActivityContext> _) => ActivitySamplingResult.AllData, 114Sample = (ref ActivityCreationOptions<ActivityContext> _) => ActivitySamplingResult.AllData, 183Sample = (ref ActivityCreationOptions<ActivityContext> _) => ActivitySamplingResult.AllData, 242Sample = (ref ActivityCreationOptions<ActivityContext> _) => ActivitySamplingResult.AllData, 315Sample = (ref ActivityCreationOptions<ActivityContext> _) => ActivitySamplingResult.AllData, 362Sample = (ref ActivityCreationOptions<ActivityContext> _) => ActivitySamplingResult.AllData, 414Sample = (ref ActivityCreationOptions<ActivityContext> _) => ActivitySamplingResult.AllData, 465Sample = (ref ActivityCreationOptions<ActivityContext> _) => ActivitySamplingResult.AllData,
System.Diagnostics.DiagnosticSource (22)
System\Diagnostics\ActivityCreationOptions.cs (1)
19/// Construct a new <see cref="ActivityCreationOptions{T}"/> object.
System\Diagnostics\ActivityListener.cs (1)
11public delegate ActivitySamplingResult SampleActivity<T>(ref ActivityCreationOptions<T> options);
System\Diagnostics\ActivitySource.cs (11)
210ActivityCreationOptions<string> aco = default; 211ActivityCreationOptions<ActivityContext> acoContext = default; 220listeners.EnumWithFunc((ActivityListener listener, ref ActivityCreationOptions<string> data, ref ActivitySamplingResult result, ref ActivityCreationOptions<ActivityContext> dataWithContext) => { 289var aco = new ActivityCreationOptions<ActivityContext>(this, name, useCurrentActivityContext ? Activity.Current!.Context : context, kind, tags, links, idFormat); 290listeners.EnumWithFunc((ActivityListener listener, ref ActivityCreationOptions<ActivityContext> data, ref ActivitySamplingResult result, ref ActivityCreationOptions<ActivityContext> unused) => { 355internal delegate void Function<T, TParent>(T item, ref ActivityCreationOptions<TParent> data, ref ActivitySamplingResult samplingResult, ref ActivityCreationOptions<ActivityContext> dataWithContext); 486public void EnumWithFunc<TParent>(ActivitySource.Function<T, TParent> func, ref ActivityCreationOptions<TParent> data, ref ActivitySamplingResult samplingResult, ref ActivityCreationOptions<ActivityContext> dataWithContext)
System\Diagnostics\DsesActivitySourceListener.cs (4)
192private ActivitySamplingResult OnSampleUsingParentId(ref ActivityCreationOptions<string> options) 194ActivityCreationOptions<ActivityContext> activityContextOptions = default; 199private ActivitySamplingResult OnSample(ref ActivityCreationOptions<ActivityContext> options) 208ref ActivityCreationOptions<ActivityContext> options)
System\Diagnostics\DsesFilterAndTransform.cs (3)
215DsesSampleActivityFunc sampleFunc = static (bool hasActivityContext, ref ActivityCreationOptions<ActivityContext> options) 242sampleFunc = static (bool hasActivityContext, ref ActivityCreationOptions<ActivityContext> options) => ActivitySamplingResult.PropagationData; 246sampleFunc = static (bool hasActivityContext, ref ActivityCreationOptions<ActivityContext> options) => ActivitySamplingResult.AllData;
System\Diagnostics\DsesSamplerBuilder.cs (2)
8ref ActivityCreationOptions<ActivityContext> options); 20return (bool hasActivityContext, ref ActivityCreationOptions<ActivityContext> options) =>