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