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

6 Commits

Author SHA1 Message Date
Thales
0d7f7f6231
Update actix deps to beta.8 (#25) 2021-07-03 18:34:45 +02:00
Brian Rogers
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
Luca Palmieri
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
Dmitriy
077bb85088
Update actix dependencies (#20) 2021-06-20 18:08:03 +01:00
Luca Palmieri
e5b3ffca7c Downgrade actix-web to beta5 2021-04-28 20:59:41 +01:00
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