graphql-metrics 5.0.6 → 5.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/graphql/metrics/trace.rb +2 -1
- data/lib/graphql/metrics/version.rb +1 -1
- 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: fb76c2152e1b9b2f4aa99e247bbe12d4c73dc025782f0aab882b13b52c2fc842
|
4
|
+
data.tar.gz: 704828351a5ecd8d46543137fae938e9305a3e3387cfd09f18658ccc14805ea4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a8482de9c2476cdda17d2368a9a814c3be8344bf53e6599dff40302db2e0d8386d7f2e7882862253b0bd58a1cdeda1429d541953e69c85ba897019b0f18fbf7
|
7
|
+
data.tar.gz: d42a59103325ed909e1d4954269c4fd9d99c70207302adfc6e490005657fff87dd1318dc3d37deb0da60d0561a4c588b08aeaba26204fb8ed0bb71678b0548a5
|
data/CHANGELOG.md
CHANGED
@@ -181,13 +181,14 @@ module GraphQL
|
|
181
181
|
ns = query.context.namespace(CONTEXT_NAMESPACE)
|
182
182
|
offset_time = ns[GraphQL::Metrics::QUERY_START_TIME_MONOTONIC]
|
183
183
|
start_time = GraphQL::Metrics.current_time_monotonic
|
184
|
+
path = query.context[:current_path]
|
184
185
|
|
185
186
|
result = yield
|
186
187
|
|
187
188
|
duration = GraphQL::Metrics.current_time_monotonic - start_time
|
188
189
|
time_since_offset = start_time - offset_time if offset_time
|
189
190
|
|
190
|
-
path_excluding_numeric_indicies =
|
191
|
+
path_excluding_numeric_indicies = path.select { |p| p.is_a?(String) }
|
191
192
|
ns[context_key][path_excluding_numeric_indicies] ||= []
|
192
193
|
ns[context_key][path_excluding_numeric_indicies] << {
|
193
194
|
start_time_offset: time_since_offset, duration: duration
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graphql-metrics
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.
|
4
|
+
version: 5.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christopher Butcher
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-04-
|
11
|
+
date: 2023-04-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: graphql
|