Creates a new instance of the Tracing class.
The options to configure the tracing functionality.
Optional
attributes?: AttributesOptional attributes to be added to the resource.
Optional
autoInstrumentationsConfigMap?: InstrumentationConfigMapOptional map of auto-instrumentation configurations.
Optional
debug?: booleanOptional flag to enable debug mode.
Optional
hostname?: stringThe value of the hostname attribute to use, will override the hostname.
Optional
instrumentations?: InstrumentationOption[]Optional array of instrumentations.
Optional
isEnabled?: booleanSpecifies whether tracing is enabled.
Optional
serviceName?: stringThe name of the service to put as attribute. By default will be read from the package.json file.
Optional
serviceVersion?: stringThe version of the service to put as attribute. By default will be read from the package.json file.
Optional
traceRatio?: numberThe ratio of traces to sample.
Optional
url?: stringThe URL to an HTTP OTLP endpoint to send the traces to.
Represents a Tracing instance that provides telemetry functionality.