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: don't use buffer and run things async #3826

Merged
merged 11 commits into from
Apr 25, 2024
Merged

Conversation

mathnogueira
Copy link
Member

@mathnogueira mathnogueira commented Apr 24, 2024

This PR updates the agent collector. Now it's not a proxy for open telemetry anymore. It only collects traces for tests and stores them. It also discards the test traces once they are sent back to the server to reduce the memory footprint.

Changes

Fixes

Checklist

  • tested locally
  • added new dependencies
  • updated the docs
  • added a test

Loom video

Add your loom video here if your work can be visualized

@mathnogueira mathnogueira marked this pull request as ready for review April 24, 2024 13:40
Copy link

vercel bot commented Apr 24, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
tracetest ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 25, 2024 6:28pm

Comment on lines 48 to 55
if startRemoteServer {
err := ingester.connectToRemoteServer(ctx)
if err != nil {
return nil, fmt.Errorf("could not connect to remote server: %w", err)
}
// if startRemoteServer {
// err := ingester.connectToRemoteServer(ctx)
// if err != nil {
// return nil, fmt.Errorf("could not connect to remote server: %w", err)
// }

go ingester.startBatchWorker()
}
// go ingester.startBatchWorker()
// }
Copy link
Collaborator

Choose a reason for hiding this comment

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

can this be removed?

Copy link
Member Author

Choose a reason for hiding this comment

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

I just cleaned the whole thing and removed all unused methods as well.

Copy link
Collaborator

@schoren schoren left a comment

Choose a reason for hiding this comment

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

LGTM!

@mathnogueira mathnogueira merged commit ad47266 into main Apr 25, 2024
39 checks passed
@mathnogueira mathnogueira deleted the fix/agent-collector-perf branch April 25, 2024 18:45
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