gitlab-labkit 0.16.1 → 0.16.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/labkit/middleware/sidekiq/context/server.rb +2 -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: db0f8ac56d95729fa2008c5b65bf1630137b99e977e09d1b5090b7a890c8f9a3
|
4
|
+
data.tar.gz: 94c467fca0a2d54afde08588b34e01a46c3b0c62db8384cd84db125504949413
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9617b98e2e29783bb2b644da067283e3166e1b78298d34f853431a94a6f4da7a1f219315697d958d0b3ed66dae8eceb4b8a1df409397999c09b3b6030e288f9d
|
7
|
+
data.tar.gz: 2dfc9f64306996c329795db9e5c463dfed0814fa1eb6430cd7bb788a0bc4ba757c70c9daeaf118f5d5efedbe829e4b393fffa2b95ebc88b035cbb2d58fee7633
|
@@ -8,7 +8,8 @@ module Labkit
|
|
8
8
|
# reinstantiate a context in which the job will run.
|
9
9
|
class Server
|
10
10
|
def call(_worker_class, job, _queue)
|
11
|
-
|
11
|
+
worker_name = (job["wrapped"].presence || job["class"]).to_s
|
12
|
+
data = job.merge(Labkit::Context.log_key(:caller_id) => worker_name)
|
12
13
|
|
13
14
|
Labkit::Context.with_context(data) do |_context|
|
14
15
|
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.16.
|
4
|
+
version: 0.16.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Newdigate
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-03-
|
11
|
+
date: 2021-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|