14 lines
379 B
C#
14 lines
379 B
C#
// Copyright The OpenTelemetry Authors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
using OpenTelemetry.Trace;
|
|
|
|
internal sealed class MySampler : Sampler
|
|
{
|
|
public override SamplingResult ShouldSample(in SamplingParameters param)
|
|
{
|
|
Console.WriteLine($"MySampler.ShouldSample({param.Name})");
|
|
return new SamplingResult(SamplingDecision.RecordAndSample);
|
|
}
|
|
}
|