microsoft / ApplicationInsights-node.js

Microsoft Application Insights SDK for Node.js
MIT License
321 stars 138 forks source link

trackTrace no longer working since this week #1317

Closed ypan0 closed 2 months ago

ypan0 commented 2 months ago

we are using the package on azure function, the package version is 2.7.0 it started not logging any trace log this week, we have tried upgrading to v2.9.5 and v3.0.1, none of them worked the way we use it is

const appInsights = require('applicationinsights');

appInsights.setup().start();

client.trackTrace({
        message,
        properties: customProperties,
        severityLevel
    });

any advice? or any thought why it stopped working this week?

JacksonWeber commented 2 months ago

@ypan0 There's no reason that trackTrace shouldn't work specifically. I'd make sure that the Azure Function isn't exiting before telemetry can be exported first.