0.25.0-8
github-actions
released this
18 Sep 11:57
·
24 commits
to master
since this release
Add new DocumentLoadInstrumentation with new properties recordTransaction and exporterDelay.
Add new function startNewTransaction()
- With recordTransaction enabled, the DocumentLoadInstrumentation will create and hold the DocumentLoad span open until the transaction ends or startNewTransaction() will be called. Additionally, the instrumentation will try to read a trace context in the W3C-format from the Server-Timing-Response-Header. If a trace context was found, it will be used to create the DocumentLoadSpan.
- To guarantee, that the OpenTelemetry-Exporter exports the transaction span, a exporterDelay has to be specified. The delay is specified in milliseconds
- The startNewTransaction(spanName: string)-function ends the current transaction span und starts a new one. It receives a string as parameter, which will be used as the name for the new transaction span.