Skip to content

Commit 820bb0a

Browse files
committed
Upgrade to opentelemetry-rust 0.29
1 parent a883322 commit 820bb0a

File tree

4 files changed

+23
-14
lines changed

4 files changed

+23
-14
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## [v0.22.0](https://github.com/OutThereLabs/actix-web-opentelemetry/compare/v0.22.0..v0.21.0)
4+
5+
### Changed
6+
7+
* Update opentelemetry packages to 0.29 (#192)
8+
39
## [v0.21.0](https://github.com/OutThereLabs/actix-web-opentelemetry/compare/v0.21.0..v0.20.1)
410

511
### Changed

Cargo.toml

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "actix-web-opentelemetry"
3-
version = "0.21.0"
3+
version = "0.22.0"
44
authors = ["Julian Tescher <julian@outtherelabs.com>"]
55
description = "OpenTelemetry integration for Actix Web apps"
66
homepage = "https://github.com/OutThereLabs/actix-web-opentelemetry"
@@ -35,14 +35,14 @@ awc = { version = "3.0", optional = true, default-features = false, features = [
3535
futures-util = { version = "0.3", default-features = false, features = [
3636
"alloc",
3737
] }
38-
opentelemetry = { version = "0.28", default-features = false, features = [
38+
opentelemetry = { version = "0.29", default-features = false, features = [
3939
"trace",
4040
] }
41-
opentelemetry-prometheus = { version = "0.28", optional = true }
42-
opentelemetry-semantic-conventions = { version = "0.28", features = [
41+
opentelemetry-prometheus = { version = "0.29", optional = true }
42+
opentelemetry-semantic-conventions = { version = "0.29", features = [
4343
"semconv_experimental",
4444
] }
45-
opentelemetry_sdk = { version = "0.28", optional = true, features = [
45+
opentelemetry_sdk = { version = "0.29", optional = true, features = [
4646
"metrics",
4747
"rt-tokio-current-thread",
4848
] }
@@ -57,13 +57,13 @@ actix-web-opentelemetry = { path = ".", features = [
5757
"sync-middleware",
5858
"awc",
5959
] }
60-
opentelemetry_sdk = { version = "0.28", features = [
60+
opentelemetry_sdk = { version = "0.29", features = [
6161
"spec_unstable_metrics_views",
6262
"metrics",
6363
"rt-tokio-current-thread",
6464
] }
65-
opentelemetry-otlp = { version = "0.28", features = ["grpc-tonic"] }
66-
opentelemetry-stdout = { version = "0.28", features = ["trace", "metrics"] }
65+
opentelemetry-otlp = { version = "0.29", features = ["grpc-tonic"] }
66+
opentelemetry-stdout = { version = "0.29", features = ["trace", "metrics"] }
6767

6868
[package.metadata.docs.rs]
6969
all-features = true

src/client.rs

+6-3
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,12 @@ use opentelemetry::{
2323
trace::{SpanKind, Status, TraceContextExt, Tracer},
2424
Context, KeyValue,
2525
};
26-
use opentelemetry_semantic_conventions::trace::{
27-
HTTP_REQUEST_METHOD, HTTP_RESPONSE_STATUS_CODE, MESSAGING_MESSAGE_BODY_SIZE, SERVER_ADDRESS,
28-
SERVER_PORT, URL_FULL, USER_AGENT_ORIGINAL,
26+
use opentelemetry_semantic_conventions::{
27+
attribute::MESSAGING_MESSAGE_BODY_SIZE,
28+
trace::{
29+
HTTP_REQUEST_METHOD, HTTP_RESPONSE_STATUS_CODE, SERVER_ADDRESS, SERVER_PORT, URL_FULL,
30+
USER_AGENT_ORIGINAL,
31+
},
2932
};
3033
use serde::Serialize;
3134
use std::mem;

src/util.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ use actix_web::{
44
http::{Method, Version},
55
};
66
use opentelemetry::{KeyValue, Value};
7-
use opentelemetry_semantic_conventions::trace::{
8-
CLIENT_ADDRESS, NETWORK_PEER_ADDRESS, MESSAGING_MESSAGE_BODY_SIZE, HTTP_REQUEST_METHOD, HTTP_ROUTE,
7+
use opentelemetry_semantic_conventions::{attribute::MESSAGING_MESSAGE_BODY_SIZE, trace::{
8+
CLIENT_ADDRESS, HTTP_REQUEST_METHOD, HTTP_ROUTE, NETWORK_PEER_ADDRESS,
99
NETWORK_PROTOCOL_VERSION, SERVER_ADDRESS, SERVER_PORT, URL_PATH, URL_QUERY, URL_SCHEME,
1010
USER_AGENT_ORIGINAL,
11-
};
11+
}};
1212

1313
#[cfg(feature = "awc")]
1414
#[inline]

0 commit comments

Comments
 (0)