104 references to ActivitySamplingResult
Aspire.Cli.Tests (18)
Aspire.Dashboard.Components.Tests (2)
Aspire.Dashboard.Tests (7)
Aspire.Hosting.Native.Core.AotSmoke (2)
Aspire.Hosting.Native.Core.Tests (2)
Aspire.Hosting.RemoteHost.Tests (1)
Aspire.Hosting.Tests (2)
Aspire.TestUtilities (1)
Microsoft.DotNet.Cli.Utils (2)
Microsoft.Extensions.AI.OpenAI.Tests (2)
Microsoft.Extensions.AI.Tests (1)
Microsoft.Extensions.Diagnostics (4)
Stress.ApiService (1)
System.Diagnostics.DiagnosticSource (59)
System\Diagnostics\ActivitySource.cs (30)
159/// but are only copied to the created Activity if the combined sampling result is <see cref="ActivitySamplingResult.AllData"/>
160/// or <see cref="ActivitySamplingResult.AllDataAndRecorded"/>.
164/// but are only copied to the created Activity if the combined sampling result is <see cref="ActivitySamplingResult.AllData"/>
165/// or <see cref="ActivitySamplingResult.AllDataAndRecorded"/>.
183/// but are only copied to the created Activity if the combined sampling result is <see cref="ActivitySamplingResult.AllData"/>
184/// or <see cref="ActivitySamplingResult.AllDataAndRecorded"/>.
188/// but are only copied to the created Activity if the combined sampling result is <see cref="ActivitySamplingResult.AllData"/>
189/// or <see cref="ActivitySamplingResult.AllDataAndRecorded"/>.
216/// but are only copied to the created Activity if the combined sampling result is <see cref="ActivitySamplingResult.AllData"/>
217/// or <see cref="ActivitySamplingResult.AllDataAndRecorded"/>.
221/// but are only copied to the created Activity if the combined sampling result is <see cref="ActivitySamplingResult.AllData"/>
222/// or <see cref="ActivitySamplingResult.AllDataAndRecorded"/>.
237/// but are only copied to the created Activity if the combined sampling result is <see cref="ActivitySamplingResult.AllData"/>
238/// or <see cref="ActivitySamplingResult.AllDataAndRecorded"/>.
242/// but are only copied to the created Activity if the combined sampling result is <see cref="ActivitySamplingResult.AllData"/>
243/// or <see cref="ActivitySamplingResult.AllDataAndRecorded"/>.
257/// but are only copied to the created Activity if the combined sampling result is <see cref="ActivitySamplingResult.AllData"/>
258/// or <see cref="ActivitySamplingResult.AllDataAndRecorded"/>.
262/// but are only copied to the created Activity if the combined sampling result is <see cref="ActivitySamplingResult.AllData"/>
263/// or <see cref="ActivitySamplingResult.AllDataAndRecorded"/>.
287ActivitySamplingResult samplingResult = ActivitySamplingResult.None;
301listeners.EnumWithFunc((ActivityListener listener, ref ActivityCreationOptions<string> data, ref ActivitySamplingResult result, ref ActivityCreationOptions<ActivityContext> dataWithContext) => {
305ActivitySamplingResult sr = sampleUsingParentId(ref data);
322ActivitySamplingResult sr = sample(ref dataWithContext);
371listeners.EnumWithFunc((ActivityListener listener, ref ActivityCreationOptions<ActivityContext> data, ref ActivitySamplingResult result, ref ActivityCreationOptions<ActivityContext> unused) => {
375ActivitySamplingResult dr = sample(ref data);
396if (samplingResult != ActivitySamplingResult.None)
513internal delegate void Function<T, TParent>(T item, ref ActivityCreationOptions<TParent> data, ref ActivitySamplingResult samplingResult, ref ActivityCreationOptions<ActivityContext> dataWithContext);
675public void EnumWithFunc<TParent>(ActivitySource.Function<T, TParent> func, ref ActivityCreationOptions<TParent> data, ref ActivitySamplingResult samplingResult, ref ActivityCreationOptions<ActivityContext> dataWithContext)