TracerConfig provides an interface for configuring a Basic Tracer.

Properties

forceFlushTimeoutMillis?: number

How long the forceFlush can run before it is cancelled. The default value is 30000ms

generalLimits?: node.GeneralLimits

General Limits

idGenerator?: node.IdGenerator

Generator of trace and span IDs The default idGenerator generates random ids

A meter provider to record trace SDK metrics to. This option is experimental and is subject to breaking changes in minor releases.

resource?: resources.Resource

Resource associated with trace telemetry

sampler?: node.Sampler

Sampler determines if a span should be recorded or should be a NoopSpan.

spanLimits?: node.SpanLimits

Span Limits

spanProcessors?: node.SpanProcessor[]

List of SpanProcessor for the tracer