Skip to content

Commit

Permalink
Fix part A field count
Browse files Browse the repository at this point in the history
  • Loading branch information
Robo210 committed Jul 17, 2023
1 parent 8fc33f4 commit 43fc40c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/native/common_schema/etw_cs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ impl crate::native::EventWriter for CommonSchemaProvider {
// let exts = json::extract_common_schema_parta_exts(attributes);

eb.add_u16("__csver__", 0x0401, OutType::Signed, 0);
eb.add_struct("PartA", 2 /* + exts.len() as u8*/, 0);
eb.add_struct("PartA", 1 + if current_span != 0 { 1 } else { 0 } /* + exts.len() as u8*/, 0);
{
let time: String =
chrono::DateTime::to_rfc3339(&chrono::DateTime::<chrono::Utc>::from(timestamp));
Expand Down
2 changes: 1 addition & 1 deletion src/native/common_schema/user_events_cs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ impl crate::native::EventWriter for CommonSchemaProvider {
// let exts = json::extract_common_schema_parta_exts(attributes);

eb.add_value("__csver__", 0x0401, FieldFormat::SignedInt, 0);
eb.add_struct("PartA", 2 /* + exts.len() as u8*/, 0);
eb.add_struct("PartA", 1 + if current_span != 0 { 1 } else { 0 } /* + exts.len() as u8*/, 0);
{
let time: String =
chrono::DateTime::to_rfc3339(&chrono::DateTime::<chrono::Utc>::from(timestamp));
Expand Down

0 comments on commit 43fc40c

Please sign in to comment.