Skip to content

Commit 7456713

Browse files
committed
[new release] trace (2 packages) (0.4)
CHANGES: - add `?data` to `counter_int` and `counter_float` - add `float` to user data - add `add_data_to_current_span` and `add_data_to_manual_span` - make `explicit_span.meta` mutable - trace-tef: write to `trace.json` if env variable `TRACE` is either 1 or true - trace-tef: emit function name, if provided, as a metadata key/value pair - re-export trace.core in trace - perf: in trace-tef, use broadcast instead of signal in the job queue
1 parent 121ed20 commit 7456713

File tree

2 files changed

+83
-0
lines changed
  • packages
    • trace-tef/trace-tef.0.4
    • trace/trace.0.4

2 files changed

+83
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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: ["trace" "tracing" "catapult"]
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+
"base-unix"
15+
"dune" {>= "2.9"}
16+
"odoc" {with-doc}
17+
]
18+
build: [
19+
["dune" "subst"] {dev}
20+
[
21+
"dune"
22+
"build"
23+
"-p"
24+
name
25+
"-j"
26+
jobs
27+
"--promote-install-files=false"
28+
"@install"
29+
"@runtest" {with-test}
30+
"@doc" {with-doc}
31+
]
32+
["dune" "install" "-p" name "--create-install-files" name]
33+
]
34+
dev-repo: "git+https://github.com/c-cube/ocaml-trace.git"
35+
url {
36+
src:
37+
"https://github.com/c-cube/ocaml-trace/releases/download/v0.4/trace-0.4.tbz"
38+
checksum: [
39+
"sha256=b51ec546ec1c90f6ed60b330ea7c9212d5c9c26e4d93e38e60224d984fab09b1"
40+
"sha512=dc617857b0f213765b82b45281ebef2fab4b8c213597f19cf4476356e2c7295c3aeb0d71c8d1954617196d7c491336efba1c67f02138d011ac590053c06ed638"
41+
]
42+
}
43+
x-commit-hash: "4624d1800cb1dc7916296cf68bfe01fa217751b8"

packages/trace/trace.0.4/opam

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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+
build: [
16+
["dune" "subst"] {dev}
17+
[
18+
"dune"
19+
"build"
20+
"-p"
21+
name
22+
"-j"
23+
jobs
24+
"--promote-install-files=false"
25+
"@install"
26+
"@runtest" {with-test}
27+
"@doc" {with-doc}
28+
]
29+
["dune" "install" "-p" name "--create-install-files" name]
30+
]
31+
dev-repo: "git+https://github.com/c-cube/ocaml-trace.git"
32+
url {
33+
src:
34+
"https://github.com/c-cube/ocaml-trace/releases/download/v0.4/trace-0.4.tbz"
35+
checksum: [
36+
"sha256=b51ec546ec1c90f6ed60b330ea7c9212d5c9c26e4d93e38e60224d984fab09b1"
37+
"sha512=dc617857b0f213765b82b45281ebef2fab4b8c213597f19cf4476356e2c7295c3aeb0d71c8d1954617196d7c491336efba1c67f02138d011ac590053c06ed638"
38+
]
39+
}
40+
x-commit-hash: "4624d1800cb1dc7916296cf68bfe01fa217751b8"

0 commit comments

Comments
 (0)