Skip to content

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 deejgregor force-pushed the feature-jaeger-links branch from 5237358 to 65c1e7a Compare 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.

@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           

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 deejgregor force-pushed the feature-jaeger-links branch from 65c1e7a to c4cb6e3 Compare March 9, 2022 02:05
@deejgregor deejgregor force-pushed the feature-jaeger-links branch from c4cb6e3 to c4f9021 Compare March 9, 2022 03:28
@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