Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Apr 26, 2024

Conversation

refcell
Copy link
Collaborator

@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
Collaborator 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-derive Area: kona-derive crate 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
Collaborator

@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
13 checks passed
@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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-derive Area: kona-derive crate K-fix Kind: fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants