-
Notifications
You must be signed in to change notification settings - Fork 2.7k
[spm] GetCallRate implementation #7229
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
[spm] GetCallRate implementation #7229
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7229 +/- ##
==========================================
+ Coverage 96.16% 96.19% +0.02%
==========================================
Files 372 374 +2
Lines 22345 22686 +341
==========================================
+ Hits 21488 21822 +334
- Misses 641 645 +4
- Partials 216 219 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Hi @yurishkuro , the pull request is ready for your review |
00e72db to
7743095
Compare
Signed-off-by: pipiland2612 <[email protected]>
Signed-off-by: pipiland2612 <[email protected]>
Signed-off-by: pipiland2612 <[email protected]>
Signed-off-by: pipiland2612 <[email protected]>
## Which problem is this PR solving? - Solve parts of #7243 - Supports #7229 ## 🛑 Breaking change - ES v2 implementation will by default materialize / elevate tags `span.kind` and `span.status` (or `error`) to top level fields in the ES document. - ## How was this change tested? - make lint test ## Checklist - [x] I have read https://github.com/jaegertracing/jaeger/blob/master/CONTRIBUTING_GUIDELINES.md - [x] I have signed all commits - [x] I have added unit tests for the new functionality - [x] I have run lint and test steps successfully - for `jaeger`: `make lint test` - for `jaeger-ui`: `npm run lint` and `npm run test` --------- Signed-off-by: pipiland2612 <[email protected]>
Signed-off-by: pipiland2612 <[email protected]>
Signed-off-by: pipiland2612 <[email protected]>
8edf36d to
80f85b4
Compare
| const ( | ||
| minStep = time.Millisecond | ||
| aggName = "results_buckets" | ||
| searchIndex = "jaeger-span-*" |
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.
index name can be customized by the user, we should be using the same config as ES storage.
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.
The current index search search for all index no matter the time range. I think I will solve this problem in W7: Optimisation
| } | ||
|
|
||
| // executeSearch performs the Elasticsearch search. | ||
| func (r MetricsReader) executeSearch(ctx context.Context, p MetricsQueryParams) (*metrics.MetricFamily, error) { |
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 don't like how "hidden" the processing function here, passed via p. Why not simply return the results of the search and call processing function afterwards?
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.
Hmm, that's make sense. It will make the conversion layer only do it's job converting and we can make the processingFunc to be more transparent in the reader.go
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.
Solved at 975c4e6
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, not solved, see below
Signed-off-by: pipiland2612 <[email protected]>
Signed-off-by: pipiland2612 <[email protected]>
Signed-off-by: pipiland2612 <[email protected]>
Signed-off-by: pipiland2612 <[email protected]>
7f7fa47 to
975c4e6
Compare
Signed-off-by: pipiland2612 <[email protected]>
| } | ||
|
|
||
| // executeSearch performs the Elasticsearch search. | ||
| func (r MetricsReader) executeSearch(ctx context.Context, p MetricsQueryParams) (*metrics.MetricFamily, error) { |
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, not solved, see below
Which problem is this PR solving?
Description of the changes
How was this change tested?
Proof of this new feature
Checklist
jaeger:make lint testjaeger-ui:npm run lintandnpm run test