mirror of
https://github.com/actix/actix-extras.git
synced 2025-02-22 18:33:18 +01:00
* Add http.route. * Align all fields with OpenTelemetry's semantic conventions. * Add span kind. * Emit event for errors. Add OTEL status code. * Create otel.status_code field as empty. * Fix errors. * Add (feature-gated) support for OpenTelemetry span propagation. * Capture the trace id as an attribute on the span. * Change message. * Log the newly-generated trace id if there is no parent context. * Define a root_span macro as a stepping stone to allow crate users to add their own fields to the root span. * Add comments. * mut is no longer necessary. * Allow users to customise generation of the root span. Split recording fields on span end from emission of log record. Make log record on error optional via feature flag. * Provide constructor + default implementation. * Explode into multiple modules. Fix various paths/private imports in root_span. * Rename module to root_span_macro. * Add a new extractor to retrieve the root span. * Document crate. * Docs! * Add section on OTEL. * Mention actix-web-opentelemetry. * Add OpenTelemetry example. * Improve readme. * Add custom root span example. Co-authored-by: LukeMathWalker <contact@palmieri.com>
39 lines
1.1 KiB
TOML
39 lines
1.1 KiB
TOML
[workspace]
|
|
members = [".", "examples/opentelemetry", "examples/custom-root-span"]
|
|
|
|
[package]
|
|
name = "tracing-actix-web"
|
|
version = "0.3.0-beta.3"
|
|
authors = ["Luca Palmieri <rust@lpalmieri.com>"]
|
|
edition = "2018"
|
|
|
|
license = "MIT/Apache-2.0"
|
|
|
|
repository = "https://github.com/LukeMathWalker/tracing-actix-web"
|
|
documentation = "https://docs.rs/tracing-actix-web/"
|
|
readme = "README.md"
|
|
|
|
description = "Structured logging middleware for actix-web."
|
|
|
|
keywords = ["http", "actix-web", "tracing", "logging"]
|
|
categories = ["asynchronous", "web-programming"]
|
|
|
|
[features]
|
|
default = ["opentelemetry_0_13", "emit_event_on_error"]
|
|
opentelemetry_0_13 = ["opentelemetry", "tracing-opentelemetry"]
|
|
emit_event_on_error = []
|
|
|
|
[dependencies]
|
|
actix-web = "4.0.0-beta.6"
|
|
tracing = "0.1.19"
|
|
tracing-futures = "0.2.4"
|
|
futures = "0.3.5"
|
|
uuid = { version = "0.8.1", features = ["v4"] }
|
|
opentelemetry = { version = "0.13", optional = true }
|
|
tracing-opentelemetry = { version = "0.12", optional = true }
|
|
|
|
[dev-dependencies]
|
|
tracing-subscriber = { version = "0.2.12", features = ["registry", "env-filter"] }
|
|
tracing-bunyan-formatter = "0.1.6"
|
|
tracing-log = "0.1.1"
|