diff --git a/CHANGES.md b/CHANGES.md index e136710..89274fb 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -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 diff --git a/dune-project b/dune-project index e777375..0696421 100644 --- a/dune-project +++ b/dune-project @@ -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") diff --git a/ppx_trace.opam b/ppx_trace.opam index 51fa2d1..10b4574 100644 --- a/ppx_trace.opam +++ b/ppx_trace.opam @@ -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" diff --git a/trace-fuchsia.opam b/trace-fuchsia.opam index 4dcac5b..0dc6639 100644 --- a/trace-fuchsia.opam +++ b/trace-fuchsia.opam @@ -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" diff --git a/trace-tef.opam b/trace-tef.opam index 10dbd4d..2f50695 100644 --- a/trace-tef.opam +++ b/trace-tef.opam @@ -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" diff --git a/trace.opam b/trace.opam index 6faf56b..81473ad 100644 --- a/trace.opam +++ b/trace.opam @@ -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"