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
.Net 6 Isolated Function: Unable to resolve service for type 'Microsoft.ApplicationInsights.Extensibility.TelemetryConfiguration' while attempting to activate function
#8043
Closed
willyt150 opened this issue
Jan 8, 2022
· 3 comments
Is your question related to a specific version? If so, please specify:
V4 .Net 6 Isolated
What language does your question apply to? (e.g. C#, JavaScript, Java, All)
C#
Question
I've created a .Net 6 Isolated HttpTriggered function in Visual Studio 2022
I'm trying to get the TelemetryConfiguration injected, and based on other issues logged and docs this should NOT be null once my local.settings.json has a value for APPINSIGHTS_INSTRUMENTATIONKEY
However, that isn't the case when running locally.
Is there a new way to access it in .Net 6 isolated? Cause this works just fine in my .Net 3.1 functions.
Thanks for your time!
The text was updated successfully, but these errors were encountered:
willyt150
changed the title
Unable to resolve service for type 'Microsoft.ApplicationInsights.Extensibility.TelemetryConfiguration' while attempting to activate function
.Net 6 Isolated Function: Unable to resolve service for type 'Microsoft.ApplicationInsights.Extensibility.TelemetryConfiguration' while attempting to activate function
Jan 8, 2022
your example is missing the actual implementation, but I'm familiar with the IOptions, so you pointed me in the correct direction. Thank you again!
so @v-bbalaiagar my issue has been solved, but the docs just need to be updated calling out how to properly retrieve the injected telemetry configuration.
Is your question related to a specific version? If so, please specify:
V4 .Net 6 Isolated
What language does your question apply to? (e.g. C#, JavaScript, Java, All)
C#
Question
I've created a .Net 6 Isolated HttpTriggered function in Visual Studio 2022
I'm trying to get the TelemetryConfiguration injected, and based on other issues logged and docs this should NOT be null once my local.settings.json has a value for
APPINSIGHTS_INSTRUMENTATIONKEY
However, that isn't the case when running locally.
Is there a new way to access it in .Net 6 isolated? Cause this works just fine in my .Net 3.1 functions.
Thanks for your time!
The text was updated successfully, but these errors were encountered: