Skip to content

Commit

Permalink
fix: Make tracing JSON field optional
Browse files Browse the repository at this point in the history
  • Loading branch information
rebu-dt committed May 27, 2024
1 parent 46fa37d commit abe5625
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lambda-extension/src/events.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use serde::Deserialize;

/// Request tracing information
#[derive(Debug, Deserialize)]
#[derive(Debug, Default, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Tracing {
/// The type of tracing exposed to the extension
Expand All @@ -20,6 +20,7 @@ pub struct InvokeEvent {
/// The function's Amazon Resource Name
pub invoked_function_arn: String,
/// The request tracing information
#[serde(default)]
pub tracing: Tracing,
}

Expand Down

0 comments on commit abe5625

Please sign in to comment.