-
Notifications
You must be signed in to change notification settings - Fork 448
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
Jaeger exporter: extend supported attributes types #1106
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1106 +/- ##
=======================================
Coverage 93.39% 93.39%
=======================================
Files 165 165
Lines 6229 6229
=======================================
Hits 5817 5817
Misses 412 412 |
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.
LGTM once the changelog is updated. It might be nice to have some test cases.
exporters/jaeger/src/recordable.cc
Outdated
@@ -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)) |
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.
shouldn't we be comparing only for the supported types from here:
using AttributeValue = |
So, int, uint64_t are not valid attribute types.
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.
thanks, removed unsupported types
unit test bazel
…m/esigo/opentelemetry-cpp into Jaeger-exporter--attributes-types
…m/esigo/opentelemetry-cpp into Jaeger-exporter--attributes-types
@reyang done |
Can be merged once the conflict is resolved. |
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