Commit graph

83 commits

Author SHA1 Message Date
Simon Cruanes
b826f85977
move protobuf code to opentelemetry.proto 2023-11-07 15:34:12 -05:00
Elliott Cable
9a834b39f7 dune fmt 2023-09-20 15:15:58 +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
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
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
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
925c962945 trace-collector: Documentation 2023-08-30 01:50:04 +00:00
Elliott Cable
1a1c360f4c store: Rename 'surrounding' scope to 'ambient' 2023-08-02 00:19:24 +00:00
Elliott Cable
d668f5c472 lwt: Share impl details with non-lwt with_ 2023-08-01 21:42:35 +00:00
Elliott Cable
a64565f104 store: Extract thread_local, abstract for lwt/eio 2023-08-01 21:03:58 +00:00
Simon Cruanes
8e1a69d886
enable warnings and fix them 2023-06-15 22:18:20 -04:00
Simon Cruanes
4e15bedfee
otel: internal helper 2023-06-09 19:08:21 -04:00
Simon Cruanes
c3f5b36e36
feat: add opentelemetry-client-cohttp-lwt library 2022-10-03 12:20:59 -04:00
Simon Cruanes
1aec277063
fix: make sure trace_id/span_id are not all-0 2022-09-30 13:59:28 -04:00
Simon Cruanes
8ea9d205fe
refactor: update opentelemetry to use new codegen 2022-09-30 13:59:28 -04:00
Simon Cruanes
e60e7754b3
expose Scope.get_surrounding 2022-09-19 16:04:37 -04:00
Simon Cruanes
a2e273282c
feat(opentelemetry): Trace.with_ now has force_new_trace_id param
this parameter can be used to force the creation of a new context,
independent of surrounding context.
2022-09-19 15:01:16 -04:00
Simon Cruanes
35d1782c72
use thread-local storage to store global scope 2022-09-16 16:58:15 -04:00
Simon Cruanes
97b9cb8ea8
detail 2022-08-15 13:18:14 -04:00
Simon Cruanes
788dc38e9b
format 2022-08-15 12:45:50 -04:00
Simon Cruanes
b01dd32ead
add Span_link module 2022-08-15 12:30:22 -04:00
Simon Cruanes
56bd892c9a
feat: add a ref Globals.default_span_kind to specify default span kind 2022-08-02 11:28:33 -04:00
Simon Cruanes
12b5f6c765
heinous typo 2022-07-06 16:29:02 -04:00
Simon Cruanes
77ebf0cced
docs 2022-07-06 16:21:12 -04:00
Simon Cruanes
36dcdda480
prepare for 0.2 2022-06-09 12:40:20 -04:00
Simon Cruanes
7fd56bb5c3
compat for Result 2022-06-09 11:29:20 -04:00
Simon Cruanes
5d3fa1c8eb
helpers for attributes 2022-06-07 14:48:20 -04:00
Simon Cruanes
f44351055a
Merge branch 'master' into wip-logs 2022-05-12 12:26:07 -04:00
Simon Cruanes
3f9bd94837
format 2022-05-12 11:54:06 -04:00
Simon Cruanes
a718f049aa
fix: ensure we can always produce random trace_id/span_id 2022-05-04 12:47:33 -04:00
Matt Bray
028d5ece71 chore: add Trace_id.pp and Span_id.pp 2022-05-03 17:28:42 +01:00
Simon Cruanes
0dd97663b6
remove dune subst bs 2022-05-03 10:46:01 -04:00
Simon Cruanes
080e0de138
Update src/opentelemetry.ml
Co-authored-by: Matt Bray <mattjbray@gmail.com>
2022-04-30 13:26:12 -04:00
Simon Cruanes
6744123075
feat(otel): Metrics_callbacks module
this module allows the user's programs and libraries to register
some callbacks that will be regularly called to produce metrics.
2022-04-29 16:50:06 -04:00
Simon Cruanes
198027a519
add histogram metrics (untested) 2022-04-28 10:17:36 -04:00
Simon Cruanes
619b389322
type error fixed 2022-04-28 09:57:28 -04:00
Simon Cruanes
1bedb57123
feat: implement basic support for logs
also send them to the collector.
2022-04-28 09:57:28 -04:00
Simon Cruanes
2149bb0714
fix: proper starting point for cumulative metrics
use the start of the program as a fixed reference point.
see: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/datamodel.md#temporality
2022-04-26 10:08:56 -04:00
Simon Cruanes
62f3bb8b03
expose tick function 2022-04-20 12:42:47 -04:00
Simon Cruanes
51cebfd383
Merge pull request #16 from AestheticIntegration/set-global-attrs
feat: use a ref for Globals.global_attributes
2022-04-19 13:28:33 -04:00
Simon Cruanes
01b31b471c
doc: improve docs for main module 2022-04-15 17:52:22 -04:00
Simon Cruanes
c950ffc885
feat: use a ref for Globals.global_attributes
sometimes it's useful to be able to modify them from the code itself.
For example a client or service might generate a unique Uuidm for its whole
lifetime, and add that as an attribute to later filter on it.
2022-04-15 08:59:13 -04:00
Simon Cruanes
71b999a5b7
use conventions 2022-04-12 12:04:49 -04:00
Simon Cruanes
c362899ff1
add global attributes to metrics as well; add library version 2022-04-12 12:01:07 -04:00
Matt Bray
66693280ec expose GC_metrics.get_runtime_attributes 2022-04-12 16:25:52 +01:00
Matt Bray
bf4ac37f21 feat: use runtime metric conventions; add runtime attributes
See https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/semantic_conventions/runtime-environment-metrics.md#runtime-environment-specific-metrics---processruntimeenvironment
2022-04-12 16:08:58 +01:00
Simon Cruanes
1ca14b3a51
fix: name of metrics 2022-04-11 18:16:50 -04:00