Skip to content

feat: Add default_spans_per_span_set config and treat spss=0 as unlimited#5858

Merged
javiermolinar merged 11 commits intografana:mainfrom
iamrajiv:fix
Dec 1, 2025
Merged

feat: Add default_spans_per_span_set config and treat spss=0 as unlimited#5858
javiermolinar merged 11 commits intografana:mainfrom
iamrajiv:fix

Conversation

@iamrajiv
Copy link
Copy Markdown
Contributor

@iamrajiv iamrajiv commented Nov 5, 2025

What this PR does:

Add default_spans_per_span_set config and treat spss=0 as unlimited

Which issue(s) this PR fixes:
Fixes #5435

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

Copy link
Copy Markdown
Contributor

@anglerfishlyy anglerfishlyy left a comment

Choose a reason for hiding this comment

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

Hi @iamrajiv , overall implementation looks solid, good addition with default_spans_per_span_set , and the docs and tests are covered. a few CI checks are failing (lint , unit , e2e ), likely just needs a make fmt and ensuring ParseSearchRequestWithDefault() is consistently used. once those are fixed , it should be good to go.

Copy link
Copy Markdown
Contributor

@javiermolinar javiermolinar left a comment

Choose a reason for hiding this comment

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

LGTM on minor change. It is required to generate the manifest again

Comment thread modules/frontend/search_sharder.go
@anglerfishlyy
Copy link
Copy Markdown
Contributor

Thanks for the update @iamrajiv,changes look good after formatting. Agree with @javiermolinar’s suggestion on handling negative values for safety. You can also run make generate-manifest and make test-e2e-api locally to catch any errors early and keep the commit history clean before merge 👍

Comment thread modules/frontend/search_sharder.go Outdated
Copy link
Copy Markdown
Contributor

@knylander-grafana knylander-grafana left a comment

Choose a reason for hiding this comment

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

Thank you for updating the docs!

@iamrajiv
Copy link
Copy Markdown
Contributor Author

@javiermolinar @knylander-grafana can we run the ci again?

Copy link
Copy Markdown
Contributor

@javiermolinar javiermolinar left a comment

Choose a reason for hiding this comment

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

LGTM thank you for your contribution

@javiermolinar javiermolinar merged commit 5bdf50e into grafana:main Dec 1, 2025
22 checks passed
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.

spss in search does not respect configured default

4 participants