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

ref(spans): Create script for generating fake traces #6032

Merged
merged 5 commits into from
Jun 19, 2024

Conversation

evanh
Copy link
Member

@evanh evanh commented Jun 17, 2024

Create a script that generates fake traces for a set of projects.

All the traces for a single organization (1123) that spans 3 projects. Conceptually it is meant to
mimic a frontend, backend and service project.

The script can write to a file, output to stdout or produce to a kafka topic. It's all random, so
there are no guarantees of how many transactions/spans will actually appear in a given trace. There
is an option to run the script until a given number of spans are generated. Note this isn't exact,
the script will run until at least that many spans are generated.

Create a script that generates fake traces for a set of projects.

All the traces for a single organization (1123) that spans 3 projects. Conceptually it is meant to
mimic a frontend, backend and service project.

The script can write to a file, output to stdout or produce to a kafka topic. It's all random, so
there are no guarantees of how many transactions/spans will actually appear in a given trace. There
is an option to run the script until a given number of spans are generated. Note this isn't exact,
the script will run until at least that many spans are generated.
@evanh evanh requested a review from a team as a code owner June 17, 2024 14:24
Copy link
Member

@untitaker untitaker left a comment

Choose a reason for hiding this comment

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

idk where this script is best put, but i think it could go eitehr into snuba or the sandbox. in the sandbox you have the advantage of building some adhoc deployment scripts too

Copy link
Member

@volokluev volokluev left a comment

Choose a reason for hiding this comment

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

just a few small comments

scripts/send_spans.py Show resolved Hide resolved
scripts/send_spans.py Show resolved Hide resolved
@evanh evanh merged commit 66faa8e into master Jun 19, 2024
28 checks passed
@evanh evanh deleted the evanh/feat/add-span-population-script branch June 19, 2024 19:52
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.

3 participants