mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-11-27 00:03:06 -05:00
fix: variable typo in README for instrumentation (#1231)
This commit is contained in:
parent
f538aee155
commit
d297fdef7d
@ -266,7 +266,7 @@ For example:
|
||||
```ruby
|
||||
Stripe::Instrumentation.subscribe(:request_end) do |request_event|
|
||||
# Filter out high-cardinality ids from `path`
|
||||
path_parts = event.path.split("/").drop(2)
|
||||
path_parts = request_event.path.split("/").drop(2)
|
||||
resource = path_parts.map { |part| part.match?(/\A[a-z_]+\z/) ? part : ":id" }.join("/")
|
||||
|
||||
tags = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user