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

explicit component inheritance #132

Merged
merged 3 commits into from
Jul 20, 2021
Merged

explicit component inheritance #132

merged 3 commits into from
Jul 20, 2021

Conversation

tom-pytel
Copy link
Contributor

@tom-pytel tom-pytel commented Jul 19, 2021

Added explicit component inheritance. This means that plugins must explicitly say they inherit from a specific component in order to be able to inherit and reuse a parent span (like Component.Flask inheriting from an http server Component.General). If there is no match then a new Span is created even if it is the same kind. This is mostly to allow different kinds of exit spans to be created during the processing of some parent exit span which causes certain operations (like db access or message send).

Note: I expect a few errors in the first test runs to show me which components inherit from which others.

@tom-pytel tom-pytel added enhancement New feature or request plugin Plugin labels Jul 19, 2021
@tom-pytel tom-pytel added this to the 0.7.0 milestone Jul 19, 2021
@kezhenxu94 kezhenxu94 merged commit 97e129e into apache:master Jul 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request plugin Plugin
Projects
None yet
2 participants