-
Notifications
You must be signed in to change notification settings - Fork 38
adds set_kind func for oc_trace #167
base: master
Are you sure you want to change the base?
Conversation
test/oc_span_SUITE.erl
Outdated
@@ -53,10 +53,13 @@ modifications(_Config) -> | |||
Span6 = oc_span:add_link(Link, Span5), | |||
?assertEqual(undefined, oc_span:add_link(Link, undefined)), | |||
|
|||
?assertEqual({error, no_report_buffer}, oc_span:finish_span(#span_ctx{}, Span6)), | |||
Span7 = oc_span:set_kind(<<"SERVER">>, Span6), |
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.
span_kind()
is an atom not a binary.
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.
🤦🏼♀️
My first thought was that maybe the spec said kind could only be set when a span is started. I can't find that in the spec so I guess this is fine, only issue is the test using a binary instead of an atom. |
yeah we are starting the trace I'll change that to an atom, thanks for reviewing! |
4639e04
to
b522ef0
Compare
%%-------------------------------------------------------------------- | ||
-spec span_kind_server() -> span_kind(). | ||
span_kind_server() -> ?SPAN_KIND_SERVER. | ||
|
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.
need this for elixir lib
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.
Cool, can you add it for all the kinds and then i'll merge.
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.
👍
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.
updated!
No description provided.