-
Notifications
You must be signed in to change notification settings - Fork 535
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
Add maximum spans per span set #4383
Conversation
56457fa
to
da73759
Compare
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.
Looking good! Needs some doc, changelog and a simple unit test.
|
||
|
||
# The maximum allowed value of spans per span set. 0 disables this limit. | ||
[max_spans_per_span_set]: <int> | default = 100] |
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.
Should we set it to 0 by default? then it won't be a breaking change
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.
I'm not opposed to 0. If you all prefer it, we can do that.
However, this feels like a sensible default that will help all OSS users so i'd prefer the breaking change that just makes Tempo operate better.
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.
That's okay to me. It simplify setting up Tempo for sure
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.
I think this needs more context so people know what a limit of 100 spansets mean. Are we talking about results of a traceql query?
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.
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.
please fix the conflict in the changelog and we'll merge!
@@ -731,6 +732,12 @@ func TestSearchSharderRoundTripBadRequest(t *testing.T) { | |||
resp, err = testRT.RoundTrip(pipeline.NewHTTPRequest(req)) | |||
testBadRequestFromResponses(t, resp, err, "range specified by start and end exceeds 5m0s. received start=1000 end=1500") | |||
|
|||
// spans per span set greater than maximum | |||
req = httptest.NewRequest("GET", "/?spss=200", nil) | |||
req = req.WithContext(user.InjectOrgID(req.Context(), "blerg")) |
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.
"blerg". well, i guess you're officially on the team now :)
This as a breaking change.
3f0154b
to
c9084a0
Compare
What this PR does:
Add maximum spans per span set.
Which issue(s) this PR fixes:
Fixes #4275
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]