File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -202,11 +202,11 @@ mod test {
202202 #[ test]
203203 fn test_a_few_errors ( ) {
204204 test_expect_err :: < u8 , _ > (
205- "U8 " ,
205+ "U8_ " ,
206206 30000u16 ,
207207 FromEnvErr :: parse_error ( "30000" . parse :: < u8 > ( ) . unwrap_err ( ) ) ,
208208 ) ;
209209
210- test_expect_err :: < u8 , _ > ( "U8 " , "" , FromEnvErr :: empty ( "U8 " ) ) ;
210+ test_expect_err :: < u8 , _ > ( "U8_ " , "" , FromEnvErr :: empty ( "U8_ " ) ) ;
211211 }
212212}
Original file line number Diff line number Diff line change @@ -133,9 +133,9 @@ impl OtelConfig {
133133 /// Load from env vars.
134134 ///
135135 /// The env vars it checks are:
136- /// return [`None`].
137- /// - `OTEL_PROTOCOL` - optional. Specifies the OTLP protocol to use, should
138- /// be one of "grpc", "binary" or "json". Defaults to json .
136+ /// - `OTEL_EXPORTER_OTLP_ENDPOINT` - optional. The endpoint to send traces
137+ /// to. If missing or unparsable, this function will return [`None`], and
138+ /// OTLP exporting will be disabled .
139139 /// - `OTEL_LEVEL` - optional. Specifies the minimum [`tracing::Level`] to
140140 /// export. Defaults to [`tracing::Level::DEBUG`].
141141 /// - `OTEL_TIMEOUT` - optional. Specifies the timeout for the exporter in
@@ -205,7 +205,7 @@ mod test {
205205
206206 fn test_env_read ( ) {
207207 run_clear_env ( || {
208- std:: env:: set_var ( " OTEL_ENDPOINT" , URL ) ;
208+ std:: env:: set_var ( OTEL_ENDPOINT , URL ) ;
209209
210210 let cfg = OtelConfig :: load ( ) . unwrap ( ) ;
211211 assert_eq ! ( cfg. endpoint, URL . parse( ) . unwrap( ) ) ;
You can’t perform that action at this time.
0 commit comments