mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-07-05 00:00:59 -04:00
Compare commits
6 Commits
73c3969220
...
8c4c4d7668
Author | SHA1 | Date | |
---|---|---|---|
|
8c4c4d7668 | ||
|
7f4fe2120e | ||
|
6dc009579d | ||
|
c2bb4dbceb | ||
|
46eca72f79 | ||
|
2dec63e6b0 |
@ -45,9 +45,7 @@ Style/AccessModifierDeclarations:
|
|||||||
EnforcedStyle: inline
|
EnforcedStyle: inline
|
||||||
|
|
||||||
Style/AsciiComments:
|
Style/AsciiComments:
|
||||||
AllowedChars:
|
Enabled: false
|
||||||
- ’
|
|
||||||
- €
|
|
||||||
|
|
||||||
Style/FrozenStringLiteralComment:
|
Style/FrozenStringLiteralComment:
|
||||||
EnforcedStyle: always
|
EnforcedStyle: always
|
||||||
|
@ -1 +1 @@
|
|||||||
v184
|
v204
|
@ -261,9 +261,13 @@ For example:
|
|||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
Stripe::Instrumentation.subscribe(:request_end) do |request_event|
|
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 = {
|
tags = {
|
||||||
method: request_event.method,
|
method: request_event.method,
|
||||||
resource: request_event.path.split('/')[2],
|
resource: resource,
|
||||||
code: request_event.http_status,
|
code: request_event.http_status,
|
||||||
retries: request_event.num_retries
|
retries: request_event.num_retries
|
||||||
}
|
}
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
# Report test coverage to coveralls for only one Ruby version to avoid
|
# Report test coverage to coveralls for only one Ruby version to avoid
|
||||||
# repeated builds. This also accounts for coveralls_reborn requiring
|
# repeated builds. This also accounts for coveralls_reborn requiring
|
||||||
# RUBY_VERSION >= 2.5.
|
# RUBY_VERSION >= 2.5.
|
||||||
if RUBY_VERSION.start_with?("3.1.")
|
if ENV.key?("COVERALLS_REPO_TOKEN") && RUBY_VERSION.start_with?("3.1.")
|
||||||
require "coveralls"
|
require "coveralls"
|
||||||
Coveralls.wear!
|
Coveralls.wear!
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user