1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-04-22 09:54:53 +02:00

54 Commits

Author SHA1 Message Date
John Vandenberg
0fdbd40595
Expose StreamSpan (#99) 2023-03-19 11:21:45 +00:00
Harish Rajagopal
4007669c7a
Fixed version number in lib.rs (#96) 2022-12-23 12:02:21 +01:00
Harish Rajagopal
8e5b09b379
Bound type-param of RootSpanBuilder::on_request_end (#93) 2022-12-19 10:54:32 +01:00
Luca Palmieri
0eb13e9794
Allow level customisation (#91)
* Add the possibility to specify the span level for the root span.

* Improve docs.
2022-10-29 15:09:20 +02:00
Luca Palmieri
01c054148a
Update lib.rs 2022-09-20 10:37:57 +02:00
Riley
2ffc110e2f
Support opentelemetry 0.18 (#89)
* Support opentelemetry 0.18

* Update github workflow
2022-09-20 10:36:55 +02:00
Luca Palmieri
0726f5b49a Update version in READMEs 2022-06-28 20:34:40 +01:00
Luca P
b6394ad9fd Update to actix-web v4 2022-02-25 23:01:16 +00:00
Riley
4881377c9e
Support actix-web rc.3 (#76) 2022-02-11 08:59:42 +00:00
Riley
b3f3792c2d
Add support for opentelemetry 0.17, actix-web rc.2 (#74)
* Add support for opentelemetry 0.17, actix-web rc.2

* Enable actix-web macros for tests

* Link to newest opentelemetry in readme

* Add opentelemetry_0_17 to workflows
2022-02-04 09:18:54 +00:00
Riley
ed35dc6996
Actix Web rc.1 (#73) 2022-02-01 09:30:09 +00:00
Riley
d0f10192cc
update actix web to beta 21 (#71)
* Bump actix web

* Bump crate version

* Update version numbers in readme, lib.rs
2022-01-23 22:14:20 +00:00
Luca P
860adc19f7 Prepare new release 2022-01-18 09:55:01 +00:00
Santiago
56aa211dd9
fix: update actix-web to beta.20 (#69) 2022-01-18 09:54:08 +00:00
LukeMathWalker
06f07f30ca Update actix-web, prepare new release 2022-01-05 18:05:28 +00:00
LukeMathWalker
306dc85654 Prepare release 2021-12-30 09:29:01 +01:00
Rob Ede
7c2f67fc90
Updated actix-web dependency to 4.0.0-beta.18 (#66) 2021-12-30 09:22:36 +01:00
LukeMathWalker
224d92e7cc Prepare new release 2021-12-28 10:57:49 +01:00
LukeMathWalker
a95320bd50 Update version 2021-12-18 17:48:59 +00:00
ondra05
f0882677fe
Updated actix-web dependency to 4.0.0-beta.15 (#63) 2021-12-18 13:11:52 +00:00
LukeMathWalker
22fa66961c Update versions in docs 2021-12-13 15:46:29 +00:00
LukeMathWalker
ae7040a54e Prepare 0.5.0-beta.4 release 2021-12-01 09:50:00 +00:00
DW
d726662f80
Update to latest actix-web (#59) 2021-12-01 09:48:51 +00:00
Luca Palmieri
0838f1758f
Update to latest actix-web + improve README clarity around identifiers (#58)
* Update documentation to clarify what identifier should be used for what.

* Update to latest actix-web beta.
2021-11-24 11:02:05 +00:00
LukeMathWalker
a7ca5dab3a Update versions 2021-11-18 20:00:24 +00:00
LukeMathWalker
b811e065cb Breaking release. 2021-10-27 09:51:36 +01:00
LukeMathWalker
6f9dcc8930 Prepare release 2021-10-27 09:36:03 +01:00
LukeMathWalker
8d0ab6fcef Prepare release 2021-10-21 09:49:42 +01:00
LukeMathWalker
be29e11990 Prepare release 2021-10-10 13:25:19 +01:00
LukeMathWalker
5517c39118 Bump version in docs 2021-09-21 10:34:11 +02:00
LukeMathWalker
7b510a7f32 Prepare release 2021-09-10 11:18:00 +02:00
Luca Palmieri
050bfe058d
Otel 16 (#33)
* Use matrix to test all versions.

* Add support for OTEL 0.16

* Typo.

* Fail on warnings.

* Inject headers when using OTEL 0.16.

* Fix.
2021-08-30 13:36:15 +02:00
LukeMathWalker
a10427b59c Change version in documentation. 2021-08-13 11:11:58 +01:00
LukeMathWalker
a83919a719 Fix linter errors. 2021-08-13 11:02:32 +01:00
LukeMathWalker
159ffcde94 Ensure compilation fails if multiple incompatible OTEL flags are specified. 2021-08-13 10:56:35 +01:00
Nick
431788e4d7
use import alias for otel versions (#29) 2021-08-13 10:48:23 +01:00
LukeMathWalker
cd11f358cd Do not enable opentelemetry by default until they release 1.0. 2021-07-13 09:33:59 +01:00
Kirill Mironov
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
LukeMathWalker
d5bb73125b Enabled OTEL 0.14 by default. 2021-07-03 18:44:49 +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
LukeMathWalker
a3d4182ce0 Guess who made a bit of a mess releasing the new version... I did! 2021-06-20 20:17:45 +02:00
LukeMathWalker
32529f6dd3 Update README with the right versions. 2021-06-20 20:13:58 +02:00
LukeMathWalker
034ef8d0c9 Fix docs. 2021-04-25 12:44:22 +01:00
Luca Palmieri
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
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
Lucas Sunsi
56a0b1aa4c
Add HTTP method to span fields (#12) 2021-03-23 11:13:29 +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
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
267b38466a Fix example. 2020-09-28 08:49:56 +01:00