mirror of
https://github.com/ocaml-tracing/ocaml-trace.git
synced 2026-03-07 18:37:56 -05:00
prepare for 0.12
This commit is contained in:
parent
fd6eac6ea8
commit
dd30ae0858
10 changed files with 24 additions and 13 deletions
|
|
@ -1,3 +1,12 @@
|
||||||
|
# 0.12
|
||||||
|
|
||||||
|
- use `current_span` when entering spans or sending messages
|
||||||
|
- add `Trace.Ambient_span_provider.t` concept, to track the current span.
|
||||||
|
It is not part of the collector and is optional.
|
||||||
|
- add `trace.thread-local-storage` optional library that implements the `Ambient_span_provider.t`
|
||||||
|
- add a runtime events collector, + test, in `trace-runtime-events`
|
||||||
|
- add `{thread,process}_sort_index` extension + TEF support
|
||||||
|
|
||||||
# 0.11
|
# 0.11
|
||||||
|
|
||||||
- entire rework of the collector, now lighter, and using an open sum type
|
- entire rework of the collector, now lighter, and using an open sum type
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
(generate_opam_files true)
|
(generate_opam_files true)
|
||||||
|
|
||||||
(version 0.11)
|
(version 0.12)
|
||||||
|
|
||||||
(source
|
(source
|
||||||
(github ocaml-tracing/ocaml-trace))
|
(github ocaml-tracing/ocaml-trace))
|
||||||
|
|
@ -98,9 +98,10 @@
|
||||||
"A simple collector relying on runtime-events for OCaml 5. Some assembly required.")
|
"A simple collector relying on runtime-events for OCaml 5. Some assembly required.")
|
||||||
(depends
|
(depends
|
||||||
(ocaml
|
(ocaml
|
||||||
(>= 5.0))
|
(>= 5.1))
|
||||||
(trace
|
(trace
|
||||||
(= :version))
|
(= :version))
|
||||||
|
(ppx_trace (and (= :version) :with-test))
|
||||||
base-bigarray
|
base-bigarray
|
||||||
base-unix
|
base-unix
|
||||||
dune)
|
dune)
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# This file is generated by dune, edit dune-project instead
|
# This file is generated by dune, edit dune-project instead
|
||||||
opam-version: "2.0"
|
opam-version: "2.0"
|
||||||
version: "0.11"
|
version: "0.12"
|
||||||
synopsis: "A ppx-based preprocessor for trace"
|
synopsis: "A ppx-based preprocessor for trace"
|
||||||
maintainer: ["Simon Cruanes"]
|
maintainer: ["Simon Cruanes"]
|
||||||
authors: ["Simon Cruanes"]
|
authors: ["Simon Cruanes"]
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
(** Access/set the current span from some ambient context.
|
(** Access/set the current span from some ambient context.
|
||||||
@since NEXT_RELEASE *)
|
@since 0.12 *)
|
||||||
|
|
||||||
open Types
|
open Types
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -184,7 +184,7 @@ val counter_float :
|
||||||
val current_span : unit -> span option
|
val current_span : unit -> span option
|
||||||
(** Access the current span from some ambient scope, {b if supported}. This is
|
(** Access the current span from some ambient scope, {b if supported}. This is
|
||||||
only supported if a {!Ambient_span_provider} has been set up.
|
only supported if a {!Ambient_span_provider} has been set up.
|
||||||
@since NEXT_RELEASE *)
|
@since 0.12 *)
|
||||||
|
|
||||||
val with_current_span_set_to : span -> (span -> 'a) -> 'a
|
val with_current_span_set_to : span -> (span -> 'a) -> 'a
|
||||||
(** [with_current_span_set_to span f] sets the span as current span, enters
|
(** [with_current_span_set_to span f] sets the span as current span, enters
|
||||||
|
|
@ -195,7 +195,7 @@ val with_current_span_set_to : span -> (span -> 'a) -> 'a
|
||||||
|
|
||||||
Automatically called by {!with_span}.
|
Automatically called by {!with_span}.
|
||||||
|
|
||||||
@since NEXT_RELEASE *)
|
@since 0.12 *)
|
||||||
|
|
||||||
(** {2 Collector} *)
|
(** {2 Collector} *)
|
||||||
|
|
||||||
|
|
@ -230,7 +230,7 @@ val with_setup_collector : Collector.t -> (unit -> 'a) -> 'a
|
||||||
val set_ambient_context_provider : Ambient_span_provider.t -> unit
|
val set_ambient_context_provider : Ambient_span_provider.t -> unit
|
||||||
(** Install a provider for {!current_span} and {!with_current_span_set_to}. The
|
(** Install a provider for {!current_span} and {!with_current_span_set_to}. The
|
||||||
default provider does nothing (ie [current_span ()] is always [None]).
|
default provider does nothing (ie [current_span ()] is always [None]).
|
||||||
@since NEXT_RELEASE *)
|
@since 0.12 *)
|
||||||
|
|
||||||
(** {2 Extensions} *)
|
(** {2 Extensions} *)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
(** Simple collector that emits trace events via Runtime_events.
|
(** Simple collector that emits trace events via Runtime_events.
|
||||||
|
|
||||||
@since NEXT_RELEASE *)
|
@since 0.12 *)
|
||||||
|
|
||||||
(** {2 Event types for decoding} *)
|
(** {2 Event types for decoding} *)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# This file is generated by dune, edit dune-project instead
|
# This file is generated by dune, edit dune-project instead
|
||||||
opam-version: "2.0"
|
opam-version: "2.0"
|
||||||
version: "0.11"
|
version: "0.12"
|
||||||
synopsis:
|
synopsis:
|
||||||
"A high-performance backend for trace, emitting a Fuchsia trace into a file"
|
"A high-performance backend for trace, emitting a Fuchsia trace into a file"
|
||||||
maintainer: ["Simon Cruanes"]
|
maintainer: ["Simon Cruanes"]
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# This file is generated by dune, edit dune-project instead
|
# This file is generated by dune, edit dune-project instead
|
||||||
opam-version: "2.0"
|
opam-version: "2.0"
|
||||||
version: "0.11"
|
version: "0.12"
|
||||||
synopsis:
|
synopsis:
|
||||||
"A simple collector relying on runtime-events for OCaml 5. Some assembly required."
|
"A simple collector relying on runtime-events for OCaml 5. Some assembly required."
|
||||||
maintainer: ["Simon Cruanes"]
|
maintainer: ["Simon Cruanes"]
|
||||||
|
|
@ -10,8 +10,9 @@ tags: ["trace" "tracing" "trace" "runtime-events"]
|
||||||
homepage: "https://github.com/ocaml-tracing/ocaml-trace"
|
homepage: "https://github.com/ocaml-tracing/ocaml-trace"
|
||||||
bug-reports: "https://github.com/ocaml-tracing/ocaml-trace/issues"
|
bug-reports: "https://github.com/ocaml-tracing/ocaml-trace/issues"
|
||||||
depends: [
|
depends: [
|
||||||
"ocaml" {>= "5.0"}
|
"ocaml" {>= "5.1"}
|
||||||
"trace" {= version}
|
"trace" {= version}
|
||||||
|
"ppx_trace" {= version & with-test}
|
||||||
"base-bigarray"
|
"base-bigarray"
|
||||||
"base-unix"
|
"base-unix"
|
||||||
"dune" {>= "2.9"}
|
"dune" {>= "2.9"}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# This file is generated by dune, edit dune-project instead
|
# This file is generated by dune, edit dune-project instead
|
||||||
opam-version: "2.0"
|
opam-version: "2.0"
|
||||||
version: "0.11"
|
version: "0.12"
|
||||||
synopsis:
|
synopsis:
|
||||||
"A simple backend for trace, emitting Catapult/TEF JSON into a file"
|
"A simple backend for trace, emitting Catapult/TEF JSON into a file"
|
||||||
maintainer: ["Simon Cruanes"]
|
maintainer: ["Simon Cruanes"]
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# This file is generated by dune, edit dune-project instead
|
# This file is generated by dune, edit dune-project instead
|
||||||
opam-version: "2.0"
|
opam-version: "2.0"
|
||||||
version: "0.11"
|
version: "0.12"
|
||||||
synopsis:
|
synopsis:
|
||||||
"A lightweight stub for tracing/observability, agnostic in how data is collected"
|
"A lightweight stub for tracing/observability, agnostic in how data is collected"
|
||||||
description: """
|
description: """
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue