You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @chriskuech,
So setAuthenticatedUserContext only exists in IApplicationInsights which is not currently directly accessible from plugin instance. So is it possible that from your telemetry service,
const reactPlugin = new ReactPlugin();
const appInsights = new ApplicationInsights({
config: {
instrumentationKey: "",
extensions: [reactPlugin],
.....
}
});
appInsights.loadAppInsights();
let user = appInsights.context.user;
and then export / create context around user and then setAuthenticatedUserContext can be used?
@Karlie-777 , I ended up doing this but it circumvents the need for applicationinsights-react-js entirely for us, so now we only reference appInsights directly or through our custom context.
Description/Screenshot
App Insights does not expose the full interface--
Steps to Reproduce
2.8.6
Expected behavior
IAppInsights
has parity with the core module's interface, or (preferably) reexports the core type directly.Additional context
I probably wont be able to leverage this library subsequently.
The text was updated successfully, but these errors were encountered: