fluentd-sentry-output 0.0.8 → 0.0.9
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/fluent/plugin/out_sentry.rb +12 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0367abe3a511b3408103227eb805579a871278885646c48db004d3877db70aac
|
4
|
+
data.tar.gz: 9f46f8d169400ecc50fa0966687af9026c2d449ef041e43cbe9a9dbc11089225
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1b68f880841099d707e92bd13001d67352a52ab4e4f68d5f80df6da8c74147ffc7e4c673706ea84c64109c07ffb3bffb393417589f63313080fbdf30c5b7b97
|
7
|
+
data.tar.gz: e53223dc1b767ddea9cdbe458fba75bde8b6d0beaaf3dbe414afc0ce1be674ad5a995ccf4a3d4d9439297af14fa24c9230ffffb606c6f7b6a7f5fa7ef321f654
|
@@ -69,7 +69,8 @@ class SentryMessageFormat
|
|
69
69
|
exception,
|
70
70
|
platform,
|
71
71
|
transaction,
|
72
|
-
otel_trace_id
|
72
|
+
otel_trace_id,
|
73
|
+
user
|
73
74
|
)
|
74
75
|
@event_id = event_id
|
75
76
|
@timestamp = timestamp
|
@@ -80,9 +81,17 @@ class SentryMessageFormat
|
|
80
81
|
@request = request
|
81
82
|
@platform = platform
|
82
83
|
@transaction = transaction
|
84
|
+
|
83
85
|
unless otel_trace_id.include? 'ukw'
|
84
86
|
self.contexts = create_context(otel_trace_id)
|
85
87
|
end
|
88
|
+
|
89
|
+
@user = if user.nil?
|
90
|
+
{}
|
91
|
+
else
|
92
|
+
@user
|
93
|
+
end
|
94
|
+
|
86
95
|
self.exception = SentryException.new(exception)
|
87
96
|
end
|
88
97
|
|
@@ -151,7 +160,8 @@ module Fluent::Plugin
|
|
151
160
|
record['exception'] || nil,
|
152
161
|
record['platform'] || 'node',
|
153
162
|
record['transaction'] || nil,
|
154
|
-
record['oTelTraceId'] || 'ukw-ukw-1'
|
163
|
+
record['oTelTraceId'] || 'ukw-ukw-1',
|
164
|
+
record['user'] || {}
|
155
165
|
)
|
156
166
|
|
157
167
|
url = create_sentry_event_ingestion_url
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluentd-sentry-output
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anirudh Singh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-12-16 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|