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 ability to filter logs send to Better Stack #23

Merged
merged 4 commits into from
Aug 17, 2023
Merged

Conversation

PetrHeinz
Copy link
Member

https://trello.com/c/fXPatrDE/3405-clientsruby-rails-add-configurable-filtering-of-logs-sent-to-better-stack

Resolves logtail/logtail-ruby-rails#22. I intentionally added the check to HTTP log device as the reason for not sending too many logs to Better Stack is to keep the logged amount lower, not dropping logs per se. Also, there's already LogEntry object which helps with accessing different properties in a nice manner.

Example added to method annotations and example-project.

Ruby 2.2 does not support &. syntax. Since it's official support ended in 2018, I suggest we just drop it.

@PetrHeinz
Copy link
Member Author

I will be adding the info to our Ruby & Rails docs, and possibly to logtail-ruby-rails example project.

Copy link
Contributor

@curusarn curusarn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Look s good, thanks.

I agree with dropping ruby 2.2 - it looks like almost nobody used it in 2019 already: https://www.jetbrains.com/lp/devecosystem-2019/ruby/

@PetrHeinz PetrHeinz merged commit f12c439 into main Aug 17, 2023
12 checks passed
@PetrHeinz PetrHeinz deleted the ph/filter-logs branch August 17, 2023 12:10
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.

Ability to filter out some logs
2 participants