Skip to content

Commit 2b1ded8

Browse files
committed
Squash merge for adding KVP functionality via tracing and repo instrumentation across spans and diagnostic events.
1 parent aae7c04 commit 2b1ded8

File tree

8 files changed

+834
-23
lines changed

8 files changed

+834
-23
lines changed

Cargo.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,28 @@ anyhow = "1.0.81"
1414
tokio = { version = "1", features = ["full"] }
1515
tracing-subscriber = { version = "0.3.18", features = ["env-filter"] }
1616
tracing = "0.1.40"
17+
tracing-opentelemetry = "0.18.0"
1718
# We work fine with any version of 4, but 4.5 bumped MSRV to 1.74
1819
clap = { version = "<=4.4", features = ["derive", "cargo", "env"] }
20+
sys-info = "0.9"
1921

2022
[dev-dependencies]
2123
# Purely for the MSRV requirement.
2224
assert_cmd = "<=2.0.13"
2325
predicates = "<=3.1.0"
2426
predicates-core = "<=1.0.6"
2527
predicates-tree = "<=1.0.9"
28+
opentelemetry_sdk = "0.21"
29+
opentelemetry = "0.21"
2630

2731
[dependencies.libazureinit]
2832
path = "libazureinit"
2933
version = "0.1.0"
3034

35+
[dependencies.azurekvp]
36+
path = "azurekvp"
37+
version = "0.1.0"
38+
3139
[profile.dev]
3240
incremental = true
3341

@@ -42,6 +50,7 @@ path = "tests/functional_tests.rs"
4250
[workspace]
4351
members = [
4452
"libazureinit",
53+
"azurekvp",
4554
]
4655

4756
[features]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ Any use of third-party trademarks or logos are subject to those third-party's po
4747

4848
## libazureinit
4949

50-
For common library used by this reference implementation, please refer to [libazureinit](https://github.com/Azure/azure-init/tree/main/libazureinit/).
50+
For common library used by this reference implementation, please refer to [libazureinit](https://github.com/Azure/azure-init/tree/main/libazureinit/).

azurekvp/Cargo.toml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
[package]
2+
name = "azurekvp"
3+
version = "0.1.1"
4+
edition = "2021"
5+
repository = "https://github.com/Azure/azure-init/"
6+
homepage = "https://github.com/Azure/azure-init/"
7+
license = "MIT"
8+
description = "A binary library for implementing OpenTelemetry KVP for Linux VMs on Azure."
9+
10+
11+
[dependencies]
12+
opentelemetry = "0.18.0"
13+
nix = "0.26"
14+
chrono = "0.4"
15+
uuid = { version = "1.2", features = ["v4"] }
16+
tracing-subscriber = { version = "0.3.18", features = ["env-filter"] }
17+
tracing = "0.1.40"
18+
tracing-opentelemetry = "0.18.0"
19+
anyhow = "1.0.81"
20+
tokio = { version = "1", features = ["full"] }
21+
22+
[dev-dependencies]
23+
tempfile = "3.3"
24+
sys-info = "0.9"
25+
26+
[lib]
27+
name = "azurekvp"
28+
path = "src/lib.rs"

0 commit comments

Comments
 (0)