Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

Add language prefix to Jaeger client version tag #35

Merged
merged 1 commit into from
Dec 17, 2017

Conversation

isaachier
Copy link
Contributor

Fixes #34.

@isaachier isaachier force-pushed the add-lang-to-version-tag branch from ae189ac to b8c769a Compare December 17, 2017 13:51
@codecov
Copy link

codecov bot commented Dec 17, 2017

Codecov Report

Merging #35 into master will decrease coverage by 0.26%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #35      +/-   ##
==========================================
- Coverage   85.49%   85.22%   -0.27%     
==========================================
  Files          93       93              
  Lines        2240     2240              
  Branches      206      206              
==========================================
- Hits         1915     1909       -6     
  Misses        253      253              
- Partials       72       78       +6
Impacted Files Coverage Δ
src/jaegertracing/baggage/BaggageSetter.h 79.41% <0%> (-20.59%) ⬇️
src/jaegertracing/samplers/RemoteSamplingJSON.h 54.54% <0%> (+1.81%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bd39a6a...b8c769a. Read the comment docs.

@isaachier
Copy link
Contributor Author

The coverage seems to have a mistake. IDK why it thinks the coverage went down on BaggageSetter.

ASSERT_NE(std::end(tracer->tags()), tagItr);
ASSERT_TRUE(tagItr->value().is<const char*>());
ASSERT_EQ("C++-",
static_cast<std::string>(tagItr->value().get<const char*>()).substr(0, 4));
Copy link
Member

Choose a reason for hiding this comment

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

omg... this would've been one line in scala. Let me try:

assert(span.tags.find(_.key == 'jaeger.version').map(_.value) == Some('c++-..'))

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Lol ya C++ has borrowed a lot of ideas from more functional languages but nowhere near Scala and others yet.

@isaachier isaachier merged commit 99d5602 into jaegertracing:master Dec 17, 2017
@isaachier isaachier deleted the add-lang-to-version-tag branch December 17, 2017 18:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants