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

feat(tracing): add types for batches and helpers to merge spans #1826

Merged
merged 1 commit into from
Dec 2, 2024

Conversation

sumimakito
Copy link
Member

Summary

This pull request exports type definitions for batches and helper functions to merge spans in batches.

KM-766


const controlPlaneId = import.meta.env.VITE_KONNECT_CONTROL_PLANE_ID || ''

const spanRoots = computed(() => buildSpanTrees(rawSpans))
// const spanRoots = computed(() => buildSpanTrees(mergeSpansInTraceBatches(traceBatches)))
Copy link
Member

Choose a reason for hiding this comment

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

nit: should we keep these comment?

Copy link
Member Author

Choose a reason for hiding this comment

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

That commented line was intended to test if mergeSpansInTraceBatches works correctly, ideally and eventually, we should move it to a unit test case later

Copy link
Member

@Leopoldthecoder Leopoldthecoder left a comment

Choose a reason for hiding this comment

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

LGTM. Left a non-blocking comment.

@sumimakito sumimakito marked this pull request as ready for review December 2, 2024 09:30
@sumimakito sumimakito requested a review from a team as a code owner December 2, 2024 09:30
@sumimakito sumimakito merged commit 0cf7399 into main Dec 2, 2024
9 checks passed
@sumimakito sumimakito deleted the KM-766-tracing-batches branch December 2, 2024 09:32
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.

2 participants