Skip to content

Commit bb0e5cb

Browse files
authored
docs: note with_telemetry_record_type usage in with_telemetry_record
1 parent dc0677b commit bb0e5cb

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lambda-extension/src/extension.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,10 @@ where
185185
}
186186

187187
/// Create a new [`Extension`] with a service that receives Lambda telemetry data.
188+
///
189+
/// By default, telemetry log records are deserialized as `String`, but
190+
/// it's possible to configure Lambda functions to emit logs in JSON format.
191+
/// For more information, refer to [`Self::with_telemetry_record_type`].
188192
pub fn with_telemetry_processor<N, NS>(self, lp: N) -> Extension<'a, E, L, N, TL>
189193
where
190194
N: Service<()>,

0 commit comments

Comments
 (0)