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

Jaeger exporter: extend supported attributes types #1106

Merged
merged 14 commits into from
Dec 6, 2021

Conversation

esigo
Copy link
Member

@esigo esigo commented Nov 30, 2021

Fixes #1104 (issue)

Changes

Please provide a brief description of the changes here.
adds support for the missing types. if not logs an error.
Also bazel unit test build added.
Fixed compiler warnings in the unit test.
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

@esigo esigo changed the title Jaeger exporter: extend attributes types Jaeger exporter: extend supported attributes types Nov 30, 2021
@codecov
Copy link

codecov bot commented Nov 30, 2021

Codecov Report

Merging #1106 (0470556) into main (2351125) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1106   +/-   ##
=======================================
  Coverage   93.39%   93.39%           
=======================================
  Files         165      165           
  Lines        6229     6229           
=======================================
  Hits         5817     5817           
  Misses        412      412           

@esigo esigo marked this pull request as ready for review November 30, 2021 20:46
@esigo esigo requested a review from a team November 30, 2021 20:46
Copy link
Member

@reyang reyang left a comment

Choose a reason for hiding this comment

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

LGTM once the changelog is updated. It might be nice to have some test cases.

@@ -19,10 +20,26 @@ void JaegerRecordable::PopulateAttribute(nostd::string_view key,
const common::AttributeValue &value,
std::vector<thrift::Tag> &tags)
{
if (nostd::holds_alternative<int64_t>(value))
if (nostd::holds_alternative<int>(value))
Copy link
Member

Choose a reason for hiding this comment

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

shouldn't we be comparing only for the supported types from here:

So, int, uint64_t are not valid attribute types.

Copy link
Member Author

Choose a reason for hiding this comment

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

thanks, removed unsupported types

@esigo
Copy link
Member Author

esigo commented Dec 3, 2021

LGTM once the changelog is updated. It might be nice to have some test cases.

@reyang done

@lalitb
Copy link
Member

lalitb commented Dec 4, 2021

Can be merged once the conflict is resolved.

@lalitb lalitb merged commit c50ed1c into open-telemetry:main Dec 6, 2021
@esigo esigo deleted the Jaeger-exporter--attributes-types branch December 6, 2021 23:51
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.

Jaeger exporter: attributes of unsupported types are silently forgotten
4 participants