{"repo":"ocaml-tracing/ocaml-opentelemetry","free":true,"listed":false,"github":"https://github.com/ocaml-tracing/ocaml-opentelemetry","clone":"git clone https://github.com/ocaml-tracing/ocaml-opentelemetry.git","description":"Instrumentation for https://opentelemetry.io","language":"OCaml","stars":58,"topics":["opentelemetry","ocaml","metrics","traces"],"license":null,"category":"analytics","readme_excerpt":"Opentelemetry This project provides an API for instrumenting server software using opentelemetry, as well as connectors to talk to opentelemetry software such as jaeger. - library opentelemetry should be used to instrument your code and possibly libraries. It doesn't communicate with anything except an exporter (default: no-op); - library opentelemetry-client-ocurl is an exporter that communicates via http+protobuf with some collector (otelcol, datadog-agent, etc.) using cURL bindings; - library opentelemetry-client-cohttp-lwt is an exporter that communicates via http+protobuf with some collector using cohttp. License MIT Features - [x] basic traces - [x] basic metrics - [x] basic logs - [ ] nice API - [x] interface with lwt - [x] sync collector relying on ocurl [x] batching, perf, etc. - [ ] async collector relying on ocurl-multi - [ ] interface with logs (carry context around) - [x] implicit scope (via vendored ambient-context , see opentelemetry.ambient-context ) Use For now, instrument traces/spans, logs, and metrics manually: Setup If you're writing a top-level application, you need to perform some initial configuration. 1. Set the [ service name ][]; 2. optionally configure [ambient-context][] with the appropriate storage for your environment — TLS, Lwt, Eio…; 3. and install an exporter (usually by calling your client library's with setup function.) For example, if your application is using Lwt, and you're using ocurl as your collector, you might do something like this:","default_branch":null,"files":null,"tree":[],"storefront":"/r/ocaml-tracing","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ocaml-tracing/ocaml-opentelemetry/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}