Skip to content

docstore: Opentelemetry migration of docstore #3550

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

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

pitabwire
Copy link
Contributor

Micro PR to migrate monolith : #3539

PR affects :

  • docstore

gcdkotel.MethodKey.String("ActionList.Do"),
gcdkotel.ProviderKey.String(l.coll.tracer.Provider),
}
completedCallsCounter.Add(context.Background(), 1, metric.WithAttributes(attr...))
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not ctx?

gcdkotel.ProviderKey.String(l.coll.tracer.Provider),
}
latencyHistogram.Record(
context.Background(),
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto

gcdkotel.MethodKey.String("Query.Get"),
gcdkotel.ProviderKey.String(q.coll.tracer.Provider),
}
completedCallsCounter.Add(context.Background(), 1, metric.WithAttributes(attr...))
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto

Comment on lines 379 to 380
var startTime time.Time
var span trace.Span

Choose a reason for hiding this comment

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

Could these two be defined in the scope of
if withTracing {} below. Seems we dont need them outside the scope.

Comment on lines 65 to 68
// Skip span check as span attributes might have changed during migration
// if !providerFound {
// t.Errorf("did not see span with provider=%s", driver)
// }

Choose a reason for hiding this comment

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

remove commented code.

Comment on lines 219 to 220
var startTime time.Time
var span trace.Span

Choose a reason for hiding this comment

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

Move into if withTracing {...} scope below?

@pitabwire
Copy link
Contributor Author

@pramineni01 @jba before this pr is good for review please take a look at #3557.

@pitabwire pitabwire requested a review from pramineni01 May 28, 2025 04:09
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