Skip to content

Commit 659ce2e

Browse files
committed
prepare for 0.6
1 parent e708791 commit 659ce2e

File tree

7 files changed

+24
-12
lines changed

7 files changed

+24
-12
lines changed

CHANGES.md

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

2+
# 0.6
3+
4+
- add `ppx_trace` for easier instrumentation.
5+
* `let%trace span = "foo" in …` will enter a scope `span` named "foo"
6+
* `let%trace () = "foo" in …` will enter a scope named "foo" with a hidden name
7+
- add `trace-fuchsia` backend, which produces traces in the binary format
8+
of [fuchsia](https://fuchsia.dev/fuchsia-src/reference/tracing/trace-format).
9+
These traces are reasonably efficient to produce (~60ns per span on my machines)
10+
and reasonably compact on disk, at least compared to the TEF backend.
11+
212
# 0.5
313

414
- perf: reduce overhead in trace-tef

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
This small library provides basic types that can be used to instrument
77
a library or application, either by hand or via a ppx.
88

9-
### Features
9+
## Features
1010

1111
- [x] spans
1212
- [x] messages
1313
- [x] counters
1414
- [ ] other metrics?
1515
- [x] ppx to help instrumentation
1616

17-
### Usage
17+
## Usage
1818

1919
To instrument your code, you can simply add `trace` to your dune/opam files, and then
2020
write code like such:
@@ -138,13 +138,15 @@ In your `library` or `executable` stanza, add: `(preprocess (pps ppx_trace))`.
138138
The dependency on `trace.core` is automatically added. You still need to
139139
configure a backend to actually do collection.
140140

141-
### Backends
141+
## Backends
142142

143143
Concrete tracing or observability formats such as:
144144

145-
- [ ] Fuchsia (see [tracing](https://github.com/janestreet/tracing))
145+
- [x] Fuchsia (see [the spec](https://fuchsia.dev/fuchsia-src/reference/tracing/trace-format) and [tracing](https://github.com/janestreet/tracing).
146+
Can be opened in https://ui.perfetto.dev)
146147
- Catapult
147-
* [x] light bindings here with `trace-tef`
148+
* [x] light bindings here with `trace-tef`.
149+
(Can be opened in https://ui.perfetto.dev)
148150
* [ ] richer bindings with [ocaml-catapult](https://github.com/imandra-ai/catapult),
149151
with multi-process backends, etc.
150152
- [x] Tracy (see [ocaml-tracy](https://github.com/imandra-ai/ocaml-tracy), more specifically `tracy-client.trace`)

dune-project

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
(name trace)
44
(generate_opam_files true)
5-
(version 0.5)
5+
(version 0.6)
66

77
(source
88
(github c-cube/ocaml-trace))
@@ -25,7 +25,7 @@
2525

2626
(package
2727
(name ppx_trace)
28-
(synopsis "ppx-based instrumentation for trace")
28+
(synopsis "A ppx-based preprocessor for trace")
2929
(depends
3030
(ocaml (>= 4.12)) ; we use __FUNCTION__
3131
(ppxlib (>= 0.28))

ppx_trace.opam

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This file is generated by dune, edit dune-project instead
22
opam-version: "2.0"
3-
version: "0.5"
4-
synopsis: "ppx-based instrumentation for trace"
3+
version: "0.6"
4+
synopsis: "A ppx-based preprocessor for trace"
55
maintainer: ["Simon Cruanes"]
66
authors: ["Simon Cruanes"]
77
license: "MIT"

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.5"
3+
version: "0.6"
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.5"
3+
version: "0.6"
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.5"
3+
version: "0.6"
44
synopsis:
55
"A stub for tracing/observability, agnostic in how data is collected"
66
maintainer: ["Simon Cruanes"]

0 commit comments

Comments
 (0)