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

GenAI: clarify that GenAI spans capture logical operation duration and outcome #1384

Open
lmolkova opened this issue Sep 3, 2024 · 0 comments

Comments

@lmolkova
Copy link
Contributor

lmolkova commented Sep 3, 2024

In other semantic conventions, we provide some guidance on what span should represent.

E.g. in database we clarify it's the duration as observed by user whenever it's possible to capture it.

Span that describes database call SHOULD cover the duration of the corresponding call as if it was observed by the caller (such as client application).
For example, if a transient issue happened and was retried within this database call, the corresponding span should cover the duration of the logical operation
with all retries.

In practice it means that GenAI instrumentation applies to the public API and protocol level span(s) such as HTTP become children of GenAI spans.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants