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

Filter telemetry by semver version #34674

Closed
boh-dan opened this issue Aug 14, 2024 · 2 comments
Closed

Filter telemetry by semver version #34674

boh-dan opened this issue Aug 14, 2024 · 2 comments
Labels
enhancement New feature or request needs triage New item requiring triage pkg/ottl

Comments

@boh-dan
Copy link

boh-dan commented Aug 14, 2024

Component(s)

pkg/ottl

Is your feature request related to a problem? Please describe.

I have a problem with incorrect telemetry sent by old versions of mobile application that I can't change or force to update. There is no way to distinguish this telemetry data other than by resource attribute "version". I found that OTTL which is used in the filter processor doesn't have semver version convertor and there is no other converter that can be used to parse and compare semver version from the attribute.

Describe the solution you'd like

Add semver version matcher into OTTL package that can convert the attribute value into semver version and compare it to the pattern specified as an argument:
IsMatchVersion(resource.attributes["version"], "<1.2")

Describe alternatives you've considered

I didn't find any other way to solve it. A proactive solution to prevent this from happening again is to always provide a numeric version of the application along with a string version in resource attributes.

Additional context

No response

@boh-dan boh-dan added enhancement New feature or request needs triage New item requiring triage labels Aug 14, 2024
Copy link
Contributor

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

@iblancasa
Copy link
Contributor

Should this issue be reopened?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs triage New item requiring triage pkg/ottl
Projects
None yet
Development

No branches or pull requests

2 participants