Skip to content
This repository was archived by the owner on Jan 16, 2026. It is now read-only.

fix(derive): TryFrom<SpanBatch> for RawSpanBatch#142

Merged
clabby merged 1 commit intomainfrom
refcell/try-from-span-batch
Apr 26, 2024
Merged

fix(derive): TryFrom<SpanBatch> for RawSpanBatch#142
clabby merged 1 commit intomainfrom
refcell/try-from-span-batch

Conversation

@refcell
Copy link
Contributor

@refcell refcell commented Apr 25, 2024

Description

Migrates the to_raw_span_batch method logic into the TryFrom trait implementation on the RawSpanBatch.

Arguments to the to_raw_span_batch method were unused anyways. The reference implementation accepts no arguments to its ToRawSpanBatch conversion method.

Tests

Added unit tests around the trait implementation edge cases.

Copy link
Contributor Author

refcell commented Apr 25, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @refcell and the rest of your teammates on Graphite Graphite

@refcell refcell changed the title fix(derive): move span batch conversion to try from trait fix(derive): TryFrom<SpanBatch> for RawSpanBatch Apr 25, 2024
@refcell refcell requested a review from clabby April 25, 2024 17:50
@refcell refcell added A-proof Area: proof crates K-fix Kind: fix labels Apr 25, 2024 — with Graphite App
@refcell refcell marked this pull request as ready for review April 25, 2024 17:50
@refcell refcell self-assigned this Apr 25, 2024
@refcell refcell added this to the Table Stakes milestone Apr 25, 2024
Copy link
Contributor

@clabby clabby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

@clabby clabby added this pull request to the merge queue Apr 26, 2024
Merged via the queue into main with commit e950aa3 Apr 26, 2024
@github-actions github-actions bot mentioned this pull request Apr 26, 2024
This was referenced May 29, 2024
This was referenced Jun 6, 2024
This was referenced Jun 16, 2024
@clabby clabby deleted the refcell/try-from-span-batch branch July 2, 2024 03:39
theochap pushed a commit to ethereum-optimism/optimism that referenced this pull request Dec 10, 2025
theochap pushed a commit to ethereum-optimism/optimism that referenced this pull request Jan 14, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

A-proof Area: proof crates K-fix Kind: fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants