1 | import { Context, Link, Sampler, SamplingResult, SpanAttributes, SpanKind } from '@opentelemetry/api';
|
2 |
|
3 |
|
4 |
|
5 |
|
6 | export declare class ParentBasedSampler implements Sampler {
|
7 | private _root;
|
8 | private _remoteParentSampled;
|
9 | private _remoteParentNotSampled;
|
10 | private _localParentSampled;
|
11 | private _localParentNotSampled;
|
12 | constructor(config: ParentBasedSamplerConfig);
|
13 | shouldSample(context: Context, traceId: string, spanName: string, spanKind: SpanKind, attributes: SpanAttributes, links: Link[]): SamplingResult;
|
14 | toString(): string;
|
15 | }
|
16 | interface ParentBasedSamplerConfig {
|
17 |
|
18 | root: Sampler;
|
19 |
|
20 | remoteParentSampled?: Sampler;
|
21 |
|
22 | remoteParentNotSampled?: Sampler;
|
23 |
|
24 | localParentSampled?: Sampler;
|
25 |
|
26 | localParentNotSampled?: Sampler;
|
27 | }
|
28 | export {};
|
29 |
|
\ | No newline at end of file |