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

[pkg/stanza] not drop logs on timestamp parsing error #29003

Closed
newly12 opened this issue Nov 7, 2023 · 4 comments
Closed

[pkg/stanza] not drop logs on timestamp parsing error #29003

newly12 opened this issue Nov 7, 2023 · 4 comments
Labels
enhancement New feature or request needs triage New item requiring triage pkg/stanza waiting for author

Comments

@newly12
Copy link
Contributor

newly12 commented Nov 7, 2023

Component(s)

pkg/stanza

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

in case of timestmap parsing error, fall back to observed timestamp instead of dropping logs

Describe the solution you'd like

add a config for this behavior

Describe alternatives you've considered

No response

Additional context

No response

@newly12 newly12 added enhancement New feature or request needs triage New item requiring triage labels Nov 7, 2023
Copy link
Contributor

github-actions bot commented Nov 7, 2023

Pinging code owners:

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

@djaglowski
Copy link
Member

I think there are two separate proposals here.

  1. Ensure logs are not dropped. This should be possible today but it sounds like you've experienced otherwise? Would you be willing to provide a test case which demonstrates this?

  2. Fall back to observed timestamp. This is not the appropriate behavior as defined by our data model. The timestamp should remain empty and it is up to exporters to determine what to do. See ObservedTimestamp: For converting OpenTelemetry log data to formats that support only one timestamp or when receiving OpenTelemetry log data by recipients that support only one timestamp internally the following logic is recommended: Use Timestamp if it is present, otherwise use ObservedTimestamp.

@crobert-1
Copy link
Member

@newly12 Can you confirm whether or not logs were being dropped, as asked in question 1 above?

@newly12
Copy link
Contributor Author

newly12 commented Dec 25, 2023

@djaglowski sorry for late response. you are correct, if I have on_error set to send, the entry is still sent.

Fall back to observed timestamp. This is not the appropriate behavior as defined by our data model. The timestamp should remain empty and it is up to exporters to determine what to do. See ObservedTimestamp: For converting OpenTelemetry log data to formats that support only one timestamp or when receiving OpenTelemetry log data by recipients that support only one timestamp internally the following logic is recommended: Use Timestamp if it is present, otherwise use ObservedTimestamp.

sounds good.

@newly12 newly12 closed this as completed Dec 25, 2023
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/stanza waiting for author
Projects
None yet
Development

No branches or pull requests

3 participants