Skip to content

Commit

Permalink
Send data to scribe
Browse files Browse the repository at this point in the history
Summary: Send events in OOBit event log format to scribe.

Reviewed By: Kevin19961023

Differential Revision: D65536813

fbshipit-source-id: f263fcb356305c8073c75f928b4b06928165f5f6
  • Loading branch information
Igor Kanyuka authored and facebook-github-bot committed Nov 10, 2024
1 parent b9a8852 commit e050f68
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions shed/scuba_sample/src/sample.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,20 @@ impl ScubaSample {
}
}

/// Create a new sample with the provided timestamp, subset and values,
/// this allows to create immutable objects
pub fn new_from_values(
time: u64,
subset: Option<String>,
values: HashMap<String, ScubaValue>,
) -> Self {
ScubaSample {
time,
subset,
values,
}
}

/// Joins the values from another scuba sample to the current one.
/// If a key from the passed in sample is already present in self, the old
/// value will be overridden
Expand Down

0 comments on commit e050f68

Please sign in to comment.