gitlab-labkit 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/labkit/context.rb +1 -1
- data/lib/labkit/middleware/sidekiq/client.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: 96e58c297e4b4b8f29467edac27487b89407c59dd072a7c736d2dfc3f4573c3f
|
4
|
+
data.tar.gz: 3b01d2e4b5c479b049e46a6bb0097bdf0e181ad914f33e54c953c33719ad3864
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 654848ccf3830ed19d6e1561653d6a984cf17764dd53854686882805cda341b6aeef3b57774cae56ef0bcfcdc6e25cb4f4d29caf3811708a74fe733023a098cb
|
7
|
+
data.tar.gz: 1a4f9c0582ae5d184318b1c28abbdabf807bbccba0e32cab23861eef84835655640dad32321349beeb5d7fc92a7b2b0c4f14d6a3414b62355c57d0141c783534
|
data/lib/labkit/context.rb
CHANGED
@@ -21,7 +21,7 @@ module Labkit
|
|
21
21
|
LOG_KEY = "meta"
|
22
22
|
CORRELATION_ID_KEY = "correlation_id"
|
23
23
|
RAW_KEYS = [CORRELATION_ID_KEY].freeze
|
24
|
-
KNOWN_KEYS = %w[user project root_namespace].freeze
|
24
|
+
KNOWN_KEYS = %w[user project root_namespace subscription_plan caller_id].freeze
|
25
25
|
|
26
26
|
class << self
|
27
27
|
def with_context(attributes = {})
|
@@ -8,7 +8,7 @@ module Labkit
|
|
8
8
|
# be reinstantiated by Sidekiq-server when running the job.
|
9
9
|
class Client
|
10
10
|
def call(_worker_class, job, _queue, _redis_pool)
|
11
|
-
Labkit::Context.with_context do |context|
|
11
|
+
Labkit::Context.with_context(caller_id: job["class"]) do |context|
|
12
12
|
job.merge!(context.to_h)
|
13
13
|
|
14
14
|
yield
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitlab-labkit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Newdigate
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|