doc: update readme to list env vars

This commit is contained in:
Simon Cruanes 2022-04-19 13:28:00 -04:00
parent 9d4bb5a97f
commit 31933c9369
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4

View file

@ -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 ## License
MIT MIT