microsoft / ApplicationInsights-ServiceFabric

ApplicationInsights SDK for ServiceFabric projects
MIT License
63 stars 26 forks source link

Can't use application insights #68

Closed vitorrossetto2 closed 6 years ago

vitorrossetto2 commented 6 years ago

Hi,

I am trying to use integration between application insights and an API project (ASP.NET Core) inside service fabric (as a stateless reliable service). I followed the instructions at this link https://github.com/Microsoft/ApplicationInsights-ServiceFabric and made changes to my config file but the telemetry still not working!

Here is what I configured:

https://ibb.co/hOB15o

Can you help me to figure out what is going on?

Thank you!

yantang-msft commented 6 years ago

@vitorrossetto2 You want to follow this doc to enable AI first for the Asp.Net Core project. https://github.com/Microsoft/ApplicationInsights-aspnetcore/wiki/Getting-Started

From what I see, the UseApplicationInsights() is missing in the WebHostBuilder.

vitorrossetto2 commented 6 years ago

It worked!, Thank you so much!