Commit graph

692 commits

Author SHA1 Message Date
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
Corentin Leruth
956875c3bb remove leftover ambient-context dependency 2024-10-03 09:44:21 -04:00
Simon Cruanes
420ad5484e
feat otel.trace: use "otel.error" to influence a span status 2024-09-30 14:14:41 -04:00
Simon Cruanes
461811a2cb
feat trace: set status of a span based on exception.message 2024-09-30 12:40:17 -04:00
Simon Cruanes
60a0b843e6
feat: update and fix opentelemetry.trace 2024-09-30 12:34:16 -04:00
Simon Cruanes
9680d61a36
Merge pull request #63 from tatchi/add-record-exception
add record_exception
2024-09-27 10:16:40 -04:00
Corentin Leruth
ce23facec1 use reraise 2024-09-24 21:23:51 +02:00
Corentin Leruth
00d46841e4 add record_exception 2024-09-24 09:35:26 +02:00
Simon Cruanes
5dd68095ed
CI 2024-09-20 12:08:38 -04:00
Simon Cruanes
7629e419c8
format 2024-09-20 09:22:13 -04:00
ajbt200128
242d304639 Add events to spans created 2024-09-20 08:24:11 -04:00
Corentin Leruth
d6d36ee73d add url to error log 2024-09-20 08:16:37 -04:00
Simon Cruanes
c372c458c7
Merge pull request #59 from imandra-ai/simon/inline-ambient-context
simon/inline ambient context
2024-09-06 10:29:29 -04:00
Simon Cruanes
a9971e4d41
eio local storage 2024-09-06 09:48:06 -04:00
Simon Cruanes
1bcea95ed9
feat: lwt backend 2024-09-06 09:43:56 -04:00
Simon Cruanes
faa0808034
wip 2024-09-06 07:48:54 -04:00
Simon Cruanes
e8ed97100b
ocamlformat 2024-09-06 07:48:47 -04:00
Simon Cruanes
9584a7426f
wip: inline ambient-context into opentelemetry 2024-09-05 16:11:09 -04:00
Simon Cruanes
b4a9ccf57b
prepare for 0.10 2024-08-13 09:32:00 -04:00
Simon Cruanes
4f6cf08041
Merge pull request #56 from tatchi/tatchi/per-signals-url
add support for per-signal urls
2024-08-12 10:14:57 -04:00
Corentin Leruth
e73ea7e6ad make urls from env take precedence 2024-08-09 08:17:08 +02:00
Corentin Leruth
f0dd5a7a35 remove unused config parameter 2024-08-09 08:04:08 +02:00
Matt Bray
ea684b097b
Merge pull request #58 from imandra-ai/matt/mmcs
fix(gha): try --solver=mccs
2024-08-08 11:19:36 +01:00
Matt Bray
01a0dc7d8d fix(gha): try --solver=mccs 2024-08-08 11:14:44 +01:00
Matt Bray
c22e7f4699
Merge pull request #57 from tatchi/add-host-attributes
add host attributes
2024-08-08 11:07:19 +01:00