Skip to content

Commit 91c9da3

Browse files
committed
prepare for 0.3
1 parent 82aa762 commit 91c9da3

File tree

7 files changed

+25
-9
lines changed

7 files changed

+25
-9
lines changed

CHANGES.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11

2+
# 0.3
3+
4+
5+
- add explicit spans, for more precise tracing
6+
- rename repo to ocaml-trace
7+
- trace-tef: add a ticker thread to ensure we flush the file regularly
8+
29
# 0.2
310

411
- trace-tef: additional argument to `with_setup`; env for "stdout"/"stderr"

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,12 @@ watch:
1717
dune build $(DUNE_OPTS) -w $(WATCH)
1818

1919
.PHONY: test clean watch
20+
21+
VERSION=$(shell awk '/^version:/ {print $$2}' trace.opam)
22+
23+
update_next_tag:
24+
@echo "update version to $(VERSION)..."
25+
sed --follow-symlinks -i "s/NEXT_VERSION/$(VERSION)/g" $(wildcard src/**.ml) $(wildcard src/**.mli) \
26+
$(wildcard src/**/*.ml) $(wildcard src/**/*.mli)
27+
sed --follow-symlinks -i "s/NEXT_RELEASE/$(VERSION)/g" $(wildcard src/**.ml) $(wildcard src/**.mli) \
28+
$(wildcard src/**/*.ml) $(wildcard src/**/*.mli)

dune-project

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

33
(name trace)
44
(generate_opam_files true)
5-
(version 0.2)
5+
(version 0.3)
66

77
(source
88
(github c-cube/ocaml-trace))

src/core/collector.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module type S = sig
2929
3030
This replaces the previous [enter_span] and [exit_span] which were too flexible
3131
to be efficient to implement in async contexts.
32-
@since NEXT_RELEASE *)
32+
@since 0.3 *)
3333

3434
val enter_manual_span :
3535
parent:explicit_span option ->
@@ -47,11 +47,11 @@ module type S = sig
4747
This means that the collector doesn't need to implement contextual
4848
storage mapping {!span} to scopes, metadata, etc. on its side;
4949
everything can be transmitted in the {!explicit_span}.
50-
@since NEXT_RELEASE *)
50+
@since 0.3 *)
5151

5252
val exit_manual_span : explicit_span -> unit
5353
(** Exit an explicit span.
54-
@since NEXT_RELEASE *)
54+
@since 0.3 *)
5555

5656
val message : ?span:span -> data:(string * user_data) list -> string -> unit
5757
(** Emit a message with associated metadata. *)

src/core/trace_core.mli

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ val enter_manual_sub_span :
5151
start and stop on one thread, and are nested purely by their timestamp;
5252
and [`Async] spans can overlap, migrate between threads, etc. (as happens in
5353
Lwt, Eio, Async, etc.) which impacts how the collector might represent them.
54-
@since NEXT_RELEASE *)
54+
@since 0.3 *)
5555

5656
val enter_manual_toplevel_span :
5757
?flavor:[ `Sync | `Async ] ->
@@ -65,15 +65,15 @@ val enter_manual_toplevel_span :
6565
[explicit_span] around until it's exited with {!exit_manual_span}.
6666
The span can be used as a parent in {!enter_manual_sub_span}.
6767
@param flavor see {!enter_manual_sub_span} for more details.
68-
@since NEXT_RELEASE *)
68+
@since 0.3 *)
6969

7070
val exit_manual_span : explicit_span -> unit
7171
(** Exit an explicit span. This can be on another thread, in a
7272
fiber or lightweight thread, etc. and will be supported by backends
7373
nonetheless.
7474
The span can be obtained via {!enter_manual_sub_span} or
7575
{!enter_manual_toplevel_span}.
76-
@since NEXT_RELEASE *)
76+
@since 0.3 *)
7777

7878
val message :
7979
?span:span -> ?data:(unit -> (string * user_data) list) -> string -> unit

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.2"
3+
version: "0.3"
44
synopsis: "A simple backend for trace, emitting Catapult JSON into a file"
55
maintainer: ["Simon Cruanes"]
66
authors: ["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.2"
3+
version: "0.3"
44
synopsis:
55
"A stub for tracing/observability, agnostic in how data is collected"
66
maintainer: ["Simon Cruanes"]

0 commit comments

Comments
 (0)