Add (optional) OpenTelemetry + Xray integration (#95) (#96)

This introduces all the necessary code to be able to send traces to
AWS Xray via `tracing-opentelemetry`. It can be optionally enabled
using the `xray` feature defined on this crate.

Also update the README.md with instructions on how to enable and use
this.
This commit is contained in:
Bryan Garza
2022-05-18 09:13:19 -07:00
committed by GitHub
parent 4b4ecf0310
commit 6cd697afe9
4 changed files with 106 additions and 6 deletions

View File

@@ -15,10 +15,14 @@ jobs:
- uses: actions/checkout@v2
- name: Build
run: cargo build --verbose
- name: Build with OTel feature
run: cargo build --verbose --features otel
- name: Run tests
run: cargo test --verbose
- name: Run tests with OTel feature
run: cargo test --verbose --features otel
- name: rustfmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
args: --all -- --check