Skip to content

Commit 6a54ea2

Browse files
committed
fix path prefix in comment, path always starts with /
1 parent f12c439 commit 6a54ea2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/logtail/config.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def send_to_better_stack?(log_entry)
4646
# See {Logtail::LogEntry} for available attributes of the block parameter.
4747
#
4848
# @example Rails
49-
# config.logtail.filter_sent_to_better_stack { |log_entry| log_entry.context_snapshot[:http][:path].start_with?('_') }
49+
# config.logtail.filter_sent_to_better_stack { |log_entry| log_entry.context_snapshot[:http][:path].start_with?('/_') }
5050
# @example Everything else
5151
# Logtail.config.filter_sent_to_better_stack { |log_entry| log_entry.message.include?('IGNORE') }
5252
def filter_sent_to_better_stack(&block)

0 commit comments

Comments
 (0)