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.$appInsightshas been removed in favor of Opentelemetry Span.applicationinsights:trackError:beforehas been removed.applicationinsights:context:tagshas been removed. You can useH3Event.context.span.setAttributes()instead.applicationinsights:trackRequest:beforehas been removed. You can useotel:span:endnitro-opentelemetry hook instead.applicationinsights:trackError:beforehas 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