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(agent): updating support for otlp datastore #3177

Merged
merged 2 commits into from
Sep 22, 2023

Conversation

xoscar
Copy link
Collaborator

@xoscar xoscar commented Sep 21, 2023

This PR...

Changes

Fixes

Checklist

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

@@ -100,6 +100,10 @@ func (s *Starter) StartAgent(ctx context.Context, endpoint, name, agentApiKey, u
ServerURL: endpoint,
APIKey: agentApiKey,
Name: name,
OTLPServer: agentConfig.OtlpServer{
Copy link
Collaborator Author

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

@@ -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)
Copy link
Collaborator Author

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 (?)

Copy link
Member

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)
Copy link
Collaborator Author

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"

Copy link
Member

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.

@xoscar xoscar marked this pull request as ready for review September 22, 2023 15:27
@xoscar xoscar merged commit 94d1c7f into main Sep 22, 2023
38 checks passed
@xoscar xoscar deleted the fix/otlp-datastore-support branch September 22, 2023 15:42
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.

2 participants