1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-07-01 20:25:09 +02:00
Commit Graph

21 Commits

Author SHA1 Message Date
3068b1213e feat(otel): add support for opentelemetry @0.15 (#26)
* feat(otel): add support for opentelemetry @0.15

* add otel_15 to macro

* Add missing docs and readme entry for OTEL 0.15
2021-07-13 09:30:40 +01:00
72aa916fe7 reduce imports (#27) 2021-07-13 07:19:41 +01:00
d5bb73125b Enabled OTEL 0.14 by default. 2021-07-03 18:44:49 +02:00
2367e71ff4 Support updated OT 0.14 / tracing-OT 0.13 crate versions (#23)
* Support updated OT 0.14 / tracing-OT 0.12 crate versions

Add support for opentelemetry 0.14 and tracing-opentelemetry 0.13.
Make corresponding changes to the features, docs, and examples.
Due to the use of two different versions of the same packages, some
reorganization had to be done for the internal modules.

Addresses issue #22.

* Re-export versioned set_otel_parent `fn`s for use in macro
2021-07-03 18:33:59 +02:00
a3d4182ce0 Guess who made a bit of a mess releasing the new version... I did! 2021-06-20 20:17:45 +02:00
32529f6dd3 Update README with the right versions. 2021-06-20 20:13:58 +02:00
0034e3bda8 Update to actix-web 4.0.0-beta.7. (#24)
Add two new error types implementing ResponseError, as required, for our extractors.

Add public docs for new errors.

Co-authored-by: LukeMathWalker <rust@lpalmieri.com>
2021-06-20 20:03:48 +02:00
737a718467 Properly extract errors coming from handlers. 2021-04-28 22:19:32 +01:00
e110e6cf8d Add error details. 2021-04-28 21:23:53 +01:00
034ef8d0c9 Fix docs. 2021-04-25 12:44:22 +01:00
1e8949fa0d Release 0.4.0 beta.1 (#16)
* Add examples links.

* Bump minor version.

* Add note on version.

* Update README.

* Add badges.

* Add license blurb.
2021-04-25 12:32:59 +01:00
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
56a0b1aa4c Add HTTP method to span fields (#12) 2021-03-23 11:13:29 +00:00
466b8a65d2 Update to the latest actix-web beta. (#8)
Co-authored-by: LukeMathWalker <contact@palmieri.com>
2021-02-11 08:57:08 +00:00
a66fecf020 Update actix_web to 4.0 (#7) 2021-01-24 15:42:33 +00:00
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
267b38466a Fix example. 2020-09-28 08:49:56 +01:00
22e7c06486 Fix documentation links. 2020-09-27 16:47:25 +01:00
209ed46498 Update to latest version of actix-web. 2020-09-27 16:46:31 +01:00
5da38fa16d Add request id 2020-09-27 16:41:22 +01:00
a60c530fd5 First release. 2020-09-27 16:27:51 +01:00