Skip to content

Upstream tracing-actix-web into actix-extras#468

Closed
LukeMathWalker wants to merge 171 commits intoactix:masterfrom
LukeMathWalker:tracing-actix-web
Closed

Upstream tracing-actix-web into actix-extras#468
LukeMathWalker wants to merge 171 commits intoactix:masterfrom
LukeMathWalker:tracing-actix-web

Conversation

@LukeMathWalker
Copy link
Contributor

@LukeMathWalker LukeMathWalker commented Sep 29, 2024

I tried to preserve the git history to give proper attribution to historical contributors to tracing-actix-web.
I've had to do some adjustments to your CI setup to account for tracing-actix-web's mutually exclusive features.

Luca Palmieri and others added 30 commits September 27, 2020 16:27
* Make request ID extractable in request handlers

* Remove unnecessary clone

* Implement `Display`, `Deref` and `Into` for RequestId

* Derive `Copy` for `RequestId` since `Uuid` is `Copy`

* Document `RequestId`

* Clarify, when the ID is logged

Co-authored-by: Valentin Brandl <mail+dev@vbrandl.net>
Co-authored-by: LukeMathWalker <contact@palmieri.com>
* 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>
* Add examples links.

* Bump minor version.

* Add note on version.

* Update README.

* Add badges.

* Add license blurb.
@LukeMathWalker LukeMathWalker force-pushed the tracing-actix-web branch 2 times, most recently from 2750ee8 to f0669d2 Compare September 29, 2024 09:00
@LukeMathWalker
Copy link
Contributor Author

LukeMathWalker commented Sep 29, 2024

There's a few failing jobs:

  • All the MSRV ones fail because tracing-actix-web's examples needs Rust 1.80 because of LazyLock
  • Public API diff fails because there's no tracing-actix-web in main, as far as I can see

Let me know how you want to move forward on the first one.

@JohnTitor
Copy link
Member

@LukeMathWalker 👋 Sorry for the delay! Are you still interested in this request? I see you've continued maintaining the original repo and want to make sure you still want to do it :)

@LukeMathWalker
Copy link
Contributor Author

Still happy to see it upstreamed, although I don't have time to work on it myself.

@JohnTitor JohnTitor mentioned this pull request Nov 4, 2025
4 tasks
@JohnTitor
Copy link
Member

@LukeMathWalker I've merged the repo as subtree in #615!
Will you take the future release responsibility or want the team to do so? If latter, it'd be great if you could add me to the crate owners, when you have some time 🙏

@JohnTitor
Copy link
Member

@LukeMathWalker Just following-up on this: we're ready to cut a new release for transition but need an invite on crates.io.

@LukeMathWalker
Copy link
Contributor Author

LukeMathWalker commented Jan 12, 2026

@LukeMathWalker Just following-up on this: we're ready to cut a new release for transition but need an invite on crates.io.

Sorry for the delay, just sent it!

@JohnTitor
Copy link
Member

Thank you! Confirmed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.