[BUG] Azure.Monitor.OpenTelemetry.Exporter - TelemetryItem.Time format does not include milliseconds #20475
Labels
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Monitor - Exporter
Monitor OpenTelemetry Exporter
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Service Attention
Workflow: This issue is responsible by Azure service team.
Describe the bug
TelemetryItem.Time is set in a format that does not keep the milliseconds. This results in events in ApplicationInsights appear to have happened simultaneously when they happen within the same second.
Expected behavior
The format should be including milliseconds and follow the https://en.wikipedia.org/wiki/ISO_8601#UTC format according the ApplicationInsights API description, ex. 2021-04-16 23:22:25.0660Z.
https://raw.githubusercontent.com/Azure/azure-rest-api-specs/0ae35fd0c27e0f06004d820e75a13c615b9c2e96/specification/applicationinsights/data-plane/Monitor.Exporters/preview/2020-09-15_Preview/swagger.json
This field must be formatted in UTC ISO 8601 format, with a trailing 'Z'
Actual behavior (include Exception or Stack Trace)
Time is set without milliseconds in a format not according to the API description, ex. 04/16/2021 23:22:25
To Reproduce
Steps to reproduce the behavior (include a code snippet, screenshot, or any additional information that might help us reproduce the issue)
Environment:
The text was updated successfully, but these errors were encountered: