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

Make Traces size settable #550

Merged
merged 4 commits into from
Jan 30, 2025
Merged

Make Traces size settable #550

merged 4 commits into from
Jan 30, 2025

Conversation

iwysiu
Copy link
Contributor

@iwysiu iwysiu commented Jan 21, 2025

What this PR does / why we need it:
Adds a field to the Lucene Traces query editor for setting the span limits.

Which issue(s) this PR fixes:

Fixes #484

Special notes for your reviewer:

@iwysiu iwysiu marked this pull request as ready for review January 21, 2025 22:15
@iwysiu iwysiu requested a review from a team as a code owner January 21, 2025 22:15
@iwysiu iwysiu requested review from kevinwcyu and njvrzm and removed request for a team January 21, 2025 22:15
@@ -618,7 +618,7 @@ func (b *aggBuilderImpl) Stats() AggBuilder {
}

// TraceList sets the "aggs" object of the query to OpenSearch for the trace list
func (b *aggBuilderImpl) TraceList() AggBuilder {
func (b *aggBuilderImpl) TraceList(spanLimit int) AggBuilder {
Copy link
Contributor

Choose a reason for hiding this comment

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

Then this is technically not just the "span" limit, right? Maybe we could make it more clear in the form too, that we're also setting the trace limit and not just span limit, by renaming the input to Size, or something similar? It's a common parameter in OpenSearch queries so I think the users would understand what it means too

Copy link
Contributor Author

Choose a reason for hiding this comment

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

renamed!

@iwysiu iwysiu changed the title Make Traces span limit settable Make Traces size settable Jan 29, 2025
@iwysiu iwysiu merged commit 7265f55 into main Jan 30, 2025
13 checks passed
@iwysiu iwysiu deleted the iwysiu/484 branch January 30, 2025 19:14
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.

Make opensearch traces limit settable
3 participants