99 references to ActivitySamplingResult
Aspire.Cli.Tests (18)
Aspire.Dashboard.Components.Tests (2)
Aspire.Dashboard.Tests (6)
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)
158/// but are only copied to the created Activity if the combined sampling result is <see cref="ActivitySamplingResult.AllData"/>
159/// or <see cref="ActivitySamplingResult.AllDataAndRecorded"/>.
163/// but are only copied to the created Activity if the combined sampling result is <see cref="ActivitySamplingResult.AllData"/>
164/// or <see cref="ActivitySamplingResult.AllDataAndRecorded"/>.
182/// but are only copied to the created Activity if the combined sampling result is <see cref="ActivitySamplingResult.AllData"/>
183/// or <see cref="ActivitySamplingResult.AllDataAndRecorded"/>.
187/// but are only copied to the created Activity if the combined sampling result is <see cref="ActivitySamplingResult.AllData"/>
188/// or <see cref="ActivitySamplingResult.AllDataAndRecorded"/>.
215/// but are only copied to the created Activity if the combined sampling result is <see cref="ActivitySamplingResult.AllData"/>
216/// or <see cref="ActivitySamplingResult.AllDataAndRecorded"/>.
220/// but are only copied to the created Activity if the combined sampling result is <see cref="ActivitySamplingResult.AllData"/>
221/// or <see cref="ActivitySamplingResult.AllDataAndRecorded"/>.
236/// but are only copied to the created Activity if the combined sampling result is <see cref="ActivitySamplingResult.AllData"/>
237/// or <see cref="ActivitySamplingResult.AllDataAndRecorded"/>.
241/// but are only copied to the created Activity if the combined sampling result is <see cref="ActivitySamplingResult.AllData"/>
242/// or <see cref="ActivitySamplingResult.AllDataAndRecorded"/>.
256/// but are only copied to the created Activity if the combined sampling result is <see cref="ActivitySamplingResult.AllData"/>
257/// or <see cref="ActivitySamplingResult.AllDataAndRecorded"/>.
261/// but are only copied to the created Activity if the combined sampling result is <see cref="ActivitySamplingResult.AllData"/>
262/// or <see cref="ActivitySamplingResult.AllDataAndRecorded"/>.
286ActivitySamplingResult samplingResult = ActivitySamplingResult.None;
300listeners.EnumWithFunc((ActivityListener listener, ref ActivityCreationOptions<string> data, ref ActivitySamplingResult result, ref ActivityCreationOptions<ActivityContext> dataWithContext) => {
304ActivitySamplingResult sr = sampleUsingParentId(ref data);
321ActivitySamplingResult sr = sample(ref dataWithContext);
370listeners.EnumWithFunc((ActivityListener listener, ref ActivityCreationOptions<ActivityContext> data, ref ActivitySamplingResult result, ref ActivityCreationOptions<ActivityContext> unused) => {
374ActivitySamplingResult dr = sample(ref data);
395if (samplingResult != ActivitySamplingResult.None)
512internal delegate void Function<T, TParent>(T item, ref ActivityCreationOptions<TParent> data, ref ActivitySamplingResult samplingResult, ref ActivityCreationOptions<ActivityContext> dataWithContext);
674public void EnumWithFunc<TParent>(ActivitySource.Function<T, TParent> func, ref ActivityCreationOptions<TParent> data, ref ActivitySamplingResult samplingResult, ref ActivityCreationOptions<ActivityContext> dataWithContext)