Skip to content

Commit 2f05030

Browse files
authored
feat(acp-nats): add OpenTelemetry metrics to initialize handler (#11)
Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
1 parent cfdea48 commit 2f05030

7 files changed

Lines changed: 282 additions & 25 deletions

File tree

rsworkspace/Cargo.lock

Lines changed: 94 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rsworkspace/crates/acp-nats/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ edition = "2024"
55

66
[dependencies]
77
agent-client-protocol = "0.9.4"
8+
opentelemetry = "0.31.0"
89
async-nats = "0.45.0"
910
async-trait = "0.1.89"
1011
serde = { version = "1.0.228", features = ["derive"] }
@@ -13,6 +14,9 @@ tokio = { version = "1.49.0", features = ["rt", "macros", "sync", "time"] }
1314
tracing = "0.1.44"
1415

1516
trogon-nats = { path = "../trogon-nats" }
17+
trogon-std = { path = "../trogon-std" }
1618

1719
[dev-dependencies]
20+
opentelemetry_sdk = { version = "0.31.0", features = ["rt-tokio", "metrics", "testing"] }
1821
trogon-nats = { path = "../trogon-nats", features = ["test-support"] }
22+
trogon-std = { path = "../trogon-std", features = ["test-support"] }

0 commit comments

Comments
 (0)