Simon Cruanes
a47699f6f8
feat: add Span_context, as required by OTEL API guidelines
2024-02-12 11:16:34 -05:00
Simon Cruanes
0d8c3ab9bf
fix
2024-02-12 09:47:17 -05:00
Simon Cruanes
7d40554025
fix
2024-02-09 15:52:00 -05:00
Simon Cruanes
479f1f39c8
feat: record backtraces in error spans
2024-02-09 15:34:21 -05:00
Simon Cruanes
abafac8361
use dune-generated version number in instrumentation name
2024-02-09 14:58:55 -05:00
Simon Cruanes
97daf5b402
compat with trace 0.6
2024-02-09 14:45:50 -05:00
Simon Cruanes
031b7bfc38
more doc
2023-12-21 08:28:07 -05:00
Simon Cruanes
b830c3d1be
config: self-trace is disabled by default for now
2023-12-20 16:07:59 -05:00
Simon Cruanes
133b6ad991
revert: use collector again for self-tracing spans
...
it's less dangerous to emit spans for self-tracing, even
if nothing else is going on, than risk having them accumulate
in case the program emits no spans but emits a lot of
metrics and logs (which create self-tracing spans)
2023-12-20 16:05:41 -05:00
Simon Cruanes
9c2b885f95
detail
2023-12-20 15:58:33 -05:00
Simon Cruanes
f0310530a3
ocurl: add ticker_interval_ms config
...
ticker interval will affect how often metrics are emitted,
this doesn't need be related to batch timeouts.
2023-12-20 15:57:53 -05:00
Simon Cruanes
d4186f64f4
client ocurl: do self-tracing in cheaper way
...
we don't go through OTEL for self tracing as it can create
regular span emission where normally there would be none
(emitting a self-tracing span might create a batch, which then
has to be sent after the batch timeout, and sending
that one creates a new span, etc.)
2023-12-20 15:49:50 -05:00
Simon Cruanes
bd8b483e81
feat: use AList for tick callbacks; emit GC events on tick
...
it's cleaner to emit GC events on ticks rather than on GC,
because it avoids both spamming if the GC is very active, and
emitting nothing when there are few allocations.
2023-12-20 15:46:39 -05:00
Simon Cruanes
2ac799f10d
move AList to core
2023-12-20 15:45:57 -05:00
Simon Cruanes
3d16de634f
refine seld tracing
2023-12-20 14:29:23 -05:00
Simon Cruanes
f0750cdfb5
otel-ocurl: some self-tracing
2023-12-20 14:22:31 -05:00
Simon Cruanes
5005c3aa9b
perf: when we get multiple messages, check batches only once
2023-12-20 14:01:24 -05:00
Simon Cruanes
f6afc3df1c
use ocaml-protoc 3.0.1 for codegen
2023-12-14 20:49:11 -05:00
Simon Cruanes
725a806b8b
migrate to ocaml-protoc 3.0
2023-12-14 20:49:11 -05:00
Simon Cruanes
794527ebbd
fix: regenerate code with a non-pinned ocaml-protoc
2023-11-14 23:43:20 -05:00
Simon Cruanes
65e9af6091
format
2023-11-08 12:01:50 -05:00
Simon Cruanes
16b3859856
ocamlformat
2023-11-08 12:01:32 -05:00
Simon Cruanes
0532c9b9ef
add missing proto directory
2023-11-08 11:41:59 -05:00
Simon Cruanes
db45d9ff56
no open
2023-11-07 15:35:40 -05:00
Simon Cruanes
b826f85977
move protobuf code to opentelemetry.proto
2023-11-07 15:34:12 -05:00
Elliott Cable
6362bc55ef
trace-collector: Use Trace_core instead of Trace for OCaml v5
2023-10-02 17:59:28 +00:00
Elliott Cable
9a834b39f7
dune fmt
2023-09-20 15:15:58 +00:00
Elliott Cable
76c18c55c2
trace-collector: Pass user-data to OTel metrics
2023-09-20 15:14:10 +00:00
Elliott Cable
ed90772a57
Merge branch 'master' into configurable-scope-storage
...
* master:
fix ocurl: have ticker thread stop when work queue is closed
fix get_url test to take config.url into account
add get_url test with explicit config url
chore: makefile
update generated code
opentelemetry: in Trace, change default span kind
chore: migrate to OTEL proto files 1.0
CI: run on 5.0; run on every branch push
remove use of String.ends_with for compat with 4.08
remove trailing slash from url
shorter name for the instrumentation library
use named signals
2023-09-20 14:47:14 +00:00
Elliott Cable
1809075095
trace-collector: Support for floats, etc from trace
2023-09-20 02:30:53 +00:00
Elliott Cable
057a27abe9
(- fix) Use new TLS-module naming from ac.0.1.0
2023-09-20 02:13:15 +00:00
Elliott Cable
caade960b6
fix: Repair ambient scope
2023-09-19 23:57:53 +00:00
Elliott Cable
03f6f69bdd
collector: Add debug-wrapping backend
2023-09-19 21:35:09 +00:00
Simon Cruanes
d1c59a59bc
fix ocurl: have ticker thread stop when work queue is closed
2023-09-19 10:13:36 -04:00
Corentin Leruth
a62f1d891a
fix get_url test to take config.url into account
2023-09-13 15:18:13 -04:00
Simon Cruanes
e40c999b06
update generated code
2023-09-06 23:37:54 -04:00
Simon Cruanes
b67ecfdda7
opentelemetry: in Trace, change default span kind
2023-09-06 23:34:58 -04:00
Simon Cruanes
063c046933
remove use of String.ends_with for compat with 4.08
2023-08-31 23:44:16 -04:00
Corentin Leruth
883d4bb806
remove trailing slash from url
2023-08-31 23:44:16 -04:00
Simon Cruanes
e2af52ebb0
shorter name for the instrumentation library
...
this name is encoded a lot (in most batches) and can visually clutter visualisation of spans.
2023-08-30 15:33:37 -04:00
Elliott Cable
f9ea704399
docs: Add a note about well-known-id stability
2023-08-30 02:30:14 +00:00
Elliott Cable
9ecd73cb26
trace-collector: Add static names for well-known strings
2023-08-30 02:28:34 +00:00
Elliott Cable
a890876946
Document otrace.spankind identifier
2023-08-30 02:20:38 +00:00
Elliott Cable
925c962945
trace-collector: Documentation
2023-08-30 01:50:04 +00:00
Elliott Cable
2b3e3d733c
trace-collector: Expose Internal module
2023-08-30 01:21:30 +00:00
Elliott Cable
1822c1acaa
trace-collector: Support manual spans
2023-08-29 00:11:48 +00:00
Corentin Leruth
9ba1719795
use named signals
2023-08-28 10:37:05 -04:00
Elliott Cable
de35c80799
trace-collector: Match new Trace API
2023-08-03 20:29:35 +00:00
Elliott Cable
9e65566d88
trace-collector: Use OTel semconv for __FUNCTION__ etc
2023-08-03 20:16:34 +00:00
Elliott Cable
1a1c360f4c
store: Rename 'surrounding' scope to 'ambient'
2023-08-02 00:19:24 +00:00