Skip to content

Commit 7117e52

Browse files
committed
initial commit
1 parent 9cf7a40 commit 7117e52

File tree

11 files changed

+22
-18
lines changed

11 files changed

+22
-18
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,3 +155,19 @@ jobs:
155155
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
156156
with:
157157
fail_ci_if_error: true
158+
cargo-machete:
159+
continue-on-error: true
160+
runs-on: ubuntu-latest
161+
steps:
162+
- uses: actions/checkout@v4
163+
with:
164+
submodules: true
165+
- uses: actions-rs/toolchain@v1
166+
with:
167+
toolchain: stable
168+
override: true
169+
- uses: taiki-e/install-action@v2
170+
with:
171+
tool: cargo-machete
172+
- name: cargo machete
173+
run: cargo machete

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,6 @@ tracing = { version = ">=0.1.40", default-features = false }
5151
tracing-core = { version = ">=0.1.33", default-features = false }
5252
tracing-subscriber = { version = "0.3", default-features = false }
5353
url = { version = "2.5", default-features = false }
54+
55+
[workspace.metadata.cargo-machete]
56+
ignored = ["tracing"]

examples/logs-basic/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,8 @@ license = "Apache-2.0"
66
publish = false
77

88
[dependencies]
9-
opentelemetry = { path = "../../opentelemetry", features = ["logs"] }
109
opentelemetry_sdk = { path = "../../opentelemetry-sdk", features = ["logs"] }
1110
opentelemetry-stdout = { path = "../../opentelemetry-stdout", features = ["logs"]}
1211
opentelemetry-appender-tracing = { path = "../../opentelemetry-appender-tracing", default-features = false}
13-
opentelemetry-semantic-conventions = { path = "../../opentelemetry-semantic-conventions" }
1412
tracing = { workspace = true, features = ["std"]}
1513
tracing-subscriber = { workspace = true, features = ["registry", "std"] }

examples/metrics-advanced/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,3 @@ opentelemetry = { path = "../../opentelemetry", features = ["metrics"] }
1010
opentelemetry_sdk = { path = "../../opentelemetry-sdk", features = ["spec_unstable_metrics_views", "rt-tokio"] }
1111
opentelemetry-stdout = { path = "../../opentelemetry-stdout", features = ["metrics"] }
1212
tokio = { workspace = true, features = ["full"] }
13-
serde_json = { workspace = true }

examples/metrics-basic/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,4 @@ opentelemetry = { path = "../../opentelemetry", features = ["metrics"] }
1010
opentelemetry_sdk = { path = "../../opentelemetry-sdk", features = ["metrics", "rt-tokio"] }
1111
opentelemetry-stdout = { path = "../../opentelemetry-stdout", features = ["metrics"]}
1212
tokio = { workspace = true, features = ["full"] }
13-
serde_json = { workspace = true }
1413

examples/tracing-grpc/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,8 @@ path = "src/client.rs"
1717
opentelemetry = { path = "../../opentelemetry" }
1818
opentelemetry_sdk = { path = "../../opentelemetry-sdk", features = ["rt-tokio"] }
1919
opentelemetry-stdout = { path = "../../opentelemetry-stdout", features = ["trace"] }
20-
prost = { workspace = true }
2120
tokio = { workspace = true, features = ["full"] }
2221
tonic = { workspace = true }
23-
serde_json = { workspace = true }
2422

2523
[build-dependencies]
2624
tonic-build = { workspace = true }

examples/tracing-jaeger/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@ publish = false
99
opentelemetry = { path = "../../opentelemetry" }
1010
opentelemetry_sdk = { path = "../../opentelemetry-sdk", features = ["rt-tokio"] }
1111
opentelemetry-otlp = { path = "../../opentelemetry-otlp", features = ["tonic"] }
12-
opentelemetry-semantic-conventions = { path = "../../opentelemetry-semantic-conventions" }
1312
tokio = { workspace = true, features = ["full"] }

opentelemetry-otlp/examples/basic-otlp-http/Cargo.toml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,9 @@ experimental_metrics_periodicreader_with_async_runtime = ["opentelemetry_sdk/exp
1616
once_cell = { workspace = true }
1717
opentelemetry = { path = "../../../opentelemetry" }
1818
opentelemetry_sdk = { path = "../../../opentelemetry-sdk", features = ["rt-tokio", "experimental_metrics_periodicreader_with_async_runtime"]}
19-
opentelemetry-http = { path = "../../../opentelemetry-http", optional = true, default-features = false}
2019
opentelemetry-otlp = { path = "../..", features = ["http-proto", "http-json", "logs"] , default-features = false}
2120
opentelemetry-appender-tracing = { path = "../../../opentelemetry-appender-tracing", default-features = false}
22-
opentelemetry-semantic-conventions = { path = "../../../opentelemetry-semantic-conventions" }
2321

24-
async-trait = { workspace = true, optional = true }
25-
bytes = { workspace = true, optional = true }
26-
http = { workspace = true, optional = true }
27-
http-body-util = { workspace = true, optional = true }
2822
tokio = { workspace = true, features = ["full"] }
2923
tracing = { workspace = true, features = ["std"]}
30-
tracing-core = { workspace = true }
3124
tracing-subscriber = { workspace = true, features = ["env-filter","registry", "std", "fmt"] }

opentelemetry-otlp/examples/basic-otlp/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ once_cell = { workspace = true }
1010
opentelemetry = { path = "../../../opentelemetry" }
1111
opentelemetry_sdk = { path = "../../../opentelemetry-sdk", features = ["rt-tokio"] }
1212
opentelemetry-otlp = { path = "../../../opentelemetry-otlp" }
13-
opentelemetry-semantic-conventions = { path = "../../../opentelemetry-semantic-conventions" }
1413
tokio = { version = "1.0", features = ["full"] }
1514
opentelemetry-appender-tracing = { path = "../../../opentelemetry-appender-tracing", default-features = false}
1615
tracing = { workspace = true, features = ["std"]}
17-
tracing-core = { workspace = true }
1816
tracing-subscriber = { workspace = true, features = ["env-filter","registry", "std", "fmt"] }

opentelemetry-stdout/Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ futures-util = { workspace = true, optional = true }
3434
opentelemetry = { version = "0.27", path = "../opentelemetry" }
3535
opentelemetry_sdk = { version = "0.27", path = "../opentelemetry-sdk" }
3636
serde = { workspace = true, features = ["derive"] }
37-
serde_json = { workspace = true }
3837
ordered-float = { workspace = true }
3938

4039
[dev-dependencies]
@@ -46,3 +45,6 @@ tracing = { workspace = true, features = ["std"]}
4645
tracing-subscriber = { workspace = true, features = ["registry", "std"] }
4746
tokio = { workspace = true, features = ["full"] }
4847
once_cell = { workspace = true }
48+
49+
[package.metadata.cargo-machete]
50+
ignored = ["thiserror"]

0 commit comments

Comments
 (0)