Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion runtime_tracing/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "runtime_tracing"
version = "0.14.0"
version = "0.14.1"
edition = "2024"
authors = ["Metacraft Labs Ltd"]
description = "A library for the schema and tracing helpers for the CodeTracer db trace format"
Expand All @@ -19,6 +19,7 @@ num-derive = "0.4"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde_repr = "0.1"
schemars = "0.8.2"
capnp = "0.21.1"
zeekstd = "0.5.0"
cbor4ii = { version = "1.0.0", features = ["serde1", "use_std"] }
Expand Down
5 changes: 3 additions & 2 deletions runtime_tracing/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ use crate::base64;
use num_derive::FromPrimitive;
use serde::{Deserialize, Serialize};
use serde_repr::*;
use schemars::JsonSchema;

// currently, we do assume that we record the whole program
// so, we try to include minimal amount of data,
Expand Down Expand Up @@ -396,7 +397,7 @@ pub enum ValueRecord {
}

/// Categories of types recorded in the trace.
#[derive(Debug, Default, Copy, Clone, FromPrimitive, Serialize_repr, Deserialize_repr, PartialEq)]
#[derive(Debug, Default, Copy, Clone, FromPrimitive, Serialize_repr, Deserialize_repr, PartialEq, JsonSchema)]
#[repr(u8)]
pub enum TypeKind {
#[default]
Expand Down Expand Up @@ -455,7 +456,7 @@ pub enum TypeKind {
}

/// Kinds of I/O or log events that can appear in a trace.
#[derive(Debug, Default, Copy, Clone, FromPrimitive, Serialize_repr, Deserialize_repr, PartialEq)]
#[derive(Debug, Default, Copy, Clone, FromPrimitive, Serialize_repr, Deserialize_repr, PartialEq, JsonSchema)]
#[repr(u8)]
pub enum EventLogKind {
#[default]
Expand Down