-
Notifications
You must be signed in to change notification settings - Fork 72
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
agent/collector/ingester.go
Outdated
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() | ||
// } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can this be removed?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
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
Loom video
Add your loom video here if your work can be visualized