posthog-rails 3.15.2 → 3.16.0
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3c51754943601dbb009cc9716c8c12da1efa7e363d69518c7e416315113f92bc
|
|
4
|
+
data.tar.gz: c50976aa271a002b8a24f7bf1cb905d5f8fcfe2f00fda0eb1ff9009142b525ec
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5c7a7e3fe38ff16dcdfe1ececce1928d3c9d79825180c922c15f9ab047df8b81e5fd338367095160ee8960d3725ca9ff30e7b83fad12957ae6d00720f3a3680e
|
|
7
|
+
data.tar.gz: f174fd1bd044c1b681afbb1e06d3521ccc4c129c2bb6b4ae9d5feb86f0e818d88fee1b50c4fff9c5ceaca0b0c52e7f1f1e4469bfb0324e6d8f0829f9bf072953
|
|
@@ -64,7 +64,12 @@ module PostHog
|
|
|
64
64
|
# Add serialized job arguments (be careful with sensitive data)
|
|
65
65
|
properties['$job_arguments'] = sanitize_job_arguments(arguments) if arguments.present?
|
|
66
66
|
|
|
67
|
-
PostHog.capture_exception(
|
|
67
|
+
PostHog.capture_exception(
|
|
68
|
+
exception,
|
|
69
|
+
distinct_id,
|
|
70
|
+
properties,
|
|
71
|
+
mechanism: { 'type' => 'active_job', 'handled' => false }
|
|
72
|
+
)
|
|
68
73
|
rescue StandardError => e
|
|
69
74
|
# Don't let PostHog errors break job processing
|
|
70
75
|
PostHog::Logging.logger.error("Failed to capture job exception: #{e.message}")
|
|
@@ -60,7 +60,12 @@ module PostHog
|
|
|
60
60
|
distinct_id = extract_distinct_id(env)
|
|
61
61
|
additional_properties = build_properties(request, env)
|
|
62
62
|
|
|
63
|
-
PostHog.capture_exception(
|
|
63
|
+
PostHog.capture_exception(
|
|
64
|
+
exception,
|
|
65
|
+
distinct_id,
|
|
66
|
+
additional_properties,
|
|
67
|
+
mechanism: { 'type' => 'rails', 'handled' => false }
|
|
68
|
+
)
|
|
64
69
|
rescue StandardError => e
|
|
65
70
|
PostHog::Logging.logger.error("Failed to capture exception: #{e.message}")
|
|
66
71
|
PostHog::Logging.logger.error("Backtrace: #{e.backtrace&.first(5)&.join("\n")}")
|
|
@@ -41,7 +41,12 @@ module PostHog
|
|
|
41
41
|
end
|
|
42
42
|
end
|
|
43
43
|
|
|
44
|
-
PostHog.capture_exception(
|
|
44
|
+
PostHog.capture_exception(
|
|
45
|
+
error,
|
|
46
|
+
distinct_id,
|
|
47
|
+
properties,
|
|
48
|
+
mechanism: { 'type' => 'rails_error_reporter', 'handled' => handled }
|
|
49
|
+
)
|
|
45
50
|
rescue StandardError => e
|
|
46
51
|
PostHog::Logging.logger.error("Failed to report error via subscriber: #{e.message}")
|
|
47
52
|
PostHog::Logging.logger.error("Backtrace: #{e.backtrace&.first(5)&.join("\n")}")
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: posthog-rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.
|
|
4
|
+
version: 3.16.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- PostHog
|
|
@@ -29,14 +29,14 @@ dependencies:
|
|
|
29
29
|
requirements:
|
|
30
30
|
- - '='
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
|
-
version: 3.
|
|
32
|
+
version: 3.16.0
|
|
33
33
|
type: :runtime
|
|
34
34
|
prerelease: false
|
|
35
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
36
36
|
requirements:
|
|
37
37
|
- - '='
|
|
38
38
|
- !ruby/object:Gem::Version
|
|
39
|
-
version: 3.
|
|
39
|
+
version: 3.16.0
|
|
40
40
|
description: Automatic exception tracking and instrumentation for Ruby on Rails applications
|
|
41
41
|
using PostHog
|
|
42
42
|
email: engineering@posthog.com
|