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