activejob-traceable 0.4.0 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/rubygems.yml +20 -17
- data/README.md +4 -0
- data/lib/activejob/traceable/traceable.rb +2 -2
- data/lib/activejob/traceable/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: 1a17f1c27e05852b7b3a0cf68c319a80a43ff9335069e528fe71000e2093d912
|
4
|
+
data.tar.gz: d03d1495ed5a38c52f9e07c32c5e6bccafad9667e97bc4bd3bb955abbaa0982b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c14ae140ca918a8f5432c968c6ee880a2827c8cdb7e4e0113d620e4009ffffaab9165c3da86e65c18696b1cf1bab22205edbea139bdac52f47dcc0a902bde12
|
7
|
+
data.tar.gz: 525f18a48b6d707b9966d3f1eeabad5f733ca933d37cbd4ada20a173ff69d9203264158a302a6d63cb837d86560050dbed79a1905244b728c39fa32190d94204
|
@@ -2,31 +2,34 @@ name: Ruby Gem
|
|
2
2
|
|
3
3
|
on:
|
4
4
|
push:
|
5
|
-
|
6
|
-
-
|
5
|
+
branches:
|
6
|
+
- master
|
7
|
+
paths:
|
8
|
+
- lib/activejob/traceable/version.rb
|
7
9
|
|
8
10
|
jobs:
|
9
11
|
build:
|
10
12
|
name: Build and publish
|
11
13
|
runs-on: ubuntu-latest
|
14
|
+
environment: master
|
12
15
|
permissions:
|
13
16
|
contents: read
|
14
17
|
packages: write
|
15
18
|
|
16
19
|
steps:
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
20
|
+
- uses: actions/checkout@v3
|
21
|
+
- name: Set up Ruby 3.2
|
22
|
+
uses: ruby/setup-ruby@v1
|
23
|
+
with:
|
24
|
+
ruby-version: 3.2.2
|
22
25
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
26
|
+
- name: Publish to RubyGems
|
27
|
+
run: |
|
28
|
+
mkdir -p $HOME/.gem
|
29
|
+
touch $HOME/.gem/credentials
|
30
|
+
chmod 0600 $HOME/.gem/credentials
|
31
|
+
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
32
|
+
gem build *.gemspec
|
33
|
+
gem push *.gem
|
34
|
+
env:
|
35
|
+
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
|
data/README.md
CHANGED
@@ -58,3 +58,7 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/qonto/
|
|
58
58
|
## License
|
59
59
|
|
60
60
|
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
61
|
+
|
62
|
+
# Releasing
|
63
|
+
|
64
|
+
To publish a new version to rubygems, update the version in `lib/activejob/traceable/version.rb`, and merge.
|
@@ -37,8 +37,8 @@ module ActiveJob
|
|
37
37
|
def add_telemetry_data!
|
38
38
|
if ENV["OTEL_EXPORTER_OTLP_ENDPOINT"].present?
|
39
39
|
current_span = OpenTelemetry::Trace.current_span
|
40
|
-
@tracing_info[
|
41
|
-
@tracing_info[
|
40
|
+
@tracing_info["trace_id"] = current_span.context.trace_id.unpack1("H*")
|
41
|
+
@tracing_info["span_id"] = current_span.context.span_id.unpack1("H*")
|
42
42
|
end
|
43
43
|
end
|
44
44
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activejob-traceable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Qonto team
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-07-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activejob
|