Open mharj opened 11 months ago
Hi there @mharj, I don't have time to maintain this repo at the moment, would you mind PRing in?
@mharj I've merged PR and done a slight test update, but still getting issues due to conn string settings not getting picked up out of the environment. Does your PR #13 resolve the above issue, though?
@willmorgan I don't think this PR changes any functionality, just helps on typescript types (and bit on dependenices). We just manually add connection string directly to appInsights as all our setup are very async by nature. Also it's always better to use long format of connection string as some rare cases we can't get short one connecting propely.
bit like this (simplified) ..
export function setupAppInsights() {
appInsights.setup(process.env.APPLICATIONINSIGHTS_CONNECTION_STRING).setAutoCollectConsole(false, false).start();
logger.add(
new AzureApplicationInsightsLogger({
insights: appInsights,
level: 'debug',
}),
);
}
Hi, just built types for this module but having bit issue on actual winston transport types as version is quite old. (4.6.0 out) Just wondering that maybe this could be as peerDepencendy instead? (i.e. "4.x")
winston-azure-application-insights.d.ts