posthog-rails 3.5.2 → 3.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/posthog/rails/capture_exceptions.rb +1 -1
- data/lib/posthog/rails/railtie.rb +5 -7
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8b7a93ce29b1528ad68c2b03e82400e3b986c6bf78fab3f3dfed6e54079d271a
|
|
4
|
+
data.tar.gz: 1c818a7ce001ab48a469a294a0f0dad6643e4e1a14975423b3a57cfe0fa9b240
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 30bbf87a63ef62bce4c0146ba49209d53bdbf3774cb45da43fcbc0ca3c20ed416f182fc811c4446300a370a39a37afb68066384c162a66c99149b4cb3112c9a7
|
|
7
|
+
data.tar.gz: 3ec3f4b8daa595bc1c22a8d043d6815d6ec9a7d0c6daa64f789aea16cc1403397a5ffd4eddd36dbdef10fa84f9e827e27997652e2eae08f2d941e1460823e399
|
|
@@ -99,7 +99,7 @@ module PostHog
|
|
|
99
99
|
def build_properties(request, env)
|
|
100
100
|
properties = {
|
|
101
101
|
'$exception_source' => 'rails',
|
|
102
|
-
'$
|
|
102
|
+
'$current_url' => safe_serialize(request.url),
|
|
103
103
|
'$request_method' => safe_serialize(request.method),
|
|
104
104
|
'$request_path' => safe_serialize(request.path)
|
|
105
105
|
}
|
|
@@ -111,13 +111,11 @@ module PostHog
|
|
|
111
111
|
at_exit { PostHog.client&.shutdown if PostHog.initialized? }
|
|
112
112
|
end
|
|
113
113
|
|
|
114
|
-
def
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
app.config.middleware.use(middleware)
|
|
120
|
-
end
|
|
114
|
+
def insert_middleware_after(app, target, middleware)
|
|
115
|
+
# During initialization, app.config.middleware is a MiddlewareStackProxy
|
|
116
|
+
# which only supports recording operations (insert_after, use, etc.)
|
|
117
|
+
# and does NOT support query methods like include?.
|
|
118
|
+
app.config.middleware.insert_after(target, middleware)
|
|
121
119
|
end
|
|
122
120
|
|
|
123
121
|
def self.register_error_subscriber
|