mirror of
https://github.com/actix/actix-extras.git
synced 2025-02-22 18:33:18 +01:00
Update to actix-web v4
This commit is contained in:
parent
4881377c9e
commit
b6394ad9fd
@ -3,7 +3,7 @@ members = [".", "examples/opentelemetry", "examples/custom-root-span"]
|
||||
|
||||
[package]
|
||||
name = "tracing-actix-web"
|
||||
version = "0.5.0-rc.3"
|
||||
version = "0.5.0"
|
||||
authors = ["Luca Palmieri <rust@lpalmieri.com>"]
|
||||
edition = "2018"
|
||||
|
||||
@ -28,7 +28,7 @@ opentelemetry_0_17 = ["opentelemetry_0_17_pkg", "tracing-opentelemetry_0_17_pkg"
|
||||
emit_event_on_error = []
|
||||
|
||||
[dependencies]
|
||||
actix-web = { version = "=4.0.0-rc.3", default-features = false }
|
||||
actix-web = { version = "4", default-features = false }
|
||||
pin-project = "1.0.0"
|
||||
tracing = "0.1.19"
|
||||
tracing-futures = "0.2.4"
|
||||
|
@ -37,9 +37,9 @@ Add `tracing-actix-web` to your dependencies:
|
||||
```toml
|
||||
[dependencies]
|
||||
# ...
|
||||
tracing-actix-web = "=0.5.0-rc.3"
|
||||
tracing-actix-web = "0.5"
|
||||
tracing = "0.1"
|
||||
actix-web = "=4.0.0-rc.3"
|
||||
actix-web = "4"
|
||||
```
|
||||
|
||||
`tracing-actix-web` exposes three feature flags:
|
||||
@ -51,8 +51,6 @@ actix-web = "=4.0.0-rc.3"
|
||||
- `opentelemetry_0_17`: same as above but using `opentelemetry` 0.17;
|
||||
- `emit_event_on_error`: emit a [`tracing`] event when request processing fails with an error (enabled by default).
|
||||
|
||||
`tracing-actix-web` will release `0.5.0`, going out of beta, as soon as `actix-web` releases a stable `4.0.0`.
|
||||
|
||||
## Quickstart
|
||||
|
||||
```rust,compile_fail
|
||||
|
@ -7,7 +7,7 @@ edition = "2018"
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
actix-web = "=4.0.0-rc.3"
|
||||
actix-web = "4"
|
||||
opentelemetry = { version = "0.17", features = ["rt-tokio-current-thread"] }
|
||||
opentelemetry-jaeger = { version = "0.16", features = ["rt-tokio-current-thread"] }
|
||||
tracing-opentelemetry = { version = "0.17" }
|
||||
|
@ -7,7 +7,7 @@ edition = "2018"
|
||||
license = "MIT/Apache-2.0"
|
||||
|
||||
[dependencies]
|
||||
actix-web = "=4.0.0-rc.3"
|
||||
actix-web = "4"
|
||||
tracing = "0.1.19"
|
||||
opentelemetry = { version = "0.17", features = ["rt-tokio-current-thread"] }
|
||||
opentelemetry-jaeger = { version = "0.16", features = ["rt-tokio-current-thread"] }
|
||||
|
@ -10,9 +10,9 @@
|
||||
//! ```toml
|
||||
//! [dependencies]
|
||||
//! # ...
|
||||
//! tracing-actix-web = "=0.5.0-rc.3"
|
||||
//! tracing-actix-web = "0.5"
|
||||
//! tracing = "0.1"
|
||||
//! actix-web = "=4.0.0-rc.3"
|
||||
//! actix-web = "4"
|
||||
//! ```
|
||||
//!
|
||||
//! `tracing-actix-web` exposes three feature flags:
|
||||
@ -24,8 +24,6 @@
|
||||
//! - `opentelemetry_0_17`: same as above but using `opentelemetry` 0.17;
|
||||
//! - `emit_event_on_error`: emit a [`tracing`] event when request processing fails with an error (enabled by default).
|
||||
//!
|
||||
//! `tracing-actix-web` will release `0.5.0`, going out of beta, as soon as `actix-web` releases a stable `4.0.0`.
|
||||
//!
|
||||
//! ## Quickstart
|
||||
//!
|
||||
//! ```rust,compile_fail
|
||||
|
Loading…
x
Reference in New Issue
Block a user