Simon Cruanes
ba1a8eec98
update protobuf code
2025-12-01 20:32:05 -05:00
Simon Cruanes
5400f521a9
update generated code
2025-12-01 20:32:05 -05:00
Simon Cruanes
d4b44244d7
update generated code again, repeated fields are optional again
2025-12-01 20:32:05 -05:00
Simon Cruanes
8290b9bd81
fix warnings
2025-12-01 20:32:04 -05:00
Simon Cruanes
41d8b0c1a4
fix
2025-12-01 20:32:04 -05:00
Simon Cruanes
51f783a578
udpate generated proto code
2025-12-01 20:32:04 -05:00
Simon Cruanes
a35ea4c646
fixes
2025-12-01 20:32:03 -05:00
Simon Cruanes
0f1452e01e
update generated code
2025-12-01 20:32:03 -05:00
Simon Cruanes
f000c11406
update the emit test so it records how many bytes were emitted
2025-12-01 20:32:03 -05:00
Simon Cruanes
bf09b58a63
update generated protobuf code
2025-12-01 20:32:03 -05:00
Simon Cruanes
ee8542ea0e
fix warning
2025-12-01 17:49:53 -05:00
Simon Cruanes
a3b4852b89
Merge pull request #111 from tatchi/tatchi/ocurl-lwt
...
add opentelemetry-client-ocurl-lwt
2025-12-01 17:33:54 -05:00
Simon Cruanes
e31f5f6aba
refactor: move the Mutex.protect backport into Util_mutex
2025-11-19 12:20:13 -05:00
ajbt200128
3fbac32822
fix: mutex usage and inline bugs
2025-11-12 14:27:36 -08:00
Simon Cruanes
507bf25dcf
Merge pull request #109 from tatchi/fmt
...
fmt
2025-11-10 12:49:33 -05:00
Simon Cruanes
883d1bc4e5
Merge pull request #110 from tatchi/since-012
...
add correct release version in comment
2025-11-10 09:34:08 -05:00
Corentin Leruth
78dfbffe13
fix comment
2025-11-10 09:20:38 -05:00
Corentin Leruth
950d5922a1
add correct release version in comment
2025-11-08 12:49:52 +01:00
Corentin Leruth
42e41675b5
fmt
2025-11-08 12:43:21 +01:00
Corentin Leruth
f21c16697d
add opentelemetry-client-ocurl-lwt
2025-11-08 12:42:21 +01:00
Simon Cruanes
b2ef68536d
feat cohttp: set 'accept' header as well
2025-09-15 12:25:04 -04:00
Simon Cruanes
8eda0730e9
remove dead code
2025-09-08 12:24:49 -04:00
Simon Cruanes
b778ffdac3
reduce allocations in push
2025-09-08 08:09:05 -04:00
Simon Cruanes
026465f770
reduce size of critical section
...
better to reverse the list without holding the lock,
as it allocates and might have to yield to another thread
or domain, pause, etc.
2025-09-08 08:08:29 -04:00
Simon Cruanes
76efa381c3
comments
2025-09-08 08:08:18 -04:00
Shon Feder
8a8299020a
Make Batch actually be thread safe
2025-09-07 23:26:20 -04:00
Shon Feder
474d43bdad
Use domain ID instead of thread ID in Eio collector
...
Eio programs are not generally expected to use threads for concurrency,
but they may well use different domains which we'd want to track during
debugging.
2025-09-07 23:25:25 -04:00
Simon Cruanes
fa610ed535
Update src/core/opentelemetry.ml
2025-09-02 15:08:22 -04:00
Shon Feder
54b62af1a2
Check for on_click registration exactly once
2025-09-02 15:00:11 -04:00
Shon Feder
93803581b7
fix: make metric callbacks atomic
...
The use of a non-threadsafe mutable reference for the metrics callbacks
was resulting in a race condition that would sometimes produce
non-deterministic results in the integration tests.
This has not affected the lwt-based collector, because of the single
threaded concurrency Lwt enforces, but it began to show up in the WIP
Eio rewrite, for which I am testing on cross-domain programs.
I suspect this may have also bee affecting the ocurl collector, but we
don't have integration test running on that yet.
2025-09-02 14:41:26 -04:00
Simon Cruanes
d9dd7ce32c
Merge pull request #103 from shonfeder/eio-fixes
...
Fix Eio collector to work accross domains
2025-09-02 09:26:18 -04:00
Shon Feder
ddbdc80d57
make Eio collector thread safe
...
The backend cannot take a switch, because switches cannot be shared
across domains, but the backend is accessed across domains from a global
variable.
2025-08-01 13:56:50 -04:00
Shon Feder
7cdadfaeeb
Fix exception message
2025-08-01 13:56:50 -04:00
ajbt200128
fbb280974a
feat: add Logs integration
...
This PR upstreams the logs integration I wrote for Semgrep, and that
we've been using succesfully for months!
2025-07-31 14:25:52 -07:00
ajbt200128
46d1289d95
fix: opentelemetry exception attr spec
...
this brings the exception attributes in line with the spec
https://opentelemetry.io/docs/specs/semconv/exceptions/exceptions-spans/ .
It seems we were missing the preceding `exception.`.
2025-07-23 09:01:52 -05:00
Shon Feder
69d15df4f1
Fix deps
2025-07-14 12:34:39 -04:00
Shon Feder
94772c7fe4
Fix GitHub actions for Ocaml5 specific tests
...
Co-authored-by: Puneeth Chaganti <punchagan@muse-amuse.in>
2025-07-12 00:30:31 -04:00
Shon Feder
7746c871c2
Add Eio collector
2025-07-12 00:30:31 -04:00
Shon Feder
a71fc32091
Fix docs
2025-07-11 17:57:49 -04:00
Shon Feder
87cfd5e31e
Add test harness for instrumented applications
2025-07-08 21:30:03 -04:00
Shon Feder
a44e0cd3b5
Add common type for signals
2025-07-08 21:28:55 -04:00
Shon Feder
00840e0b88
Add pretty printer utils
...
These combinators seem tiny, but they simpflify code where they are used
quite a lot.
2025-07-08 21:28:55 -04:00
Shon Feder
33104f231e
Add Signal.Decode module
...
For testing
2025-07-08 21:28:55 -04:00
Shon Feder
916b962c43
Expose default_url in config
...
No reason to keep this value hidden, and we want to reuse it for tests.
2025-07-08 21:28:55 -04:00
Shon Feder
39920ed109
Fix Signal encoder name choice
...
Don't know why I didn't opt for this clearer name originally.
2025-07-08 21:28:55 -04:00
Shon Feder
d3235a1864
Remove unneeded encoder reset
...
We reset the encoder if we are reusing one, and we generate a fresh new
one otherwise.
2025-07-08 21:28:55 -04:00
Shon Feder
8b48843459
Correct size and optimize representation
...
Since we need to traverse the elements added to count up the new size,
we can use that pass to add the elements onto our FIFO queue, and then
drain the queue in one last pass to reverse. IIUC, this should give us
liner complexity of the batch retrieval.
2025-06-30 22:52:49 -04:00
Shon Feder
31a712dd30
Allowing configuring start time
2025-06-30 22:28:30 -04:00
Shon Feder
18f58c3ac5
Allow configuring high_watermark
2025-06-30 22:01:13 -04:00
Shon Feder
ca31707395
Factor batching logic out of the cohttp-lwt client
...
This will allow resuing the batching logic in the Eio client.
As a followup, we should refactor the ocurl client to use the same
batcher.
2025-06-27 21:48:55 -04:00