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
What language does your question apply to? (e.g. C#, JavaScript, Java, All)
C#
Question
I need to get access to a TelemetryClient instance in my FunctionsStartup class. How do I do that? I tried serviceProvider.GetService<TelemetryConfiguration>() but I just get null.
Also, I need to get access to an ILogger instance in the same FunctionsStartup class that's configured to log to Application Insights. Help?
Closing as the linked issue in the azure-functions-dotnet-extensions repo is where this needs to be addressed. (If anyone from the Functions team could respond to some of the open issues there it would be appreciated!)
Is your question related to a specific version? If so, please specify:
Microsoft.NET.Sdk.Functions 1.0.29
Microsoft.ApplicationInsights 2.10.0
What language does your question apply to? (e.g. C#, JavaScript, Java, All)
C#
Question
I need to get access to a
TelemetryClient
instance in myFunctionsStartup
class. How do I do that? I triedserviceProvider.GetService<TelemetryConfiguration>()
but I just getnull
.Also, I need to get access to an
ILogger
instance in the sameFunctionsStartup
class that's configured to log to Application Insights. Help?Possibly similar/related question: #2473
The text was updated successfully, but these errors were encountered: