prepare for 0.11

This commit is contained in:
Simon Cruanes 2026-02-06 13:22:57 -05:00
parent c9cd56d0b5
commit c711a0dc66
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4
6 changed files with 35 additions and 18 deletions

View file

@ -1,3 +1,20 @@
# 0.11
- entire rework of the collector, now lighter, and using an open sum type
for `span`. No global state is required anymore.
- add `enabled` to the collector
- extensible `metric`; pass level around in collector
- remove unused deps on hmap, thread-local-storage
- add `Trace.with_setup_collector`
- add `trace.debug` to find what spans were not closed on exit
- remove dead code and `on_tracing_error`
- remove subscriber entirely
- core: remove `current_span` from collector
- update deps to ppxlib=0.37~
- breaking: use poly variants for `user_data/span_flavor`
- use `at_exit` in `trace_tef` and `tldrs`
- fix fuchsia: bound check
# 0.10
- breaking: manual spans now take a `explicit_span_ctx` as parent, that

View file

@ -4,10 +4,10 @@
(generate_opam_files true)
(version 0.10)
(version 0.11)
(source
(github c-cube/ocaml-trace))
(github ocaml-tracing/ocaml-trace))
(authors "Simon Cruanes")

View file

@ -1,13 +1,13 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
version: "0.10"
version: "0.11"
synopsis: "A ppx-based preprocessor for trace"
maintainer: ["Simon Cruanes"]
authors: ["Simon Cruanes"]
license: "MIT"
tags: ["trace" "ppx"]
homepage: "https://github.com/c-cube/ocaml-trace"
bug-reports: "https://github.com/c-cube/ocaml-trace/issues"
homepage: "https://github.com/ocaml-tracing/ocaml-trace"
bug-reports: "https://github.com/ocaml-tracing/ocaml-trace/issues"
depends: [
"ocaml" {>= "4.12"}
"ppxlib" {>= "0.37" & < "0.38"}
@ -35,4 +35,4 @@ build: [
]
["dune" "install" "-p" name "--create-install-files" name]
]
dev-repo: "git+https://github.com/c-cube/ocaml-trace.git"
dev-repo: "git+https://github.com/ocaml-tracing/ocaml-trace.git"

View file

@ -1,14 +1,14 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
version: "0.10"
version: "0.11"
synopsis:
"A high-performance backend for trace, emitting a Fuchsia trace into a file"
maintainer: ["Simon Cruanes"]
authors: ["Simon Cruanes"]
license: "MIT"
tags: ["trace" "tracing" "fuchsia"]
homepage: "https://github.com/c-cube/ocaml-trace"
bug-reports: "https://github.com/c-cube/ocaml-trace/issues"
homepage: "https://github.com/ocaml-tracing/ocaml-trace"
bug-reports: "https://github.com/ocaml-tracing/ocaml-trace/issues"
depends: [
"ocaml" {>= "4.08"}
"trace" {= version}
@ -34,5 +34,5 @@ build: [
]
["dune" "install" "-p" name "--create-install-files" name]
]
dev-repo: "git+https://github.com/c-cube/ocaml-trace.git"
dev-repo: "git+https://github.com/ocaml-tracing/ocaml-trace.git"
available: arch != "s390x"

View file

@ -1,6 +1,6 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
version: "0.10"
version: "0.11"
synopsis:
"A simple backend for trace, emitting Catapult/TEF JSON into a file"
maintainer: ["Simon Cruanes"]
@ -9,8 +9,8 @@ license: "MIT"
tags: [
"trace" "tracing" "catapult" "TEF" "chrome-format" "chrome-trace" "json"
]
homepage: "https://github.com/c-cube/ocaml-trace"
bug-reports: "https://github.com/c-cube/ocaml-trace/issues"
homepage: "https://github.com/ocaml-tracing/ocaml-trace"
bug-reports: "https://github.com/ocaml-tracing/ocaml-trace/issues"
depends: [
"ocaml" {>= "4.08"}
"trace" {= version}
@ -35,4 +35,4 @@ build: [
]
["dune" "install" "-p" name "--create-install-files" name]
]
dev-repo: "git+https://github.com/c-cube/ocaml-trace.git"
dev-repo: "git+https://github.com/ocaml-tracing/ocaml-trace.git"

View file

@ -1,6 +1,6 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
version: "0.10"
version: "0.11"
synopsis:
"A lightweight stub for tracing/observability, agnostic in how data is collected"
description: """
@ -12,8 +12,8 @@ maintainer: ["Simon Cruanes"]
authors: ["Simon Cruanes"]
license: "MIT"
tags: ["trace" "tracing" "observability" "profiling"]
homepage: "https://github.com/c-cube/ocaml-trace"
bug-reports: "https://github.com/c-cube/ocaml-trace/issues"
homepage: "https://github.com/ocaml-tracing/ocaml-trace"
bug-reports: "https://github.com/ocaml-tracing/ocaml-trace/issues"
depends: [
"ocaml" {>= "4.08"}
"dune" {>= "2.9"}
@ -39,4 +39,4 @@ build: [
]
["dune" "install" "-p" name "--create-install-files" name]
]
dev-repo: "git+https://github.com/c-cube/ocaml-trace.git"
dev-repo: "git+https://github.com/ocaml-tracing/ocaml-trace.git"