Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
/** Indicates the type of the recorded value. */
valueType: ValueType;
}
/** MeterConfig provides an interface for configuring a Meter. */
export interface MeterConfig {
/** User provided logger. */
logger?: Logger;
/** level of logger. */
logLevel?: LogLevel;
}
/** Default Meter configuration. */
export const DEFAULT_CONFIG = {
logLevel: LogLevel.DEBUG,
};
/** The default metric creation options value. */
export const DEFAULT_METRIC_OPTIONS = {
disabled: false,
description: '',
unit: '1',
labelKeys: [],
valueType: ValueType.DOUBLE,
};
/** Default limit for Attributes per span */
export const DEFAULT_MAX_ATTRIBUTES_PER_SPAN = 32;
/** Default limit for Links per span */
export const DEFAULT_MAX_LINKS_PER_SPAN = 32;
/**
* Default configuration. For fields with primitive values, any user-provided
* value will override the corresponding default value. For fields with
* non-primitive values (like `traceParams`), the user-provided value will be
* used to extend the default value.
*/
export const DEFAULT_CONFIG = {
defaultAttributes: {},
binaryFormat: new BinaryTraceContext(),
httpTextFormat: new HttpTraceContext(),
logLevel: LogLevel.DEBUG,
sampler: ALWAYS_SAMPLER,
scopeManager: new NoopScopeManager(),
traceParams: {
numberOfAttributesPerSpan: DEFAULT_MAX_ATTRIBUTES_PER_SPAN,
numberOfLinksPerSpan: DEFAULT_MAX_LINKS_PER_SPAN,
numberOfEventsPerSpan: DEFAULT_MAX_EVENTS_PER_SPAN,
},
};