Skip to content

Commit 87fdca6

Browse files
committed
fmt
1 parent 0b8ceb1 commit 87fdca6

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

src/integration-tests/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ package = "google-cloud-workflows-executions-v1"
120120
path = "../../src/generated/cloud/workflows/executions/v1"
121121

122122
[dependencies.google-cloud-trace-v1]
123+
package = "google-cloud-trace-v1"
123124
path = "../../src/generated/devtools/cloudtrace/v1"
124125

125126
[dev-dependencies]

src/integration-tests/src/observability.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
// limitations under the License.
1414

1515
pub mod auth;
16-
pub mod cloud_trace;
1716
pub mod mock_collector;
1817
pub mod otlp;
1918
pub mod tracing;

src/integration-tests/tests/telemetry.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,25 @@
1414

1515
#[cfg(all(test, feature = "run-integration-tests", google_cloud_unstable_tracing))]
1616
mod telemetry {
17-
use httptest::{Expectation, Server, matchers::*, responders::status_code};
17+
use gax::exponential_backoff::ExponentialBackoffBuilder;
1818
use google_cloud_trace_v1::client::TraceService;
19+
use httptest::{Expectation, Server, matchers::*, responders::status_code};
1920
use integration_tests::observability::otlp::CloudTelemetryTracerProviderBuilder;
2021
use opentelemetry::trace::TraceContextExt;
2122
use std::time::Duration;
2223
use tracing_opentelemetry::OpenTelemetrySpanExt;
2324
use tracing_subscriber::layer::SubscriberExt;
2425
use tracing_subscriber::util::SubscriberInitExt;
25-
use gax::exponential_backoff::ExponentialBackoffBuilder;
2626

2727
#[derive(Debug, Clone)]
2828
struct RetryNotFound;
2929

3030
impl gax::retry_policy::RetryPolicy for RetryNotFound {
31-
fn on_error(&self, _state: &gax::retry_state::RetryState, error: gax::error::Error) -> gax::retry_result::RetryResult {
31+
fn on_error(
32+
&self,
33+
_state: &gax::retry_state::RetryState,
34+
error: gax::error::Error,
35+
) -> gax::retry_result::RetryResult {
3236
if let Some(status) = error.status() {
3337
if status.code == gax::error::rpc::Code::NotFound {
3438
return gax::retry_result::RetryResult::Continue(error);

0 commit comments

Comments
 (0)