1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-02-23 10:53:02 +01:00

24 Commits

Author SHA1 Message Date
Luca Palmieri
7da6ea91ac
Adopt OpenTelemetry's semantic convention (#15)
* 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>
2021-04-25 12:19:27 +01:00
LukeMathWalker
1025372493 Update to latest actix-web 2021-04-21 08:57:34 +01:00
Lucas Sunsi
56a0b1aa4c
Add HTTP method to span fields (#12) 2021-03-23 11:13:29 +00:00
LukeMathWalker
902f7d75d3 (cargo-release) version 0.3.0-beta.3 2021-03-21 15:16:25 +00:00
LukeMathWalker
444ce4ab7c (cargo-release) version 0.3.0-beta.2 2021-03-21 15:15:20 +00:00
LukeMathWalker
05f73bd4c2 Update to latest actix-web beta 2021-03-21 15:14:49 +00:00
Luca Palmieri
466b8a65d2
Update to the latest actix-web beta. (#8)
Co-authored-by: LukeMathWalker <contact@palmieri.com>
2021-02-11 08:57:08 +00:00
LukeMathWalker
401faaf01d (cargo-release) version 0.3.0-beta.1 2021-01-24 15:46:23 +00:00
LukeMathWalker
8792975f3e Bump minor version for beta release based on newer actix-web beta release 2021-01-24 15:46:06 +00:00
P G Nithin Reddy
a66fecf020
Update actix_web to 4.0 (#7) 2021-01-24 15:42:33 +00:00
Valentin Brandl
cae596811d
Make request ID extractable in request handlers (#3)
* 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>
2020-10-31 15:32:45 +00:00
Luca Palmieri
ccb5c43deb
Merge pull request #4 from mkulke/fix-missing-tracing-log-in-readme
fix missing tracing-log import in Readme
2020-10-30 18:36:56 +00:00
Magnus Kulke
abebf4d394
fix missing tracing-log import in Readme 2020-10-30 18:56:56 +01:00
Luca Palmieri
b31968312b (cargo-release) start next development iteration 0.2.2-alpha.0 2020-09-28 08:51:58 +01:00
Luca Palmieri
fe02b5b686 (cargo-release) version 0.2.1 2020-09-28 08:51:03 +01:00
Luca Palmieri
3c2d3cea39 Bump version in README. 2020-09-28 08:50:52 +01:00
Luca Palmieri
267b38466a Fix example. 2020-09-28 08:49:56 +01:00
Luca Palmieri
34bc4d713f (cargo-release) start next development iteration 0.2.1-alpha.0 2020-09-27 16:48:23 +01:00
Luca Palmieri
22e7c06486 Fix documentation links. 2020-09-27 16:47:25 +01:00
Luca Palmieri
209ed46498 Update to latest version of actix-web. 2020-09-27 16:46:31 +01:00
Luca Palmieri
993b6e2f68 (cargo-release) start next development iteration 0.1.2-alpha.0 2020-09-27 16:42:22 +01:00
Luca Palmieri
5da38fa16d Add request id 2020-09-27 16:41:22 +01:00
Luca Palmieri
4ef6f95608 Add spacing. 2020-09-27 16:29:00 +01:00
Luca Palmieri
a60c530fd5 First release. 2020-09-27 16:27:51 +01:00