ApplicationInsights-Go icon indicating copy to clipboard operation
ApplicationInsights-Go copied to clipboard

NewExceptionTelemetry generates Problem Id: string

Open saraseward opened this issue 7 months ago • 0 comments

client := appinsights.NewTelemetryClient(instrumentationKey)
trace3 := appinsights.NewExceptionTelemetry("esempiooooo")
w.client.Track(trace3)

This generates an error on Azure: Screenshot 2024-07-25 at 12 33 16

I also tried with:

	trace3 := appinsights.NewExceptionTelemetry("esempio1")
	w.client.Track(trace3)
	w.client.TrackException(trace3)
	trace6 := appinsights.NewExceptionTelemetry(errors.New("esempio2"))
	w.client.Track(trace6)
	w.client.TrackException(trace6)
	w.client.TrackException("esempio3")
Screenshot 2024-07-25 at 12 36 33 What am I doing wrong?

saraseward avatar Jul 25 '24 10:07 saraseward