Guide
Migration
Migration
From 1.0.0 to 1.0.1
Following nitro-opentelemetry v0.7.0, event.context.span
has been moved to event.otel.span
From 0.x to 1.x
Moving to Applicationinsights 3 and Opentelemetry
See Microsoft applicationinsights documentation for changes from applicationinsights 2 to 3.
H3Event.$appInsights
has been removed in favor of Opentelemetry Span.applicationinsights:trackError:before
has been removed.applicationinsights:context:tags
has been removed. You can useH3Event.context.span.setAttributes()
instead.applicationinsights:trackRequest:before
has been removed. You can useotel:span:end
nitro-opentelemetry hook instead.applicationinsights:trackError:before
has been removed. You can directly hook into the error hook from nitro instead.- You need to wrap all your event handlers with
defineTracedEventHandler
. See event handlers