Skip to content

Commit 3ae882e

Browse files
committed
Fix CI
1 parent 31c8e51 commit 3ae882e

6 files changed

Lines changed: 25 additions & 56 deletions

File tree

examples/pokemon-service/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ edition = "2021"
55
publish = false
66
authors = ["Smithy-rs Server Team <smithy-rs-server@amazon.com>"]
77
description = "A smithy Rust service to retrieve information about Pokémon."
8+
rust-version = "1.88"
89

910
[dependencies]
1011
clap = { version = "4", features = ["derive"] }
@@ -14,7 +15,7 @@ tokio = "1.26.0"
1415
tower = "0.4"
1516
tracing = "0.1"
1617
tracing-appender = "0.2"
17-
metrique = { version = "=0.1.9", features = ["emf"] }
18+
metrique = { version = "=0.1", features = ["emf"] }
1819

1920
# Local paths
2021
pokemon-service-server-sdk = { path = "../pokemon-service-server-sdk/", features = ["request-id"]}

rust-runtime/Cargo.lock

Lines changed: 1 addition & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust-runtime/aws-smithy-http-server-metrics-macro/Cargo.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ proc-macro = true
44
[package]
55
name = "aws-smithy-http-server-metrics-macro"
66
version = "0.1.0"
7+
authors = [
8+
"AWS Rust SDK Team <aws-sdk-rust@amazon.com>",
9+
"Jason Gin <jasgin@amazon.com>",
10+
]
11+
description = "Server metrics via metrique integration."
712
edition = "2021"
13+
license = "Apache-2.0"
14+
repository = "https://github.com/smithy-lang/smithy-rs"
15+
rust-version = "1.88"
816

917
[dependencies]
Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
[package]
22
name = "aws-smithy-http-server-metrics"
33
version = "0.1.0"
4+
authors = [
5+
"AWS Rust SDK Team <aws-sdk-rust@amazon.com>",
6+
"Jason Gin <jasgin@amazon.com>",
7+
]
8+
description = "Server metrics via metrique integration."
49
edition = "2021"
10+
license = "Apache-2.0"
11+
repository = "https://github.com/smithy-lang/smithy-rs"
12+
rust-version = "1.88"
513

614
[dependencies]
7-
# Pinning these to versions with MSRV 1.88.0
8-
metrique = "=0.1.9"
9-
metrique-macro = "=0.1.6"
10-
metrique-core = "=0.1.8"
11-
metrique-writer = "=0.1.10"
12-
metrique-writer-core = "=0.1.7"
13-
metrique-service-metrics = "=0.1.9"
14-
metrique-timesource = "=0.1.5"
15-
metrique-writer-macro = "=0.1.4"
16-
metrique-writer-format-emf = "=0.1.9"
15+
metrique = "0.1"
16+
metrique-writer = "0.1"
17+
metrique-core = "0.1"
1718

1819
tower = "0.5"
1920
futures = "0.3"
@@ -23,3 +24,4 @@ hyper = "0.14"
2324
thiserror = "2"
2425

2526
aws-smithy-http-server = { path = "../aws-smithy-http-server" }
27+
aws-smithy-http-server-metrics-macro = { path = "../aws-smithy-http-server-metrics-macro" }

rust-runtime/aws-smithy-http-server-metrics/src/default.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
use std::fmt::Debug;
22

3+
use metrique::unit_of_work::metrics;
34
use metrique::Slot;
45
use metrique::SlotGuard;
5-
use metrique_macro::metrics;
66

77
#[metrics]
88
#[derive(Default)]

rust-runtime/aws-smithy-http-server-metrics/src/layer/builder.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,11 @@ use std::marker::PhantomData;
22

33
use http::Request;
44
use http::Response;
5-
use metrique::writer::EntrySink;
65
use metrique::AppendAndCloseOnDrop;
76
use metrique::DefaultSink;
87
use metrique::OnParentDrop;
9-
use metrique::RootEntry;
108
use metrique::Slot;
119

12-
use crate::default::DefaultMetricsEntry;
1310
use crate::default::DefaultRequestMetrics;
1411
use crate::default::DefaultRequestMetricsConfig;
1512
use crate::default::DefaultRequestMetricsExtension;
@@ -250,7 +247,7 @@ macro_rules! impl_build_for_state {
250247
($state:ty) => {
251248
impl<S, I, Rq, Rs> DefaultMetricsBuildExt<S, I, Rq, Rs> for MetricsLayerBuilder<$state, DefaultMetrics, S, I, Rq, Rs>
252249
where
253-
S: EntrySink<RootEntry<DefaultMetricsEntry>> + Send + Sync + 'static,
250+
S: MetriqueEntrySink<DefaultMetrics>,
254251
I: InitMetrics<DefaultMetrics, S>,
255252
Rq: SetRequestMetrics<DefaultMetrics, S>,
256253
Rs: SetResponseMetrics<DefaultMetrics, S>,

0 commit comments

Comments
 (0)