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

Add RSpec examples to test the adding of custom fields via LogStasher #330

Conversation

aldavidson
Copy link
Contributor

@aldavidson aldavidson commented Nov 24, 2023

As previously discussed, the way LogStasher hooks into Rails makes it difficult to test that configured custom fields actually get added. (Trello card)

After some trial and error, I found a way of testing it with only a bit of awkward coupling.

@mike29736
Copy link
Contributor

Thanks for this @aldavidson, and thanks for reviewing it @deborahchua 🙇

I've cherry-picked this commit on my local machine and I'm going to flesh out the commit message a bit to explain what append_info_to_payload and logstasher_add_custom_fields_to_payload are before pushing it up to my open pull request. So, I'll close this now

@mike29736 mike29736 closed this Nov 27, 2023
@mike29736 mike29736 deleted the add-spec-for-logstash-custom-fields branch November 27, 2023 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants