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

modified: reader getting operations by spanKind #5243

Closed
wants to merge 1 commit into from

Conversation

Horiodino
Copy link

Which problem is this PR solving?

#1923 (comment)

Description of the changes

  • updated service_operation.go for retrieving operations based on the spanKind (if mentioned returns based on spanKind otherwise returns all operations)

How was this change tested?

Checklist

@Horiodino Horiodino requested a review from a team as a code owner March 3, 2024 12:58
@Horiodino Horiodino requested a review from jkowall March 3, 2024 12:58
@Horiodino
Copy link
Author

I didn't get any idea regarding the writer so need help there!

Copy link
Member

@yurishkuro yurishkuro left a comment

Choose a reason for hiding this comment

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

  • please add tests
  • see CONTRIBUTING.md for "good commit title"

@@ -106,8 +108,8 @@ func getServicesAggregation(maxDocCount int) elastic.Query {
Size(maxDocCount) // ES deprecated size omission for aggregating all. https://github.com/elastic/elasticsearch/issues/18838
}

func (s *ServiceOperationStorage) getOperations(context context.Context, indices []string, service string, maxDocCount int) ([]string, error) {
serviceQuery := elastic.NewTermQuery(serviceName, service)
func (s *ServiceOperationStorage) getOperations(context context.Context, indices []string, service spanstore.OperationQueryParameters, maxDocCount int) ([]string, error) {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
func (s *ServiceOperationStorage) getOperations(context context.Context, indices []string, service spanstore.OperationQueryParameters, maxDocCount int) ([]string, error) {
func (s *ServiceOperationStorage) getOperations(
context context.Context,
indices []string,
query spanstore.OperationQueryParameters,
maxDocCount int,
) ([]string, error) {

@yurishkuro
Copy link
Member

closing due to no follow-up

@yurishkuro yurishkuro closed this Apr 14, 2024
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.

2 participants