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