Skip to content

Commit ca82381

Browse files
authored
[new release] trace (4 packages) (0.10) (#27934)
* [new release] trace (4 packages) (0.10) CHANGES: - breaking: manual spans now take a `explicit_span_ctx` as parent, that can potentially be transmitted across processes/machines. It also is intended to be more compatible with OTEL. - breaking `trace.subscriber`: timestamps are `int64`ns now, not floats - breaking `trace`: pass a `string` trace_id in manual spans, which helps for backends such as opentelemetry. It's also useful for extensions. - refactor `trace-fuchsia`: full revamp of the library, modularized, using subscriber API - refactor `trace-tef`: split into exporter,writer,subscriber, using subscriber API - feat: add `trace.event`, useful for background threads - feat `trace.subscriber`: add `Span_tbl`, and a depopt on picos_aux - feat `trace.subscriber`: tee a whole array at once - feat tef-tldrs: use EMIT_TEF_AT_EXIT - feat `trace.subscriber`: depopt on unix for timestamps - refactor `trace-tef`: depopt on unix for TEF timestamps * add upper bounds on trace for other packages * fix * more
1 parent 5f00597 commit ca82381

File tree

9 files changed

+188
-6
lines changed
  • packages
    • moonpool-io/moonpool-io.0.7
    • moonpool/moonpool.0.7
    • opentelemetry
      • opentelemetry.0.11.1
      • opentelemetry.0.11.2
      • opentelemetry.0.11
    • ppx_trace/ppx_trace.0.10
    • trace-fuchsia/trace-fuchsia.0.10
    • trace-tef/trace-tef.0.10
    • trace/trace.0.10

9 files changed

+188
-6
lines changed

packages/moonpool-io/moonpool-io.0.7/opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ depends: [
1010
"moonpool" {= version}
1111
"picos_io" {>= "0.5" & < "0.6"}
1212
"ocaml" {>= "5.0"}
13-
"trace" {with-test}
13+
"trace" {with-test & < "0.10"}
1414
"trace-tef" {with-test}
1515
"odoc" {with-doc}
1616
]

packages/moonpool/moonpool.0.7/opam

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ depends: [
1010
"ocaml" {>= "4.14"}
1111
"dune" {>= "3.0"}
1212
"either" {>= "1.0"}
13-
"trace" {with-test}
13+
"trace" {with-test & >= "0.6" & < "0.10"}
1414
"trace-tef" {with-test}
1515
"qcheck-core" {with-test & >= "0.19"}
1616
"thread-local-storage" {>= "0.2" & < "0.3"}
@@ -22,7 +22,7 @@ depends: [
2222
]
2323
depopts: [
2424
"hmap"
25-
"trace" {>= "0.6"}
25+
"trace" {>= "0.6" & < "0.10"}
2626
]
2727
build: [
2828
["dune" "subst"] {dev}

packages/opentelemetry/opentelemetry.0.11.1/opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ depends: [
2525
]
2626
depopts: ["trace" "lwt" "eio"]
2727
conflicts: [
28-
"trace" {< "0.9"}
28+
"trace" {(< "0.9") | (>= "0.10")}
2929
]
3030
build: [
3131
["dune" "subst"] {dev}

packages/opentelemetry/opentelemetry.0.11.2/opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ depends: [
2525
]
2626
depopts: ["trace" "lwt" "eio"]
2727
conflicts: [
28-
"trace" {< "0.9"}
28+
"trace" {(< "0.9") | (>= "0.10")}
2929
]
3030
build: [
3131
["dune" "subst"] {dev}

packages/opentelemetry/opentelemetry.0.11/opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ depends: [
2525
]
2626
depopts: ["trace" "lwt" "eio"]
2727
conflicts: [
28-
"trace" {< "0.9"}
28+
"trace" {(< "0.9") | (>= "0.10")}
2929
]
3030
build: [
3131
["dune" "subst"] {dev}
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
opam-version: "2.0"
2+
synopsis: "A ppx-based preprocessor for trace"
3+
maintainer: ["Simon Cruanes"]
4+
authors: ["Simon Cruanes"]
5+
license: "MIT"
6+
tags: ["trace" "ppx"]
7+
homepage: "https://github.com/c-cube/ocaml-trace"
8+
bug-reports: "https://github.com/c-cube/ocaml-trace/issues"
9+
depends: [
10+
"ocaml" {>= "4.12"}
11+
"ppxlib" {>= "0.28" & < "0.36"}
12+
"trace" {= version}
13+
"trace-tef" {= version & with-test}
14+
"dune" {>= "2.9"}
15+
"odoc" {with-doc}
16+
]
17+
depopts: [
18+
"mtime" {>= "2.0"}
19+
]
20+
build: [
21+
["dune" "subst"] {dev}
22+
[
23+
"dune"
24+
"build"
25+
"-p"
26+
name
27+
"-j"
28+
jobs
29+
"--promote-install-files=false"
30+
"@install"
31+
"@runtest" {with-test}
32+
"@doc" {with-doc}
33+
]
34+
["dune" "install" "-p" name "--create-install-files" name]
35+
]
36+
dev-repo: "git+https://github.com/c-cube/ocaml-trace.git"
37+
url {
38+
src:
39+
"https://github.com/c-cube/ocaml-trace/releases/download/v0.10/trace-0.10.tbz"
40+
checksum: [
41+
"sha256=c5a43827bbd5521e779c8856e44f4c718dccda902d00a242b598516110ada04d"
42+
"sha512=f19cb25a767ed428cb1d4a497312267524bfaaf9550caa5fc1e84809494f0b7eaf26030d95563c75dea66606fcbec1be7e34baa4cba86fc57d64bc5d5b98efd5"
43+
]
44+
}
45+
x-commit-hash: "d9cd7621f54325d80114fc3d5be9ff59c98f7331"
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
opam-version: "2.0"
2+
synopsis:
3+
"A high-performance backend for trace, emitting a Fuchsia trace into a file"
4+
maintainer: ["Simon Cruanes"]
5+
authors: ["Simon Cruanes"]
6+
license: "MIT"
7+
tags: ["trace" "tracing" "fuchsia"]
8+
homepage: "https://github.com/c-cube/ocaml-trace"
9+
bug-reports: "https://github.com/c-cube/ocaml-trace/issues"
10+
depends: [
11+
"ocaml" {>= "4.08"}
12+
"trace" {= version}
13+
"mtime" {>= "2.0"}
14+
"thread-local-storage" {>= "0.2"}
15+
"base-bigarray"
16+
"base-unix"
17+
"dune" {>= "2.9"}
18+
"odoc" {with-doc}
19+
]
20+
build: [
21+
["dune" "subst"] {dev}
22+
[
23+
"dune"
24+
"build"
25+
"-p"
26+
name
27+
"-j"
28+
jobs
29+
"--promote-install-files=false"
30+
"@install"
31+
"@runtest" {with-test}
32+
"@doc" {with-doc}
33+
]
34+
["dune" "install" "-p" name "--create-install-files" name]
35+
]
36+
dev-repo: "git+https://github.com/c-cube/ocaml-trace.git"
37+
available: arch != "s390x"
38+
url {
39+
src:
40+
"https://github.com/c-cube/ocaml-trace/releases/download/v0.10/trace-0.10.tbz"
41+
checksum: [
42+
"sha256=c5a43827bbd5521e779c8856e44f4c718dccda902d00a242b598516110ada04d"
43+
"sha512=f19cb25a767ed428cb1d4a497312267524bfaaf9550caa5fc1e84809494f0b7eaf26030d95563c75dea66606fcbec1be7e34baa4cba86fc57d64bc5d5b98efd5"
44+
]
45+
}
46+
x-commit-hash: "d9cd7621f54325d80114fc3d5be9ff59c98f7331"
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
opam-version: "2.0"
2+
synopsis:
3+
"A simple backend for trace, emitting Catapult/TEF JSON into a file"
4+
maintainer: ["Simon Cruanes"]
5+
authors: ["Simon Cruanes"]
6+
license: "MIT"
7+
tags: [
8+
"trace" "tracing" "catapult" "TEF" "chrome-format" "chrome-trace" "json"
9+
]
10+
homepage: "https://github.com/c-cube/ocaml-trace"
11+
bug-reports: "https://github.com/c-cube/ocaml-trace/issues"
12+
depends: [
13+
"ocaml" {>= "4.08"}
14+
"trace" {= version}
15+
"mtime" {>= "2.0"}
16+
"base-unix"
17+
"dune" {>= "2.9"}
18+
"odoc" {with-doc}
19+
]
20+
build: [
21+
["dune" "subst"] {dev}
22+
[
23+
"dune"
24+
"build"
25+
"-p"
26+
name
27+
"-j"
28+
jobs
29+
"--promote-install-files=false"
30+
"@install"
31+
"@runtest" {with-test}
32+
"@doc" {with-doc}
33+
]
34+
["dune" "install" "-p" name "--create-install-files" name]
35+
]
36+
dev-repo: "git+https://github.com/c-cube/ocaml-trace.git"
37+
url {
38+
src:
39+
"https://github.com/c-cube/ocaml-trace/releases/download/v0.10/trace-0.10.tbz"
40+
checksum: [
41+
"sha256=c5a43827bbd5521e779c8856e44f4c718dccda902d00a242b598516110ada04d"
42+
"sha512=f19cb25a767ed428cb1d4a497312267524bfaaf9550caa5fc1e84809494f0b7eaf26030d95563c75dea66606fcbec1be7e34baa4cba86fc57d64bc5d5b98efd5"
43+
]
44+
}
45+
x-commit-hash: "d9cd7621f54325d80114fc3d5be9ff59c98f7331"

packages/trace/trace.0.10/opam

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
opam-version: "2.0"
2+
synopsis:
3+
"A stub for tracing/observability, agnostic in how data is collected"
4+
maintainer: ["Simon Cruanes"]
5+
authors: ["Simon Cruanes"]
6+
license: "MIT"
7+
tags: ["trace" "tracing" "observability" "profiling"]
8+
homepage: "https://github.com/c-cube/ocaml-trace"
9+
bug-reports: "https://github.com/c-cube/ocaml-trace/issues"
10+
depends: [
11+
"ocaml" {>= "4.08"}
12+
"dune" {>= "2.9"}
13+
"odoc" {with-doc}
14+
]
15+
depopts: [
16+
"hmap"
17+
"unix"
18+
"picos_aux" {>= "0.6"}
19+
"mtime" {>= "2.0"}
20+
]
21+
build: [
22+
["dune" "subst"] {dev}
23+
[
24+
"dune"
25+
"build"
26+
"-p"
27+
name
28+
"-j"
29+
jobs
30+
"--promote-install-files=false"
31+
"@install"
32+
"@runtest" {with-test}
33+
"@doc" {with-doc}
34+
]
35+
["dune" "install" "-p" name "--create-install-files" name]
36+
]
37+
dev-repo: "git+https://github.com/c-cube/ocaml-trace.git"
38+
url {
39+
src:
40+
"https://github.com/c-cube/ocaml-trace/releases/download/v0.10/trace-0.10.tbz"
41+
checksum: [
42+
"sha256=c5a43827bbd5521e779c8856e44f4c718dccda902d00a242b598516110ada04d"
43+
"sha512=f19cb25a767ed428cb1d4a497312267524bfaaf9550caa5fc1e84809494f0b7eaf26030d95563c75dea66606fcbec1be7e34baa4cba86fc57d64bc5d5b98efd5"
44+
]
45+
}
46+
x-commit-hash: "d9cd7621f54325d80114fc3d5be9ff59c98f7331"

0 commit comments

Comments
 (0)