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

Updated extract to handle http receiver metadata #2

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Conversation

akats7
Copy link
Owner

@akats7 akats7 commented May 8, 2023

Description:

Link to tracking Issue:

Testing:

Documentation:

evan-bradley and others added 7 commits July 11, 2023 21:19
**Description:**

I was playing with an erroneous config like the following and noticed
that the error reporting was confusing:

```yaml
processors:
  filter:
    metrics:
      metric:
        - true
        - false
```

This PR updates the error messages to print the statements next to the
error so it's clear which statement caused the error. To speed up
feedback cycles when changing multiple statements, I've also configured
the parser to attempt to parse each statement so users can see all
errors at once.

Errors now look like this:
```
Error: invalid configuration: processors::filter: unable to parse OTTL statement "drop() where 1": statement has invalid syntax: 1:15: unexpected token "<EOF>" (expected <opcomparison> Value); unable to parse OTTL statement "drop() where 0": statement has invalid syntax: 1:15: unexpected token "<EOF>" (expected <opcomparison> Value)
```

**Testing:** Unit test

Co-authored-by: Evan Bradley <[email protected]>
…4213)

**Description:** Update go versions used in GitHub workflows. Also
changes to a stricter pattern match in some cases to provide more
awareness on which version will be selected.

---------

Co-authored-by: Daniel Jaglowski <[email protected]>
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.

6 participants