-
Notifications
You must be signed in to change notification settings - Fork 10
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
Expand interface to support trace links #523
Conversation
virtual std::unique_ptr<IAlicaTrace> create(const std::string& opName, std::optional<const std::string> parent = std::nullopt) const = 0; | ||
// Two argument version of create. Deprecated. | ||
virtual std::unique_ptr<IAlicaTrace> create(const std::string& opName, std::optional<const std::string> parent = std::nullopt) const { return nullptr; } | ||
virtual std::unique_ptr<IAlicaTrace> create(const std::string& opName, std::optional<const std::string> parent_context, const std::vector<SpanLink>&) const |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My idea is that if we make a breaking changes release, we can remove the two arg version and add default args to the three arg version.
I realized this doesn't really work. Since alica generates the traces for you, and the only interaction the user has is to create the context, to support links we must also support returning context with links included |
d4f749f
to
f11f5a2
Compare
f11f5a2
to
21295fa
Compare
Opentelemetry supports indirect links to other spans. Expand the interface to support this, with backwards compatibility.