Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

filterx: make 0 sec 0 usec datetime falsy #283

Merged
merged 1 commit into from
Sep 16, 2024

Conversation

alltilla
Copy link
Member

@alltilla alltilla commented Sep 16, 2024

It is particularly useful when the otel log record does not have a timestamp set.

With this we can write expressions, like:

  date_str = log.time_unix_nano ?
             string(log.time_unix_nano) :
             string(log.observed_time_unix_nano);

It is particularly useful when the otel log record
does not have a timestamp set.

With this we can write expressions, like:

  date_str = log.time_unix_nano ?
             string(log.time_unix_nano) :
             string(log.observed_time_unix_nano);

Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
@alltilla alltilla force-pushed the filterx-datetime-truthy branch from 61010fa to 2b075f3 Compare September 16, 2024 10:55
@MrAnno MrAnno merged commit 1ef059c into axoflow:main Sep 16, 2024
22 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants