Compare commits

..

No commits in common. "8c4c4d766884e40357da1157ed9349a8edbb6219" and "73c3969220582a6e519e0512b8cc4c8840945c73" have entirely different histories.

4 changed files with 6 additions and 8 deletions

View File

@ -45,7 +45,9 @@ Style/AccessModifierDeclarations:
EnforcedStyle: inline
Style/AsciiComments:
Enabled: false
AllowedChars:
-
-
Style/FrozenStringLiteralComment:
EnforcedStyle: always

View File

@ -1 +1 @@
v204
v184

View File

@ -261,13 +261,9 @@ 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)
resource = path_parts.map { |part| part.match?(/\A[a-z_]+\z/) ? part : ":id" }.join("/")
tags = {
method: request_event.method,
resource: resource,
resource: request_event.path.split('/')[2],
code: request_event.http_status,
retries: request_event.num_retries
}

View File

@ -3,7 +3,7 @@
# Report test coverage to coveralls for only one Ruby version to avoid
# repeated builds. This also accounts for coveralls_reborn requiring
# RUBY_VERSION >= 2.5.
if ENV.key?("COVERALLS_REPO_TOKEN") && RUBY_VERSION.start_with?("3.1.")
if RUBY_VERSION.start_with?("3.1.")
require "coveralls"
Coveralls.wear!
end