Replies: 1 comment 3 replies
|
@js10x - passing null is ok (only a small part is annotated nullable, but it is also not something that is explicitly suggested by us), or -better- you pass your own NullTelemetry. But I am curious why you would not want to be able to observe your application or at least have some ability to "file a bug" if something does not work in the stack. Any specific reasons? |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I'd like to opt out of using telemetry, how can I disable it when using the UA stack for .NET? I've noticed that none of the ITelemetryContext objects are nullable or did I miss something, so sending null as the value could cause issues?
I'm assuming the best way to turn off telemetry is to pass a null logger factory like so. Curious if this is not conforming to best practices or proper design of the UA stack?
`
public class NullTelemetry : TelemetryContextBase
{
}
`
All reactions