Skip to content

Commit

Permalink
fix path prefix in comment, path always starts with /
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrHeinz committed Aug 17, 2023
1 parent f12c439 commit 6a54ea2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/logtail/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def send_to_better_stack?(log_entry)
# See {Logtail::LogEntry} for available attributes of the block parameter.
#
# @example Rails
# config.logtail.filter_sent_to_better_stack { |log_entry| log_entry.context_snapshot[:http][:path].start_with?('_') }
# config.logtail.filter_sent_to_better_stack { |log_entry| log_entry.context_snapshot[:http][:path].start_with?('/_') }
# @example Everything else
# Logtail.config.filter_sent_to_better_stack { |log_entry| log_entry.message.include?('IGNORE') }
def filter_sent_to_better_stack(&block)
Expand Down

0 comments on commit 6a54ea2

Please sign in to comment.