Commit graph

344 commits

Author SHA1 Message Date
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
47f7f1d110
Merge pull request #48 from imandra-ai/wip-protoc-3.0
use ocaml-protoc 3.0.x
2023-12-20 14:00:55 -05:00
Simon Cruanes
8164ae55b8
CI: only on push to main 2023-12-14 20:49:12 -05:00
Simon Cruanes
936c74ea36
fast CI 2023-12-14 20:49:11 -05:00
Simon Cruanes
e6405ef7b6
CI 2023-12-14 20:49:11 -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
e052893759
bench: add counter 2023-12-14 20:49:11 -05:00
Simon Cruanes
e53cffbf12
chore: add upper bound on pbrt 2023-12-03 15:57:41 -05:00
Simon Cruanes
211c328498
Merge pull request #47 from imandra-ai/wip-cleanup-core-library
move protobuf code to opentelemetry.proto
2023-11-17 15:35:05 -05:00
Simon Cruanes
794527ebbd
fix: regenerate code with a non-pinned ocaml-protoc 2023-11-14 23:43:20 -05:00
Simon Cruanes
9c096411a2
debug git diff 2023-11-14 22:42:39 -05:00
Simon Cruanes
705d541c3f
chore: use protoc 2.4 in CI 2023-11-08 12:11:32 -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
6bf49dc050
refactor tests to avoid circular dependencies 2023-11-08 11:35:19 -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
eb5b6dffaf tests: Add every test-dep to every package 2023-10-02 17:48:55 +00:00
Elliott Cable
fb1133be3d chore: Prepare for v0.6 2023-09-25 16:23:58 +00:00
Elliott Cable
b0337f6027 chore: Add myself to maintainers 2023-09-25 16:23:58 +00:00
Elliott Cable
f5cd6e0bf0 chore: update CHANGES 2023-09-22 20:22:11 +00:00
ELLIOTTCABLE
d578de0ceb
Merge pull request #34 from ELLIOTTCABLE/configurable-scope-storage 2023-09-22 12:45:50 -05: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
28f750056f deps: Update ocaml-trace dep to 0.4 2023-09-20 14:45:39 +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
2be60c7ba6 tests: Add failing test for threaded implicit-scope 2023-09-19 23:57:42 +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
Corentin Leruth
329d45ee45 add get_url test with explicit config url 2023-09-13 15:18:13 -04:00
Simon Cruanes
a32e8638ee
chore: makefile 2023-09-13 14:19:09 -04:00
Simon Cruanes
af71df8daf
Merge pull request #43 from imandra-ai/wip-otel-1.0
move to otel 1.0
2023-09-07 22:46:28 -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
4af7b9bd9a
chore: migrate to OTEL proto files 1.0 2023-09-06 23:27:31 -04:00