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