-
Notifications
You must be signed in to change notification settings - Fork 774
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
Exporter spec updates. #1609
Exporter spec updates. #1609
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1609 +/- ##
==========================================
+ Coverage 80.59% 80.61% +0.01%
==========================================
Files 242 242
Lines 6567 6578 +11
==========================================
+ Hits 5293 5303 +10
- Misses 1274 1275 +1
|
src/OpenTelemetry.Exporter.Jaeger/Implementation/JaegerActivityExtensions.cs
Show resolved
Hide resolved
@@ -175,9 +175,17 @@ public bool ForEach(KeyValuePair<string, object> activityTag) | |||
{ | |||
PeerServiceResolver.InspectTag(ref this, key, strVal); | |||
|
|||
if (key == SpanAttributeConstants.StatusCodeKey && strVal == "Error") | |||
if (key == SpanAttributeConstants.StatusCodeKey) |
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.
to confirm the full behaviour:
Every status except Unset is send to Zipkin as tags.
Error means, we send additional "error=true" tag. -- (This is not explicitly requested in spec, but is a nice addition)
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.
@cijothomas Correct. I'm going to open a PR into spec for adding the "error" flag on Zipkin & Jaeger when Status=Error
. I don't know if it will get in though because of the freeze?
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!
Can you also add changelog entry for both exporters, before merge.
@cijothomas One other thing I noticed, if you look at Zipkin Status spec it seems to say we should send |
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.
Merging to make part of 1.0.0, as this addresses spec requirement. |
LGTM. Though, one question... I believe it's technically possible for there to be an |
@alanwest As it is now, |
Make sense. Seems most intuitive to me that if |
Changes
I noticed updating the exporter compliance matrix in the spec that Jaeger & Zipkin were missing a couple things that the spec has outlined:
true
/false
notTrue
/False
(spec).Unset
Status should not be sent (spec).event
tag, if it isn't already present (spec).TODOs:
CHANGELOG.md
updated for non-trivial changes