Simon Cruanes
b676783100
format
2022-05-05 12:09:19 -04:00
Simon Cruanes
35ae22746d
Merge pull request #21 from imandra-ai/fix-rand-trace-id
...
Fix rand trace
2022-05-04 14:23:00 -04:00
Simon Cruanes
60c6386742
chore: try to fix gh-pages
2022-05-04 12:56:22 -04:00
Simon Cruanes
ff5b1435da
chore: add ocamlformat config
2022-05-04 12:47:50 -04:00
Simon Cruanes
a718f049aa
fix: ensure we can always produce random trace_id/span_id
2022-05-04 12:47:33 -04:00
Simon Cruanes
6de3622a42
chore: try to fix gh-pages CI action
2022-05-04 12:46:08 -04:00
Simon Cruanes
e0715bd1a3
Merge pull request #20 from psafont/hackathon-2022-05-03
...
feat: Allow setting API headers
2022-05-04 11:58:12 -04:00
Pau Ruiz Safont
fa3b863625
feat: Allow setting API headers
...
This can be done through the API or by setting
OTEL_EXPORTER_OTLP_HEADERS
Signed-off-by: Pau Ruiz Safont <pau.safont@citrix.com>
2022-05-04 16:56:37 +01:00
Simon Cruanes
62d1a9cec7
fix codeowners
2022-05-04 11:22:52 -04:00
Simon Cruanes
f1db92a817
Merge pull request #18 from imandra-ai/ocaml-protoc-as-lint
...
Ocaml protoc as lint
2022-05-04 11:19:26 -04:00
Simon Cruanes
c853ffb6ff
codeowners
2022-05-04 11:19:16 -04:00
Simon Cruanes
590ae44fe6
chore: ci
2022-05-03 13:52:21 -04:00
Simon Cruanes
dbd23b2f7d
format
2022-05-03 13:52:21 -04:00
Simon Cruanes
7e4a1adf83
ci: use depext
2022-05-03 13:52:21 -04:00
Simon Cruanes
e5b5da9414
chore: check for lint in CI
2022-05-03 13:52:21 -04:00
Simon Cruanes
d72763ad3c
fix CI
2022-05-03 13:52:21 -04:00
Simon Cruanes
5fefcf3ced
require pbrt only, use ocaml-protoc as a lint
2022-05-03 13:52:20 -04:00
Simon Cruanes
5944e4f9af
chore: CI
2022-05-03 13:28:32 -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
b52d7611a6
Merge pull request #19 from imandra-ai/metrics-utils
...
Metrics utils
2022-04-30 13:26:39 -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
5b3f49890b
test: use Metrics_callbacks from emit1
2022-04-29 16:50:52 -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
4bc5e2f5d1
update readme
2022-04-27 16:53:50 -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
31933c9369
doc: update readme to list env vars
2022-04-19 13:28:56 -04:00
Simon Cruanes
9d4bb5a97f
feat: debug the library is set via OTEL_OCAML_DEBUG
2022-04-19 13:28:55 -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
c01879c4b0
refactor(client): split into several modules
2022-04-13 16:28:23 -04:00
Simon Cruanes
06cbe55d11
chore: use dune 2.7 so that subst works (for the version field)
2022-04-12 16:46:26 -04:00
Simon Cruanes
20cc772682
fix
2022-04-12 14:14:36 -04:00
Simon Cruanes
3448e33d29
fix: same
2022-04-12 13:53:24 -04:00
Simon Cruanes
2c1c67bfe8
fix: emit traces, too
2022-04-12 13:50:50 -04:00
Simon Cruanes
3f3a39eee7
Merge pull request #15 from AestheticIntegration/missing-global-attrs
...
Missing global attrs in metrics
2022-04-12 13:44:17 -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
Simon Cruanes
7af92b5589
minor refactoring
2022-04-12 11:56:28 -04:00
Simon Cruanes
d69da69c48
Merge pull request #14 from AestheticIntegration/runtime-metrics
...
feat: use runtime metric conventions; add runtime attributes
2022-04-12 11:56:12 -04:00
Matt Bray
1919154085
add runtime attrs to GC stats
2022-04-12 16:26:08 +01: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
Nicola Mometto
ba70c5d71b
chore: add version
2022-04-12 15:24:59 +01:00
Simon Cruanes
1ca14b3a51
fix: name of metrics
2022-04-11 18:16:50 -04:00
Simon Cruanes
1b1b980211
test: in emit1, use GC_metrics
2022-04-11 16:33:05 -04:00
Simon Cruanes
3d0d031bcd
fix: yet another fix for emitting GC metrics
...
now, the frontend (Opentelemetry) is responsible for signalling the
backend when to emit GC stats; but the backend just samples GC metrics
on the next `tick()` and pushes them in the next batch. This saves us
from having to worry about re-entrancy and GC metrics being emitted
during the emission of something else.
2022-04-11 16:33:01 -04:00