-
Notifications
You must be signed in to change notification settings - Fork 295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make Initializing TelemetryClient more intuitive #826
Comments
Thanks for the context discussions! If the |
Cool, thanks. Hope we only need to set instrumentationkey one time in future. Mine is SDK 2.4 and ASP.NET 4.6.1 Web application. |
Sigh.... Just wasted a couple of hours due to this issue (in combination with the telemetry stream not automatically flushing on disposal). The "obvious" route for anyone trying to trouble-shoot AppInsights issues is just to try to write...
It would be nice if this "just worked".... |
@NeilMacMullen , the example with |
Another way not mentioned in the original post can be found here:
which is the same as
but more confusing! |
This is a really, really time wasting issue, IMO. I have also spent several hours on this issue only resolving it after stumbling on this issue on Stack: https://stackoverflow.com/a/52717627/116051 Very confusing. |
I don't understand why someone just hasn't add an |
@sonic1981 "Grass is always greener on the other side". I've recently been working with AWS Amplify, AppSync, and CloudFormation. The gaps in the documentation are just as bad once you get beyond basics. That said, CloudWatch and X-Ray are leaps and bounds better than AppInsights from an ease of use perspective. |
This issue is stale because it has been open 300 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
Not that I'm expecting a change of course, but just encountered this issue. |
A customer found a combination of initializing the
TelemetryConfiguration
andTelemetryClient
that results in no telemetry being sent to the Portal (see code sample 1 below).It's not intuitive why this doesn't work. Telemetry is visible in the Debug window and the Visual Studio Search window.
This is not blocking because there are several other ways to successfully initialize the
TelemetryClient
.In my opinion, It's confusing to have the InstrumentationKey in both places.
For 3.0, I propose that we make the
TelemetryClient.InstrumentationKey
readonly or remove it all together.There may be a historical reason this exists, but I think we can make it better! :)
Version Info
Console App
SDK Version : 2.6.4
.NET Version : 4.7.1
How Application was onboarded with SDK: VisualStudio
OS : Windows 10
The text was updated successfully, but these errors were encountered: