diff --git a/Cargo.lock b/Cargo.lock index f51c6652..57be8aaf 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1019,7 +1019,6 @@ dependencies = [ "opentelemetry-http", "opentelemetry-otlp", "opentelemetry-semantic-conventions", - "opentelemetry_api", "opentelemetry_sdk 0.22.1", "prometheus", "reqwest", diff --git a/README.md b/README.md index 0571fbb1..859270cf 100644 --- a/README.md +++ b/README.md @@ -73,9 +73,11 @@ of requests across services. To enable tracing you must: - use the SDK option `--otlp-endpoint` e.g. `http://localhost:4317`, -- set the SDK environment variable `OTLP_ENDPOINT`, or +- set the SDK environment variable `OTEL_EXPORTER_OTLP_ENDPOINT`, or - set the `tracing` environment variable `OTEL_EXPORTER_OTLP_TRACES_ENDPOINT`. +The exporter uses gRPC protocol by default. To use HTTP protocol you must set `OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf`. + For additional service information you can: - Set `OTEL_SERVICE_NAME` e.g. `ndc_hub_example` diff --git a/rust-connector-sdk/Cargo.toml b/rust-connector-sdk/Cargo.toml index 12643943..ce66c26b 100644 --- a/rust-connector-sdk/Cargo.toml +++ b/rust-connector-sdk/Cargo.toml @@ -31,7 +31,6 @@ opentelemetry = { version = "^0.22", default-features = false } opentelemetry-http = "0.11.0" opentelemetry-otlp = { version = "^0.15.0", features = ["reqwest-client", "gzip-tonic", "tls", "tls-roots", "http-proto"] } opentelemetry-semantic-conventions = "^0.14.0" -opentelemetry_api = "^0.20.0" opentelemetry_sdk = { version = "^0.22.1", features = ["rt-tokio"] } prometheus = "^0.13.3" reqwest = "^0.11.22"