0.3.0
This release uses OpenTelemetry JS version 0.18.0. If you want to extend the instrumentation manually, use the OpenTelemetry JS API version 0.18.0. Consult the release notes linked above for upstream changes.
Refer to Getting Started documentation to instrument your application with splunk-otel-js.
Changes
startTracing()
options now accepts atracerConfig
option which is
merged with the default tracer config and passed on to the tracer provider.- Added
spanExporterFactory
option tostartTracing()
options.
spanExporterFactory
receives a processedOptions
instance and
returns a new instance ofExporter
. - Replaced
spanProcessor
option withspanProcessorFactory
.
startTracing()
options now accepts aspanProcessorFactory
function. The function
accept a processedOptions
instance and returns aSpanProcessor
instance or an array ofSpanProcessor
instances. It can be used to configure tracing
with custom Span Processor. If it returns multiple span processors, all of them will
be used.