UNPKG

901 BTypeScriptView Raw
1import { Sampler } from '@opentelemetry/api';
2import { ENVIRONMENT } from '@opentelemetry/core';
3/**
4 * Default configuration. For fields with primitive values, any user-provided
5 * value will override the corresponding default value. For fields with
6 * non-primitive values (like `spanLimits`), the user-provided value will be
7 * used to extend the default value.
8 */
9export declare const DEFAULT_CONFIG: {
10 sampler: Sampler;
11 forceFlushTimeoutMillis: number;
12 spanLimits: {
13 attributeCountLimit: number;
14 linkCountLimit: number;
15 eventCountLimit: number;
16 };
17};
18/**
19 * Based on environment, builds a sampler, complies with specification.
20 * @param env optional, by default uses getEnv(), but allows passing a value to reuse parsed environment
21 */
22export declare function buildSamplerFromEnv(env?: Required<ENVIRONMENT>): Sampler;
23//# sourceMappingURL=config.d.ts.map
\No newline at end of file