Skip to content

Commit

Permalink
fix(telemetry): handle new trigger slog events
Browse files Browse the repository at this point in the history
  • Loading branch information
mhofman committed Oct 29, 2024
1 parent 0ffdf00 commit d32cb7e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/telemetry/src/slog-to-otel.js
Original file line number Diff line number Diff line change
Expand Up @@ -971,6 +971,16 @@ export const makeSlogToOtelKit = (tracer, overrideAttrs = {}) => {
spans.pop('bridge-inbound');
break;
}
case 'cosmic-swingset-timer-poll': {
spans.push(['timer-poll', slogAttrs.blockTime]);
spans.pop('timer-poll');
break;
}
case 'cosmic-swingset-install-bundle': {
spans.push(['install-bundle', slogAttrs.endoZipBase64Sha512]);
spans.pop('install-bundle');
break;
}
case 'cosmic-swingset-end-block-start': {
// Add `end-block` as an event onto the encompassing `block` span
spans.top()?.addEvent('end-block-action', cleanAttrs(slogAttrs), now);
Expand Down

0 comments on commit d32cb7e

Please sign in to comment.