File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -202,11 +202,11 @@ mod test {
202
202
#[ test]
203
203
fn test_a_few_errors ( ) {
204
204
test_expect_err :: < u8 , _ > (
205
- "U8 " ,
205
+ "U8_ " ,
206
206
30000u16 ,
207
207
FromEnvErr :: parse_error ( "30000" . parse :: < u8 > ( ) . unwrap_err ( ) ) ,
208
208
) ;
209
209
210
- test_expect_err :: < u8 , _ > ( "U8 " , "" , FromEnvErr :: empty ( "U8 " ) ) ;
210
+ test_expect_err :: < u8 , _ > ( "U8_ " , "" , FromEnvErr :: empty ( "U8_ " ) ) ;
211
211
}
212
212
}
Original file line number Diff line number Diff line change @@ -133,9 +133,9 @@ impl OtelConfig {
133
133
/// Load from env vars.
134
134
///
135
135
/// 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 .
139
139
/// - `OTEL_LEVEL` - optional. Specifies the minimum [`tracing::Level`] to
140
140
/// export. Defaults to [`tracing::Level::DEBUG`].
141
141
/// - `OTEL_TIMEOUT` - optional. Specifies the timeout for the exporter in
@@ -205,7 +205,7 @@ mod test {
205
205
206
206
fn test_env_read ( ) {
207
207
run_clear_env ( || {
208
- std:: env:: set_var ( " OTEL_ENDPOINT" , URL ) ;
208
+ std:: env:: set_var ( OTEL_ENDPOINT , URL ) ;
209
209
210
210
let cfg = OtelConfig :: load ( ) . unwrap ( ) ;
211
211
assert_eq ! ( cfg. endpoint, URL . parse( ) . unwrap( ) ) ;
You can’t perform that action at this time.
0 commit comments