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

Refactor TraceNavigation #1141

Merged
merged 1 commit into from
Dec 19, 2023
Merged

Refactor TraceNavigation #1141

merged 1 commit into from
Dec 19, 2023

Conversation

ka3de
Copy link
Collaborator

@ka3de ka3de commented Dec 15, 2023

What?

Based on discussions in #1140 , a decision was made to, instead of using the URL as the span name for navigation spans, use the word 'navigation' to identify the action, following the same pattern as the rest of the spans. Due to this, and because a navigation span will always have that fixed span name, it is no longer necessary to accept the span name as input for the method.

Why?

Even though the traces generated from k6 browser have some particularities to fit our needs, this change and the changes done in #1140 try to make our implementation more compliant with Open Telemetry conventions and recommendations. These changes will also improve traces searches.

Checklist

  • I have performed a self-review of my code
  • I have added tests for my changes
  • I have commented on my code, particularly in hard-to-understand areas

Related PR(s)/Issue(s)

#1100, #1140

@ka3de ka3de self-assigned this Dec 15, 2023
@ka3de ka3de added the refactor label Dec 15, 2023
@ka3de ka3de mentioned this pull request Dec 15, 2023
3 tasks
@ka3de ka3de marked this pull request as ready for review December 15, 2023 14:16
@ka3de ka3de requested review from inancgumus and ankur22 December 15, 2023 14:16
Copy link
Collaborator

@ankur22 ankur22 left a comment

Choose a reason for hiding this comment

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

LGMT 🚀

@ka3de ka3de force-pushed the refactor/trace-navigation branch from 0151ea9 to fde592f Compare December 18, 2023 10:54
@ka3de
Copy link
Collaborator Author

ka3de commented Dec 18, 2023

Because k6 has merged grafana/k6#3503, our integration tests with main version of k6 fails. Therefore we have to merge #1142 first and then rebase this branch on top.

Based on discussions in #1140 , a decision was made to, instead of using
the URL as the span name for navigation spans, use the word 'navigation'
to identify the action, following the same pattern as the rest of the
spans. Due to this, and because a navigation span will always have that
fixed span name, it is no longer necessary to accept the span name as
input for the method.
@ka3de ka3de force-pushed the refactor/trace-navigation branch from fde592f to f5aabb1 Compare December 19, 2023 08:52
@ka3de ka3de merged commit 6487fd3 into main Dec 19, 2023
17 checks passed
@ka3de ka3de deleted the refactor/trace-navigation branch December 19, 2023 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants