Skip to content

Commit d9cd762

Browse files
committed
prepare for 0.10
1 parent cd5785d commit d9cd762

File tree

9 files changed

+26
-14
lines changed

9 files changed

+26
-14
lines changed

CHANGES.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,21 @@
1-
# 0.10 (wip)
1+
# 0.10
22

33
- breaking: manual spans now take a `explicit_span_ctx` as parent, that
44
can potentially be transmitted across processes/machines. It also
55
is intended to be more compatible with OTEL.
6-
- depopt on unix for TEF timestamps
6+
- breaking `trace.subscriber`: timestamps are `int64`ns now, not floats
7+
- breaking `trace`: pass a `string` trace_id in manual spans, which helps
8+
for backends such as opentelemetry. It's also useful for extensions.
9+
10+
- refactor `trace-fuchsia`: full revamp of the library, modularized, using subscriber API
11+
- refactor `trace-tef`: split into exporter,writer,subscriber, using subscriber API
12+
- feat: add `trace.event`, useful for background threads
13+
- feat `trace.subscriber`: add `Span_tbl`, and a depopt on picos_aux
14+
- feat `trace.subscriber`: tee a whole array at once
15+
- feat tef-tldrs: use EMIT_TEF_AT_EXIT
16+
- feat `trace.subscriber`: depopt on unix for timestamps
17+
- refactor `trace-tef`: depopt on unix for TEF timestamps
18+
719

820
# 0.9.1
921

dune-project

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
(generate_opam_files true)
66

7-
(version 0.9.1)
7+
(version 0.10)
88

99
(source
1010
(github c-cube/ocaml-trace))

ppx_trace.opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This file is generated by dune, edit dune-project instead
22
opam-version: "2.0"
3-
version: "0.9.1"
3+
version: "0.10"
44
synopsis: "A ppx-based preprocessor for trace"
55
maintainer: ["Simon Cruanes"]
66
authors: ["Simon Cruanes"]

src/core/collector.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ module type S = sig
6262
hmap in the {!explicit_span}'s [meta] field.
6363
6464
{b NOTE} the [parent] argument is now an {!explicit_span_ctx} and not an
65-
{!explicit_span} since NEXT_RELEASE.
65+
{!explicit_span} since 0.10.
6666
6767
This means that the collector doesn't need to implement contextual storage
6868
mapping {!span} to scopes, metadata, etc. on its side; everything can be

src/core/trace_core.mli

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ val set_default_level : Level.t -> unit
3333

3434
val ctx_of_span : explicit_span -> explicit_span_ctx
3535
(** Turn a span into a span context.
36-
@since NEXT_RELEASE *)
36+
@since 0.10 *)
3737

3838
val with_span :
3939
?level:Level.t ->
@@ -111,7 +111,7 @@ val enter_manual_span :
111111
@param level
112112
optional level for this span. since 0.7. Default is set via
113113
{!set_default_level}.
114-
@since NEXT_RELEASE *)
114+
@since 0.10 *)
115115

116116
val enter_manual_sub_span :
117117
parent:explicit_span ->
@@ -124,7 +124,7 @@ val enter_manual_sub_span :
124124
string ->
125125
explicit_span
126126
[@@deprecated "use enter_manual_span"]
127-
(** @deprecated since NEXT_RELEASE, use {!enter_manual_span} *)
127+
(** @deprecated since 0.10, use {!enter_manual_span} *)
128128

129129
val enter_manual_toplevel_span :
130130
?flavor:[ `Sync | `Async ] ->
@@ -136,7 +136,7 @@ val enter_manual_toplevel_span :
136136
string ->
137137
explicit_span
138138
[@@deprecated "use enter_manual_span"]
139-
(** @deprecated since NEXT_RELEASE, use {!enter_manual_span} *)
139+
(** @deprecated since 0.10, use {!enter_manual_span} *)
140140

141141
val exit_manual_span : explicit_span -> unit
142142
(** Exit an explicit span. This can be on another thread, in a fiber or

src/core/types.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ type span = int64
66
type trace_id = string
77
(** A bytestring representing a (possibly distributed) trace made of async
88
spans. With opentelemetry this is 16 bytes.
9-
@since NEXT_RELEASE *)
9+
@since 0.10 *)
1010

1111
type user_data =
1212
[ `Int of int
@@ -23,7 +23,7 @@ type explicit_span_ctx = {
2323
trace_id: trace_id; (** The trace this belongs to *)
2424
}
2525
(** A context, passed around for async traces.
26-
@since NEXT_RELEASE *)
26+
@since 0.10 *)
2727

2828
type explicit_span = {
2929
span: span;

trace-fuchsia.opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This file is generated by dune, edit dune-project instead
22
opam-version: "2.0"
3-
version: "0.9.1"
3+
version: "0.10"
44
synopsis:
55
"A high-performance backend for trace, emitting a Fuchsia trace into a file"
66
maintainer: ["Simon Cruanes"]

trace-tef.opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This file is generated by dune, edit dune-project instead
22
opam-version: "2.0"
3-
version: "0.9.1"
3+
version: "0.10"
44
synopsis:
55
"A simple backend for trace, emitting Catapult/TEF JSON into a file"
66
maintainer: ["Simon Cruanes"]

trace.opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This file is generated by dune, edit dune-project instead
22
opam-version: "2.0"
3-
version: "0.9.1"
3+
version: "0.10"
44
synopsis:
55
"A stub for tracing/observability, agnostic in how data is collected"
66
maintainer: ["Simon Cruanes"]

0 commit comments

Comments
 (0)