mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-08 03:47:59 -04:00
doc: update readme to list env vars
This commit is contained in:
parent
9d4bb5a97f
commit
31933c9369
1 changed files with 15 additions and 0 deletions
15
README.md
15
README.md
|
|
@ -40,6 +40,21 @@ let foo x =
|
|||
(* … *)
|
||||
```
|
||||
|
||||
## Configuration
|
||||
|
||||
The library is configurable via `Opentelemetry.Config`, via the standard
|
||||
opentelemetry env variables, or with some custom environment variables.
|
||||
|
||||
- `OTEL_EXPORTER_OTLP_ENDPOINT` sets the http endpoint to send signals to
|
||||
- `OTEL_OCAML_DEBUG=1` to print some debug messages from the opentelemetry library ide
|
||||
- `OTEL_RESOURCE_ATTRIBUTES` sets a comma separated list of custom resource attributes
|
||||
|
||||
## Collector opentelemetry-client-ocurl
|
||||
|
||||
This is a synchronous collector that uses the http+protobuf format
|
||||
to send signals (metrics, traces) to some other collector (eg. `otelcol`
|
||||
or the datadog agent).
|
||||
|
||||
## License
|
||||
|
||||
MIT
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue