Skip to content

feat(proto): Transaction, Span wire types + ParsedEnvelope - #253

Merged
ajianaz merged 1 commit into
developfrom
feat/sentry-transaction-proto
Jun 27, 2026
Merged

feat(proto): Transaction, Span wire types + ParsedEnvelope#253
ajianaz merged 1 commit into
developfrom
feat/sentry-transaction-proto

Conversation

@ajianaz

@ajianaz ajianaz commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

Closes #235 · Phase 1 sub-issue — proto layer

Changes

New types in trapfall-proto/src/lib.rs:

  • SpanStatus enum (16 variants, serde snake_case, Other fallback)
  • Span struct (op, trace_id, timing, tags, data)
  • Transaction struct (event_id, name, spans, release, env, contexts)
  • ParsedEnvelope struct (events + transactions, extensible for Phase 2-3)

Tests

12 new unit tests. All 26 tests pass. Clippy clean, fmt clean.

…elope

Adds Sentry protocol types for Phase 1 transaction support:
- SpanStatus enum (16 variants, serde snake_case)
- Span struct (op, trace_id, parent_span_id, timing, tags, data)
- Transaction struct (event_id, name, spans, release, env, contexts)
- ParsedEnvelope struct (events + transactions, extensible for Phase 2-3)

All fields use skip_serializing_if for minimal wire size.
12 new unit tests covering serde round-trips and ParsedEnvelope usage.

Closes #235
@ajianaz
ajianaz merged commit b205291 into develop Jun 27, 2026
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1a: Add Transaction + Span wire types to trapfall-proto

1 participant