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

Make span kind description softer and closer the the spec #1971

Merged
merged 1 commit into from
Nov 4, 2022

Conversation

lmolkova
Copy link
Contributor

@lmolkova lmolkova commented Nov 4, 2022

Spec language is soft in regards to clients/server span relationships:

https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/api.md#spankind

Server span does not need to have a parent, it could also be that multiple server instrumentations that are not aware of each other create server->server spans. While not ideal, this is a reality.

Client spans can be nested under other client spans. E.g. DB ORM creates a client span and the underlying DB driver creates a client span. They are unaware of each other and have no knowledge if they are both enabled in the same application.

Spec language is soft in regards of clients/server span relationships:

https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/api.md#spankind

Server span does not need to have a parent, it could also be that multiple server implementations that are not aware of each other create server->server spans. While not ideal, this is a reality.

Client spans can be nested under other client spans. 
E.g.  DB ORM creates a client span and the underlying DB driver creates a client span. They are unaware of each other and have no knowledge if they are both enabled in the same application.
@lmolkova lmolkova requested a review from a team as a code owner November 4, 2022 17:47
@lmolkova lmolkova changed the title Make span kind description closer the the spec Make span kind description softer and closer the the spec Nov 4, 2022
Copy link
Contributor

@cartermp cartermp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@cartermp cartermp merged commit fa0f3a8 into open-telemetry:main Nov 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants