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

Enabling appending time measurements to events can cause errors #721

Closed
ppcad opened this issue Dec 6, 2024 · 0 comments · Fixed by #725
Closed

Enabling appending time measurements to events can cause errors #721

ppcad opened this issue Dec 6, 2024 · 0 comments · Fixed by #725
Labels
bug Something isn't working

Comments

@ppcad
Copy link
Collaborator

ppcad commented Dec 6, 2024

Enabling LOGPREP_APPEND_MEASUREMENT_TO_EVENT can cause FieldExists warnings and additionally raise FieldExists as an exception with stack-trace.

This problem started with pull request #696. It may be related to _add_fields_to in metrics.py.

Steps to reproduce

  1. Run Logprep with the environment variable LOGPREP_APPEND_MEASUREMENT_TO_EVENT set to a truthy value
  2. Run Logprep with any processor
  3. Send an event containing {"processing_times": "foo"} to Logprep and ensure that a processor matches this event
@ppcad ppcad added the bug Something isn't working label Dec 6, 2024
@ekneg54 ekneg54 changed the title Enablind appending time measurements to events can cause errors Enabling appending time measurements to events can cause errors Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant