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

receiver-mock: add regex support for querying logs #381

Merged

Conversation

aboguszewski-sumo
Copy link
Contributor

I had to use fancy-regex crate instead of regex, because apparently regex does not support lookahead in regexes (which is what we really want, because the main point of this feature is to be able to discard undefined metadata).

Caching of compiled regexes should be definitely added, let me do this in a followup PR.

This feature currently works only for nonotlp logs, but it should be easy to add it for other data types.

Copy link

@swiatekm swiatekm left a comment

Choose a reason for hiding this comment

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

Minor nitpick aside, looks good to me.

@@ -29,3 +29,5 @@ itertools = "0.10.5"
log = "0.4.17"
simple_logger = "4.0.0"
hex = "0.4.3"
regex = "1.7.0"

Choose a reason for hiding this comment

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

I don't think we need this?

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