You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add custom RuboCop cop for enforcing test class inheritance
This commit message was generated with the help of LLMs.
This commit introduces a new RuboCop custom cop that ensures all test classes inherit from `SpeedshopCloudwatchTest`. This helps maintain consistency in test setup and behavior across the codebase. Additionally, updates to the RuboCop configuration file enable this new cop for enforcement.
Co-Authored-By: Claude <noreply@anthropic.com>
For a full explanation of every metric, [read our docs.](./docs/metrics.md)
36
-
37
34
This gem is for **infrastructure and queue metrics**, not application performance metrics, like response times, job execution times, or error rates. Use your APM for that stuff.
38
35
39
36
## Installation
@@ -46,6 +43,7 @@ gem `speedshop_cloudwatch`
46
43
# config/initializers/speedshop-cloudwatch.rb
47
44
Speedshop::Cloudwatch::Puma.register
48
45
Speedshop::Cloudwatch::Sidekiq.register
46
+
# If you're not using Rails, see the section on `Rack` below.
49
47
```
50
48
51
49
```ruby
@@ -58,7 +56,7 @@ end
58
56
59
57
## Configuration
60
58
61
-
You can configure which integrations are enabled, which metrics are reported, and the CloudWatch namespace for each integration:
59
+
You can configure which metrics are reported, the CloudWatch namespace for each integration, and other settings:
62
60
63
61
```ruby
64
62
Speedshop::Cloudwatch.configure do |config|
@@ -68,9 +66,6 @@ Speedshop::Cloudwatch.configure do |config|
68
66
# Optional: Custom logger (defaults to Rails.logger if available, otherwise STDOUT)
0 commit comments