Skip to content

Commit 07c4e21

Browse files
committed
feat(events): add EvmEvent eventKind
1 parent 7913c1b commit 07c4e21

File tree

4 files changed

+5
-0
lines changed

4 files changed

+5
-0
lines changed

docs/trace_json_spec.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ Example: the default `TypeKind::Seq` has value `0`, `TypeKind::Set` has value `1
271271
| 10 | Open |
272272
| 11 | Error |
273273
| 12 | TraceLogEvent |
274+
| 13 | EvmEvent |
274275

275276
## Summary
276277

runtime_tracing/src/capnptrace.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ impl From<trace::EventLogKind> for crate::EventLogKind {
107107
trace::EventLogKind::Open => crate::EventLogKind::Open,
108108
trace::EventLogKind::Error => crate::EventLogKind::Error,
109109
trace::EventLogKind::TraceLogEvent => crate::EventLogKind::TraceLogEvent,
110+
trace::EventLogKind::EvmEvent => crate::EventLogKind::EvmEvent,
110111
}
111112
}
112113
}
@@ -127,6 +128,7 @@ impl From<crate::EventLogKind> for trace::EventLogKind {
127128
crate::EventLogKind::Open => trace::EventLogKind::Open,
128129
crate::EventLogKind::Error => trace::EventLogKind::Error,
129130
crate::EventLogKind::TraceLogEvent => trace::EventLogKind::TraceLogEvent,
131+
crate::EventLogKind::EvmEvent => trace::EventLogKind::EvmEvent,
130132
}
131133
}
132134
}

runtime_tracing/src/trace.capnp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,5 +303,6 @@ struct Trace {
303303
open @8;
304304
error @9;
305305
traceLogEvent @10;
306+
evmEvemt @13;
306307
}
307308
}

runtime_tracing/src/types.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,4 +474,5 @@ pub enum EventLogKind {
474474
Error,
475475
// used for trace events
476476
TraceLogEvent,
477+
EvmEvent
477478
}

0 commit comments

Comments
 (0)