-
Notifications
You must be signed in to change notification settings - Fork 77
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(agent): updating support for otlp datastore #3177
Conversation
@@ -100,6 +100,10 @@ func (s *Starter) StartAgent(ctx context.Context, endpoint, name, agentApiKey, u | |||
ServerURL: endpoint, | |||
APIKey: agentApiKey, | |||
Name: name, | |||
OTLPServer: agentConfig.OtlpServer{ |
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.
This needs to be configurable from the CLI
server/app/app.go
Outdated
@@ -230,8 +230,8 @@ func (app *App) Start(opts ...appOption) error { | |||
|
|||
tracedbFactory := tracedb.Factory(tracesRepo) | |||
|
|||
eventEmitter := executor.NewEventEmitter(testDB, subscriptionManager) | |||
registerOtlpServer(app, tracesRepo, runRepo, eventEmitter, dataStoreRepo, tracer) | |||
// eventEmitter := executor.NewEventEmitter(testDB, subscriptionManager) |
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.
We might need a flag to enable/disable this (?)
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.
Yes. If we cant have it on cloud, we should disable it via configuration
@@ -28,13 +24,6 @@ func newForwardIngester(ctx context.Context, batchTimeout time.Duration, remoteI | |||
traceCache: remoteIngesterConfig.traceCache, | |||
} | |||
|
|||
err := ingester.connectToRemoteServer(ctx) |
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.
Having a connect here was failing the initialization and we are not connecting to a server "yet"
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.
We might need to disable all the removed code based on a flag.
The removed code is important in the future when we decide to forward traces from the agent to an OTLP-compatible endpoint. But for now, I think we can remove it.
This PR...
Changes
Fixes
Checklist