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

Add support for span links to Jaeger export. #1251

Merged
merged 1 commit into from
Mar 9, 2022

Conversation

deejgregor
Copy link
Contributor

@deejgregor deejgregor commented Mar 8, 2022

Fixes # (issue) (no existing issue found)

Changes

Add support for span links to Jaeger export.

For significant contributions please make sure you have completed the following items:

  • CHANGELOG.md updated for non-trivial changes
  • Unit tests have been added
  • [ ] Changes in public API reviewed (no API changes)

@deejgregor deejgregor requested a review from a team March 8, 2022 21:22
@deejgregor
Copy link
Contributor Author

One important note: I'm not really a C++ developer, so please look over this with a fine-toothed comb.

reference.__set_spanId(*(reinterpret_cast<const int64_t *>(span_context.span_id().Id().data())));
#endif

references_.push_back(reference);
Copy link
Member

Choose a reason for hiding this comment

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

how will this list of links get exported to the backend? Does some code need to be added in ThriftSender::Append() to do that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

exporters/jaeger/src/recordable.cc Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Mar 8, 2022

Codecov Report

Merging #1251 (c4f9021) into main (c96a3e3) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1251   +/-   ##
=======================================
  Coverage   92.31%   92.31%           
=======================================
  Files         198      198           
  Lines        7281     7281           
=======================================
  Hits         6721     6721           
  Misses        560      560           

@@ -58,6 +58,7 @@ class JaegerRecordable final : public sdk::trace::Recordable
std::vector<thrift::Tag> Tags() noexcept { return std::move(tags_); }
std::vector<thrift::Tag> ResourceTags() noexcept { return std::move(resource_tags_); }
std::vector<thrift::Log> Logs() noexcept { return std::move(logs_); }
std::vector<thrift::SpanRef> References() noexcept { return std::move(references_); }
Copy link
Contributor

Choose a reason for hiding this comment

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

Seems SpanRefs are not attached to jaeger_span?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@deejgregor
Copy link
Contributor Author

deejgregor commented Mar 9, 2022

Just force pushed c4f9021 with clang-format fixes for what was identified in https://github.com/open-telemetry/opentelemetry-cpp/runs/5474270958?check_suite_focus=true.

Force pushed a fix earlier for the missing line in #1251 (comment)

@ThomsonTan ThomsonTan merged commit fd5a621 into open-telemetry:main Mar 9, 2022
@deejgregor deejgregor mentioned this pull request Mar 9, 2022
13 tasks
DebajitDas pushed a commit to DebajitDas/opentelemetry-cpp that referenced this pull request Mar 21, 2022
@deejgregor deejgregor deleted the feature-jaeger-links branch July 7, 2022 18:13
marcalff added a commit to marcalff/opentelemetry-cpp that referenced this pull request May 23, 2023
@marcalff marcalff mentioned this pull request May 23, 2023
3 tasks
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.

3 participants