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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c306478521702991b9c5ba1d80e6ab1c3bcb42b70562890a48204ab9e320c6b8
4
- data.tar.gz: 5b4fdf319fa79405c89c0de7d91617602a6aec6bf784223a6d8e86830c6900ff
3
+ metadata.gz: 96e58c297e4b4b8f29467edac27487b89407c59dd072a7c736d2dfc3f4573c3f
4
+ data.tar.gz: 3b01d2e4b5c479b049e46a6bb0097bdf0e181ad914f33e54c953c33719ad3864
5
5
  SHA512:
6
- metadata.gz: f88db3bf552afa6f20e95e8760d91b97149d41e4b1cfe995c0e64bdc852ca0490713ba52a5bdcadebea1c827b83b344df61695386741c37d2dd8458243bd0144
7
- data.tar.gz: a1ab50bd164cd46da510b03ac53aa3e148a6b8720611ef380b288d282072446b06772c43777c019da4fd93d5d9b1e1f197704fc36bf0b6e47985fc35535e2a9b
6
+ metadata.gz: 654848ccf3830ed19d6e1561653d6a984cf17764dd53854686882805cda341b6aeef3b57774cae56ef0bcfcdc6e25cb4f4d29caf3811708a74fe733023a098cb
7
+ data.tar.gz: 1a4f9c0582ae5d184318b1c28abbdabf807bbccba0e32cab23861eef84835655640dad32321349beeb5d7fc92a7b2b0c4f14d6a3414b62355c57d0141c783534
@@ -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.8.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: 2019-12-18 00:00:00.000000000 Z
11
+ date: 2020-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack