microsoft / ApplicationInsights-ServiceFabric

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

Could you please show project examples? #37

Closed artsai closed 7 years ago

artsai commented 7 years ago

Could you please show examples for Stateless WebApi and Remoting? So with this AI Sdk, I don't have to setup ServiceEventSource anymore, and just create TelemetryClient singleton instead, correct?

nizarq commented 7 years ago

Readme is your friend here. Set the context from your service entry points. For trace correlation using service remoting, make sure you follow this.

Finally, you could play with the OneApp from my colleague @qubitron 's repo. There are enough examples there to see this all in action.

And yes, you can use the TelemetryClient for all your telemetry needs instead of ServiceEventSource, if you want to target an application insights resource as your telemetry store (which is what we recommend).