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

Refactoring and template trace generator #5

Merged
merged 15 commits into from
Nov 7, 2022

Conversation

stoewer
Copy link
Collaborator

@stoewer stoewer commented Nov 4, 2022

What this PR does:

The purpose of this change is create more realistiacally looking traces with xk6-client-tracing.

  • Refactored the code and introduce the concept of different trace generators. The existing functionality to generate traces is now provided by tracing.ParameterizedGenerator.
  • Implement a new generator that creates traces and spans from a configurable template.

Which issue(s) this PR fixes:

May help to solve grafana/tempo#902 because xk6-client-tracing could be used as a replacement for the synthetic-load-generator

@stoewer stoewer requested a review from mapno November 4, 2022 09:45
@stoewer stoewer marked this pull request as ready for review November 4, 2022 09:45
Copy link
Member

@mapno mapno left a comment

Choose a reason for hiding this comment

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

Like the direction of the PR, nice work. Left a few comments

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
tracing.go Outdated Show resolved Hide resolved
pkg/tracegen/parameterized.go Show resolved Hide resolved
Copy link
Member

@mapno mapno left a comment

Choose a reason for hiding this comment

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

I'm good to merge. I'll wait to see if @dgzlopes has any thoughts.

Copy link
Member

@dgzlopes dgzlopes left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for the work @stoewer 🙇

@stoewer stoewer merged commit 339c8c3 into grafana:main Nov 7, 2022
@stoewer stoewer deleted the template-generator branch November 7, 2022 21:41
stoewer added a commit that referenced this pull request Nov 7, 2022
Refactored the code and introduce the concept of different trace
generators. The existing functionality to generate traces is now
provided by tracing.ParameterizedGenerator

Implement a new generator that creates traces and spans from a
configurable template with the goal to generate more realistiacally
looking traces
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.

None yet

3 participants