Commit graph

566 commits

Author SHA1 Message Date
Simon Cruanes
26691eca20
remove obsolete comment 2025-05-05 14:36:31 -04:00
Simon Cruanes
5788492946
breaking: change Collector.cleanup so it takes a callback
this callback can be used to resolve a Lwt future, for example, to make
sure we indeed wait for the cleanup to be done before exiting.
2025-04-17 16:09:14 -04:00
Simon Cruanes
6a378e49ce
format 2025-04-17 14:59:28 -04:00
Simon Cruanes
7860e949d0
CI 2025-04-17 10:15:08 -04:00
Simon Cruanes
9b5f3cd0c3
feat: adapt to trace 0.10 2025-04-17 10:04:16 -04:00
Simon Cruanes
45fae39c29
chore: bump ocamlforamt to 0.27 2025-04-17 10:03:26 -04:00
Simon Cruanes
28b78cd741
readme 2025-04-10 15:36:06 -04:00
Simon Cruanes
34a4a87fc3
perf: details 2025-04-09 10:00:50 -04:00
Simon Cruanes
c313731a70
prepare for 0.11.2 2025-03-27 09:29:36 -04:00
Antonin Décimo
b2e62d527e fix: opentelemetry-client-ocurl: don't block signals on Windows
As of OCaml 5.3, the OCaml runtime doesn't support signals on
Windows. Trying to block them with Thread.sigmask will raise:

    Thread 5 killed on uncaught exception Invalid_argument("Thread.sigmask not implemented")
    Raised by primitive operation at Opentelemetry_client_ocurl.start_bg_thread.run in file "src/client-ocurl/opentelemetry_client_ocurl.ml", line 106, characters 12-49
2025-03-27 09:28:48 -04:00
Simon Cruanes
1f4bdfa1f5
gitignore 2025-03-19 21:05:13 -04:00
Simon Cruanes
21de8b1f4b
forgot to update tags 2025-03-19 09:06:57 -04:00
Simon Cruanes
3d3cf8c02c
fix otel-client-ocurl: use ptime timestamps for self metrics 2025-03-14 10:00:54 -04:00
Simon Cruanes
d8be02c829
prepare for 0.11.1 2025-03-14 09:21:43 -04:00
Corentin Leruth
7ef6677dff add missing sample argument to Traceparent.to_value 2025-03-03 09:32:01 -05:00
Simon Cruanes
c3c5761b06
prepare for 0.11 2025-01-31 17:37:32 -05:00
Simon Cruanes
66573bd1ac
fix: compat with lwt < 5.7 2025-01-31 16:50:21 -05:00
Simon Cruanes
92613d8526
fix 2025-01-30 20:44:57 -05:00
Corentin Leruth
440049a681 add cohttp upper bound version constraint 2025-01-30 20:37:37 -05:00
Corentin Leruth
4f9247d6d0 support sampled flag 2025-01-30 20:32:48 -05:00
Simon Cruanes
f604f0b876
fix CI 2025-01-30 20:32:33 -05:00
Simon Cruanes
1848b02c0f add optional args to Span_link.of_span_ctx 2025-01-14 09:32:11 -05:00
Simon Cruanes
3f41c7e450 feat otel.trace: extension points for links, record_exn, kind 2025-01-14 09:32:11 -05:00
Simon Cruanes
c71caa93be feat otel: add Span_kind.t, add {kind,set_kind} to Scope 2025-01-14 09:32:11 -05:00
Simon Cruanes
fdee7fe2dd
fix otel.trace: set scope for explicit spans 2024-10-25 10:44:32 -04:00
Corentin Leruth
5aa5c5ed0a expose Span_status types 2024-10-24 10:48:10 -04:00
Simon Cruanes
9813ec6afc
Merge pull request #76 from imandra-ai/simon/fix-41
fix: wait for cleanup in cohttp client
2024-10-21 22:57:27 -04:00
Simon Cruanes
3a22a932f4
Merge pull request #75 from tatchi/add-set-span-status
add Scope.set_span_status
2024-10-21 12:01:01 -04:00
Simon Cruanes
865b446829
Update src/core/opentelemetry.ml 2024-10-21 10:40:46 -04:00
Simon Cruanes
5e925d6d4a
fix tests 2024-10-18 13:18:15 -04:00
Corentin Leruth
53c1ddba8c re-add code to set span status based on scope 2024-10-18 11:35:16 +02:00
Corentin Leruth
acc9cb3abb move comments to signature 2024-10-18 11:29:11 +02:00
Corentin Leruth
1a78802c20 do not use deprecated functions 2024-10-18 11:26:57 +02:00
Corentin Leruth
6a1f1eb06b move span status to item_list 2024-10-18 11:22:43 +02:00
Simon Cruanes
55977b13d8
fix: wait for cleanup in cohttp client
in `Opentelemetry_client_cohttp_lwt.with_setup` we should now wait for
the cleanup to be done, by sneaking in a `unit Lwt.u` that is only
resolved after the cleanup is done.

close #41
2024-10-17 15:06:45 -04:00
Simon Cruanes
e789ecf3da cleanup 2024-10-17 13:45:28 -04:00
Simon Cruanes
308e0304e3 simplify 2024-10-17 13:45:28 -04:00
Simon Cruanes
424a82c8a5 in backends, call tick() before cleaning up
this helps flushing signals that are being batched.

close #69
2024-10-17 13:45:28 -04:00
Simon Cruanes
a44c5dc33a in remove_backend, call tick() then cleanup() on it 2024-10-17 13:45:28 -04:00
Simon Cruanes
97030757c1 feat: allow to remove backend
close #70
2024-10-17 13:45:28 -04:00
Corentin Leruth
3264b3c2ca add Scope.set_span_status 2024-10-17 18:18:32 +02:00
Simon Cruanes
041d05eb9f fix otel.trace: record exception in with_span
close #71
2024-10-17 11:06:34 -04:00
Nicola Mometto
f8079a13ea chore: update warnings 2024-10-17 14:20:20 +01:00
Simon Cruanes
2d4b85dcfe
some docs 2024-10-16 13:19:20 -04:00
Simon Cruanes
974ce75a6e
Merge pull request #67 from tatchi/reduce-mem-usage-scope
reduce memory usage of Scope.t
2024-10-11 09:35:47 -04:00
Corentin Leruth
ac1a27eb89 reduce memory usage of Scope.t 2024-10-10 21:22:16 +02:00
Simon Cruanes
036c108a27
Merge pull request #66 from tatchi/add-links
add links to scope
2024-10-07 11:10:06 -04:00
Corentin Leruth
41f1f43470 add Scope.make 2024-10-07 16:37:01 +02:00
Corentin Leruth
b3747cfc8e add links to scope 2024-10-07 15:07:05 +02:00
Simon Cruanes
076f39b1be
remove optional dep on rcontext 2024-10-04 21:02:39 -04:00