microsoft / ApplicationInsights-Go

Microsoft Application Insights SDK for Go
MIT License
157 stars 53 forks source link

Don't use time.RFC3339Nano format in envelope #23

Closed jim-minter closed 5 years ago

jim-minter commented 5 years ago

The AppInsights backend fails to parse timestamp microseconds correctly if the Golang time.RFC3339Nano format is used in the envelope. When this happens, the backend truncates to millisecond resolution, meaning that events can appear out of order if not distinguishable by millisecond. Things work correctly if format string "2006-01-02T15:04:05.999999Z" is used.

Also note https://github.com/Microsoft/ApplicationInsights-Home/issues/189.

jjjordanmsft commented 5 years ago

Thanks!