Skip to content

Commit

Permalink
fix: variable typo in README for instrumentation (#1231)
Browse files Browse the repository at this point in the history
  • Loading branch information
Justintime50 authored Jun 20, 2023
1 parent f538aee commit d297fde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit d297fde

Please sign in to comment.