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

feat(receiver-mock): add querying the spans and traces by span name #325

Merged

Conversation

aboguszewski-sumo
Copy link
Contributor

No description provided.

@@ -47,7 +47,7 @@ The following endpoints provide information about received traces:
It accepts a list of key value pairs being an attribute set that the span will
have to fullfil in order to be returned.
Attribute values can be omitted in which case only presence of a particular attribute
will be checked.
will be checked. `__name__` is handled specially as it will be matched against the span name.
Copy link
Contributor

Choose a reason for hiding this comment

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

I would move it to next line 🤷

Comment on lines 54 to 56
if span.name == *value {
continue;
} else {
return false;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
if span.name == *value {
continue;
} else {
return false;
}
if span.name = *value {
continue;
}
return false;

Copy link
Contributor

@sumo-drosiek sumo-drosiek left a comment

Choose a reason for hiding this comment

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

Left some minor comments :)

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.

None yet

2 participants