-
Notifications
You must be signed in to change notification settings - Fork 145
Open
Description
Hi,
We're looking into upgrading node applicationinsights package from v3.4.0 from v2.9.5.
I've spent some time today experimenting with v3 and I can not get auto dependency tracking to work. The initial request itself is tracked and showing in AI, but none of the following dependencies are. The dependencies were logged fine in v2.
I've followed the upgrade migration guide.
The exact same code that works when using v2.9.5 is not working when using v3.4.0 :
// telemetry.ts
import * as appInsights from 'applicationinsights';
export { appInsights };
export const startTelemetry = () =>
appInsights.setup().setAutoCollectPerformance(false, false).start();
// functions/index.ts
import { startTelemetry } from 'telemetry.ts';
import { app } from '@azure/functions';
app.hook.appStart(async () => {
startTelemetry();
...
});
app.http('some-handler', {
methods: ['GET'],
...
It might be relevant that we're using the node-fetch package for our fetch requests (not native fetch as this was not supported in v2). We are using node version 18.20.
Any help would be appreciated, cheers!