Skip to content

Commit 69b467a

Browse files
authored
Merge branch 'main' into appender-tracing-fix-trace-context
2 parents d08b480 + 551760b commit 69b467a

File tree

42 files changed

+1298
-437
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+1298
-437
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ jobs:
148148
if: hashFiles('Cargo.lock') == ''
149149
run: cargo generate-lockfile
150150
- name: cargo llvm-cov
151-
run: cargo llvm-cov --locked --all-features --workspace --lcov --output-path lcov.info
151+
run: cargo llvm-cov --locked --all-features --workspace --lcov --lib --output-path lcov.info
152152
- name: Upload to codecov.io
153153
uses: codecov/codecov-action@v4
154154
env:

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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ opentelemetry-stdout = { path = "../../opentelemetry-stdout", features = ["trace
2020
prost = { workspace = true }
2121
tokio = { workspace = true, features = ["full"] }
2222
tonic = { workspace = true }
23-
serde_json = { workspace = true }
2423

2524
[build-dependencies]
2625
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-otlp/src/exporter/http/mod.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,11 @@ pub struct HttpConfig {
6666
impl Default for HttpConfig {
6767
fn default() -> Self {
6868
#[cfg(feature = "reqwest-blocking-client")]
69-
let default_client =
70-
Some(Arc::new(reqwest::blocking::Client::new()) as Arc<dyn HttpClient>);
69+
let default_client = std::thread::spawn(|| {
70+
Some(Arc::new(reqwest::blocking::Client::new()) as Arc<dyn HttpClient>)
71+
})
72+
.join()
73+
.expect("creating reqwest::blocking::Client on a new thread not to fail");
7174
#[cfg(all(not(feature = "reqwest-blocking-client"), feature = "reqwest-client"))]
7275
let default_client = Some(Arc::new(reqwest::Client::new()) as Arc<dyn HttpClient>);
7376
#[cfg(all(
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
lcov.info
2+
actual/*.json

0 commit comments

Comments
 (0)