diff --git a/example/otlp-traces-http/README.md b/example/otlp-traces-http/README.md new file mode 100644 index 0000000..f3fd860 --- /dev/null +++ b/example/otlp-traces-http/README.md @@ -0,0 +1,19 @@ +# Configuring OTLP traces exporter for Uptrace + +This example shows how to configure +[OTLP](https://opentelemetry-python.readthedocs.io/en/latest/exporter/otlp/otlp.html) to export +traces to Uptrace using HTTP transport. + +Install dependencies: + +```shell +pip install -r requirements.txt +``` + +To run this example, you need to +[create an Uptrace project](https://uptrace.dev/get/get-started.html) and pass your project DSN via +`UPTRACE_DSN` env variable: + +```go +UPTRACE_DSN=https://@api.uptrace.dev/ ./main.py +``` diff --git a/example/otlp-traces/README.md b/example/otlp-traces/README.md index 24664ca..8bef4dd 100644 --- a/example/otlp-traces/README.md +++ b/example/otlp-traces/README.md @@ -2,7 +2,7 @@ This example shows how to configure [OTLP](https://opentelemetry-python.readthedocs.io/en/latest/exporter/otlp/otlp.html) to export -traces to Uptrace. +traces to Uptrace using gRPC transport. Install dependencies: