Skip to content

Commit abe5625

Browse files
committed
fix: Make tracing JSON field optional
1 parent 46fa37d commit abe5625

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lambda-extension/src/events.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use serde::Deserialize;
22

33
/// Request tracing information
4-
#[derive(Debug, Deserialize)]
4+
#[derive(Debug, Default, Deserialize)]
55
#[serde(rename_all = "camelCase")]
66
pub struct Tracing {
77
/// The type of tracing exposed to the extension
@@ -20,6 +20,7 @@ pub struct InvokeEvent {
2020
/// The function's Amazon Resource Name
2121
pub invoked_function_arn: String,
2222
/// The request tracing information
23+
#[serde(default)]
2324
pub tracing: Tracing,
2425
}
2526

0 commit comments

Comments
 (0)