put_attribute/3 |
@@ -85,12 +85,12 @@ annotation(Description, Attributes) -> Annotation
Create an Annotation.
-
+
-### finish_span/1 ###
+### finish_span/2 ###
-finish_span(Span::maybe(opencensus:span())) -> true
+finish_span(Span_ctx::opencensus:span_ctx(), Span::maybe(opencensus:span())) -> true
diff --git a/doc/oc_trace.md b/doc/oc_trace.md
index 681a7e3..3554bc0 100644
--- a/doc/oc_trace.md
+++ b/doc/oc_trace.md
@@ -116,7 +116,7 @@ Return the current span context in a `Ctx` or `undefined`.
### finish_span/1 ###
-finish_span(Span_ctx::maybe(opencensus:span_ctx())) -> boolean()
+finish_span(SpanCtx::maybe(opencensus:span_ctx())) -> boolean()
@@ -220,7 +220,7 @@ Set Status. Returns true if the data was successfully updated.
start_span(Name, SpanCtx) -> SpanCtx
-
+
Create a new span, detached from any context.
@@ -232,7 +232,7 @@ Create a new span, detached from any context.
start_span(Name, SpanCtx, Options) -> SpanCtx
-
+
diff --git a/doc/opencensus.md b/doc/opencensus.md
index cc4f184..d79099c 100644
--- a/doc/opencensus.md
+++ b/doc/opencensus.md
@@ -99,7 +99,7 @@ message_event_type() = TYPE_UNSPECIFIED | SENT | RECEIVED
-span() = #span{name = unicode:unicode_binary(), trace_id = opencensus:trace_id() | undefined, span_id = opencensus:span_id() | undefined, parent_span_id = opencensus:span_id() | undefined, trace_options = integer() | undefined, kind = opencensus:span_kind(), start_time = wts:timestamp(), end_time = wts:timestamp() | undefined, attributes = opencensus:attributes(), stack_trace = opencensus:stack_trace() | undefined, links = opencensus:links(), time_events = opencensus:time_events(), status = opencensus:status() | undefined, same_process_as_parent_span = boolean() | undefined, child_span_count = integer() | undefined}
+span() = #span{name = unicode:unicode_binary(), trace_id = opencensus:trace_id() | undefined, span_id = opencensus:span_id() | undefined, parent_span_id = opencensus:span_id() | undefined, tracestate = opencensus:tracestate() | undefined, trace_options = integer() | undefined, kind = opencensus:span_kind(), start_time = wts:timestamp(), end_time = wts:timestamp() | undefined, attributes = opencensus:attributes(), stack_trace = opencensus:stack_trace() | undefined, links = opencensus:links(), time_events = opencensus:time_events(), status = opencensus:status() | undefined, same_process_as_parent_span = boolean() | undefined, child_span_count = integer() | undefined}
@@ -109,7 +109,7 @@ span() = #span{name = unicode:unicode_b
-span_ctx() = #span_ctx{trace_id = opencensus:trace_id() | undefined, span_id = opencensus:span_id() | undefined, trace_options = integer() | undefined}
+span_ctx() = #span_ctx{trace_id = opencensus:trace_id() | undefined, span_id = opencensus:span_id() | undefined, trace_options = integer() | undefined, tracestate = opencensus:tracestate() | undefined}
@@ -172,6 +172,16 @@ time_events() = [{wts:timestamp(), tracestate() ###
+
+
+
+tracestate() = #tracestate{entries = [{unicode:latin1_chardata(), unicode:latin1_chardata()}]}
+
+
## Function Index ##
diff --git a/rebar.lock b/rebar.lock
index 86787b4..0897ddb 100644
--- a/rebar.lock
+++ b/rebar.lock
@@ -1,4 +1,4 @@
-{"1.1.0",
+{"1.2.0",
[{<<"counters">>,{pkg,<<"counters">>,<<"0.2.1">>},0},
{<<"ctx">>,{pkg,<<"ctx">>,<<"0.5.0">>},0},
{<<"rfc3339">>,{pkg,<<"rfc3339">>,<<"0.9.0">>},1},
@@ -8,5 +8,10 @@
{<<"counters">>, <<"AA3D97E88F92573488987193D0F48EFCE0F3B2CD1443BF4EE760BC7F99322F0C">>},
{<<"ctx">>, <<"78E0F16712E12D707A7F34277381B8E193D7C71EAA24D37330DC02477C09EDA5">>},
{<<"rfc3339">>, <<"2075653DC9407541C84B1E15F8BDA2ABE95FB17C9694025E079583F2D19C1060">>},
- {<<"wts">>, <<"5CDF22C775CB1EBAE24C326A5DB6074D753C42F4BD12A9AA47CC62D3E2C71AD1">>}]}
+ {<<"wts">>, <<"5CDF22C775CB1EBAE24C326A5DB6074D753C42F4BD12A9AA47CC62D3E2C71AD1">>}]},
+{pkg_hash_ext,[
+ {<<"counters">>, <<"A020C714992F7DB89178D27E1F39909E5D77DA3B80DAA4D6015877ED0C94B8AB">>},
+ {<<"ctx">>, <<"52554D80F9D93B3F82DBA8E1776E8EA87B0D6218AE94BA0F73D61AD1579AED08">>},
+ {<<"rfc3339">>, <<"182314DE35C9F4180B22EB5F22916D8D7A799C1109A060C752970273A9332AD6">>},
+ {<<"wts">>, <<"97E2C65F17BCD488FCBE0B7073296FEE7A6AFCFA837C8ED10FB15E65A8713F02">>}]}
].
diff --git a/src/oc_reporter.erl b/src/oc_reporter.erl
index cb49bf8..857d0f3 100644
--- a/src/oc_reporter.erl
+++ b/src/oc_reporter.erl
@@ -63,7 +63,7 @@ start_link() ->
gen_server:start_link({local, ?MODULE}, ?MODULE, [], []).
%% @doc
-%% @equiv register(Reporter, []).
+%% @equiv register(Reporter, [])
%% @end
register(Reporter) -> register(Reporter, []).
|