Skip to content

Commit

Permalink
Fix broken CI because of update to otel 0.27.1
Browse files Browse the repository at this point in the history
- Update snapshots.
- Allow deprecated APIs in tests, where warnings are errors.
  • Loading branch information
frigus02 committed Jan 3, 2025
1 parent 789609c commit 2a95a21
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions examples/tracing/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ async fn spawn_child_process(process_name: &str) {
child.wait().await.expect("awaiting process failed");
}

#[instrument]
#[instrument(fields(test.in_attr="in attr"))]
async fn run_in_child_process() {
tracing::info!("leaf fn");
tracing::info!(test.in_event="in event", "leaf fn");
sleep(Duration::from_millis(50)).await
}

Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ async fn main() {
#![deny(missing_docs, unreachable_pub, missing_debug_implementations)]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![cfg_attr(test, deny(warnings))]
#![cfg_attr(test, allow(deprecated))]

mod connection_string;
mod convert;
Expand Down
4 changes: 2 additions & 2 deletions tests/snapshots/http_requests__logs.snap
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ content-encoding: gzip
"service.name": "unknown_service",
"telemetry.sdk.language": "rust",
"telemetry.sdk.name": "opentelemetry",
"telemetry.sdk.version": "0.27.0"
"telemetry.sdk.version": "0.27.1"
},
"resultCode": "0",
"type": "InProc",
Expand All @@ -134,7 +134,7 @@ content-encoding: gzip
"sampleRate": 100.0,
"tags": {
"ai.cloud.role": "unknown_service",
"ai.internal.sdkVersion": "opentelemetry:0.27.0",
"ai.internal.sdkVersion": "opentelemetry:0.27.1",
"ai.operation.id": "STRIPPED"
},
"time": "STRIPPED"
Expand Down
4 changes: 2 additions & 2 deletions tests/snapshots/http_requests__traces_batch_async_std.snap
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ content-encoding: gzip
"service.name": "unknown_service",
"telemetry.sdk.language": "rust",
"telemetry.sdk.name": "opentelemetry",
"telemetry.sdk.version": "0.27.0"
"telemetry.sdk.version": "0.27.1"
},
"resultCode": "0",
"type": "InProc",
Expand All @@ -31,7 +31,7 @@ content-encoding: gzip
"sampleRate": 100.0,
"tags": {
"ai.cloud.role": "unknown_service",
"ai.internal.sdkVersion": "opentelemetry:0.27.0",
"ai.internal.sdkVersion": "opentelemetry:0.27.1",
"ai.operation.id": "STRIPPED"
},
"time": "STRIPPED"
Expand Down
4 changes: 2 additions & 2 deletions tests/snapshots/http_requests__traces_batch_tokio.snap
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ content-encoding: gzip
"service.name": "unknown_service",
"telemetry.sdk.language": "rust",
"telemetry.sdk.name": "opentelemetry",
"telemetry.sdk.version": "0.27.0"
"telemetry.sdk.version": "0.27.1"
},
"resultCode": "0",
"type": "InProc",
Expand All @@ -31,7 +31,7 @@ content-encoding: gzip
"sampleRate": 100.0,
"tags": {
"ai.cloud.role": "unknown_service",
"ai.internal.sdkVersion": "opentelemetry:0.27.0",
"ai.internal.sdkVersion": "opentelemetry:0.27.1",
"ai.operation.id": "STRIPPED"
},
"time": "STRIPPED"
Expand Down

0 comments on commit 2a95a21

Please sign in to comment.