@@ -17,20 +17,6 @@ use gax::retry_policy::{AlwaysRetry, RetryPolicyExt};
17
17
use storage:: client:: StorageControl ;
18
18
19
19
pub async fn error_details_http ( ) -> Result < ( ) > {
20
- // Enable a basic subscriber. Useful to troubleshoot problems and visually
21
- // verify tracing is doing something.
22
- #[ cfg( feature = "log-integration-tests" ) ]
23
- let _guard = {
24
- use tracing_subscriber:: fmt:: format:: FmtSpan ;
25
- let subscriber = tracing_subscriber:: fmt ( )
26
- . with_level ( true )
27
- . with_thread_ids ( true )
28
- . with_span_events ( FmtSpan :: NEW | FmtSpan :: CLOSE )
29
- . finish ( ) ;
30
-
31
- tracing:: subscriber:: set_default ( subscriber)
32
- } ;
33
-
34
20
let project_id = crate :: project_id ( ) ?;
35
21
let region_id = crate :: region_id ( ) ;
36
22
let client = ta:: client:: TelcoAutomation :: builder ( )
@@ -55,18 +41,6 @@ pub async fn error_details_http() -> Result<()> {
55
41
}
56
42
57
43
pub async fn error_details_grpc ( ) -> Result < ( ) > {
58
- #[ cfg( feature = "log-integration-tests" ) ]
59
- let _guard = {
60
- use tracing_subscriber:: fmt:: format:: FmtSpan ;
61
- let subscriber = tracing_subscriber:: fmt ( )
62
- . with_level ( true )
63
- . with_thread_ids ( true )
64
- . with_span_events ( FmtSpan :: NEW | FmtSpan :: CLOSE )
65
- . finish ( ) ;
66
-
67
- tracing:: subscriber:: set_default ( subscriber)
68
- } ;
69
-
70
44
let client = StorageControl :: builder ( ) . with_tracing ( ) . build ( ) . await ?;
71
45
let err = client
72
46
. get_bucket ( )
@@ -83,18 +57,6 @@ pub async fn error_details_grpc() -> Result<()> {
83
57
}
84
58
85
59
pub async fn check_code_for_http ( ) -> Result < ( ) > {
86
- #[ cfg( feature = "log-integration-tests" ) ]
87
- let _guard = {
88
- use tracing_subscriber:: fmt:: format:: FmtSpan ;
89
- let subscriber = tracing_subscriber:: fmt ( )
90
- . with_level ( true )
91
- . with_thread_ids ( true )
92
- . with_span_events ( FmtSpan :: NEW | FmtSpan :: CLOSE )
93
- . finish ( ) ;
94
-
95
- tracing:: subscriber:: set_default ( subscriber)
96
- } ;
97
-
98
60
let project_id = crate :: project_id ( ) ?;
99
61
let location_id = crate :: region_id ( ) ;
100
62
let workflow_id = crate :: random_workflow_id ( ) ;
@@ -121,18 +83,6 @@ pub async fn check_code_for_http() -> Result<()> {
121
83
}
122
84
123
85
pub async fn check_code_for_grpc ( ) -> Result < ( ) > {
124
- #[ cfg( feature = "log-integration-tests" ) ]
125
- let _guard = {
126
- use tracing_subscriber:: fmt:: format:: FmtSpan ;
127
- let subscriber = tracing_subscriber:: fmt ( )
128
- . with_level ( true )
129
- . with_thread_ids ( true )
130
- . with_span_events ( FmtSpan :: NEW | FmtSpan :: CLOSE )
131
- . finish ( ) ;
132
-
133
- tracing:: subscriber:: set_default ( subscriber)
134
- } ;
135
-
136
86
let bucket_id = crate :: random_bucket_id ( ) ;
137
87
let bucket_name = format ! ( "projects/_/buckets/{bucket_id}" ) ;
138
88
let client = StorageControl :: builder ( ) . with_tracing ( ) . build ( ) . await ?;
0 commit comments