diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b70b24c..ce46cf8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,21 +18,21 @@ jobs: name: rustfmt runs-on: ubuntu-latest steps: - - uses: actions/checkout@v7 - - uses: actions-rust-lang/setup-rust-toolchain@v2 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - uses: actions-rust-lang/setup-rust-toolchain@ecabd13d1c56bd1345c230e542e9144811ad706f # v2.0.0 with: components: rustfmt - name: Rustfmt Check - uses: actions-rust-lang/rustfmt@v1 + uses: actions-rust-lang/rustfmt@4066006ec54a31931b9b1fddfd38f2fdf2d27143 # v1.1.2 clippy: name: clippy runs-on: ubuntu-latest steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: submodules: true - - uses: actions-rust-lang/setup-rust-toolchain@v2 + - uses: actions-rust-lang/setup-rust-toolchain@ecabd13d1c56bd1345c230e542e9144811ad706f # v2.0.0 with: components: clippy - name: Clippy Check @@ -48,14 +48,14 @@ jobs: cancel-in-progress: true steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: submodules: true - name: Setup Rust toolchain uses: dtolnay/rust-toolchain@stable - - uses: Swatinem/rust-cache@v2 + - uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2 - name: Run tests run: | diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 770045d..01466cc 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -18,7 +18,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: submodules: true diff --git a/Cargo.toml b/Cargo.toml index eac88b4..d6924f8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mauth-client" -version = "0.8.0" +version = "0.8.1" authors = ["Mason Gup "] edition = "2024" rust-version = "1.88" @@ -16,7 +16,7 @@ categories = ["authentication", "web-programming"] [dependencies] reqwest = { version = "0.13", features = ["json"] } reqwest-middleware = "0.5" -reqwest-tracing = { version = "0.7.0", optional = true } +reqwest-tracing = { version = "0.7.1", optional = true } async-trait = ">= 0.1.83" url = "2" serde = { version = "1", features = ["derive"] } @@ -48,3 +48,4 @@ tracing-otel-28 = ["reqwest-tracing/opentelemetry_0_28"] tracing-otel-29 = ["reqwest-tracing/opentelemetry_0_29"] tracing-otel-30 = ["reqwest-tracing/opentelemetry_0_30"] tracing-otel-31 = ["reqwest-tracing/opentelemetry_0_31"] +tracing-otel-32 = ["reqwest-tracing/opentelemetry_0_32"] diff --git a/README.md b/README.md index 330c0d4..6a9f91c 100644 --- a/README.md +++ b/README.md @@ -209,7 +209,7 @@ client, only the first configuration loaded in a process takes effect. ### OpenTelemetry Integration -There are also optional features `tracing-otel-26` through `tracing-otel-31` +There are also optional features `tracing-otel-26` through `tracing-otel-32` that pair with the `axum-service` feature to ensure that any outgoing requests for credentials that take place in the context of an incoming web request also include the proper OpenTelemetry span information in any requests to MAudit services. Note that it is critical to use the same diff --git a/src/config.rs b/src/config.rs index 4f19e6f..7815ace 100644 --- a/src/config.rs +++ b/src/config.rs @@ -72,6 +72,7 @@ impl MAuthInfo { feature = "tracing-otel-29", feature = "tracing-otel-30", feature = "tracing-otel-31", + feature = "tracing-otel-32", ))] let builder = builder.with(reqwest_tracing::TracingMiddleware::default()); builder.build()