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
feat: otlp connection span count/reset endpoints #3533
Conversation
i.mutex.Lock() | ||
defer i.mutex.Unlock() | ||
|
||
i.spanCount += newSpansCount |
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.
Sanity check question: Does this counter consider different counts for tenantIds?
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.
No, it doesn't. However, this ingester is only used by the core version, thus tenant ids are irrelevant. The agent ingester must care about it though.
server/testconnection/otlp.go
Outdated
|
||
func (t *OTLPConnectionTester) GetSpanCount(ctx context.Context, opts ...GetSpanCountOption) (OTLPConnectionTestResponse, error) { | ||
config := getSpanCountConfig{ | ||
timeout: 30 * time.Second, |
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 we move this timeout to a constant?
This PR add the implementation for counting the number of spans received by the OTLP ingester.
Checklist