Skip to content
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

Azure AI inference events timestamp in AzMon workaround #38955

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

lmolkova
Copy link
Member

GenAI messages content logs, when exported to Azure Monitor, end up there with the same timestamp (open-telemetry/semantic-conventions#1621 (comment)).

It happens for two reasons:

  1. time.time_ns() precision on windows is low - ~1ms on my machine - this is fixable in OTel - Implement higher precision clock than time_ns open-telemetry/opentelemetry-python#4367
  2. Azure Monitor truncates timestamps to microseconds, making collisions not just possible, but very likely. We'll need to find a solution not specific to Azure Monitor - Timestamp granularity and log ordering open-telemetry/semantic-conventions#1701

This PR adds a workaround by using distinct timestamps for events. It's temporary - we'll find a way to fix it in open-telemetry/semantic-conventions#1701

@lmolkova lmolkova requested a review from dargilco as a code owner December 20, 2024 00:45
@github-actions github-actions bot added the AI Model Inference Issues related to the client library for Azure AI Model Inference (\sdk\ai\azure-ai-inference) label Dec 20, 2024
@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AI Model Inference Issues related to the client library for Azure AI Model Inference (\sdk\ai\azure-ai-inference)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants