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

Not able to filter by nil timestamp #33327

Closed
zekai-rai opened this issue May 31, 2024 · 2 comments
Closed

Not able to filter by nil timestamp #33327

zekai-rai opened this issue May 31, 2024 · 2 comments
Labels
bug Something isn't working needs triage New item requiring triage processor/filter Filter processor

Comments

@zekai-rai
Copy link

Component(s)

processor/filter

What happened?

Description

Not able to filter out data point without startTimeUnixNano.

Steps to Reproduce

Use this filter setting.

filter/engine_initial:
    error_mode: ignore
    metrics:
      datapoint:
          - start_time_unix_nano == nil

Submit a metric with data points without startTimeUnixNano. Expecting the data point to be filter out.

Expected Result

Actual Result

Collector version

v.0.98.00

Environment information

Environment

OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")

OpenTelemetry Collector configuration

filter/engine_initial:
    error_mode: ignore
    metrics:
      datapoint:
          - start_time_unix_nano == nil

Log output

No response

Additional context

No response

@zekai-rai zekai-rai added bug Something isn't working needs triage New item requiring triage labels May 31, 2024
@github-actions github-actions bot added the processor/filter Filter processor label May 31, 2024
Copy link
Contributor

Pinging code owners:

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

@zekai-rai
Copy link
Author

Should've use start_time_unix_nano == 0
Closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage New item requiring triage processor/filter Filter processor
Projects
None yet
Development

No branches or pull requests

1 participant