async 2.27.4 → 2.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2231cc467de066011727840c1b920b6e5b73e3e3f93c1e899a63b029386e8d71
4
- data.tar.gz: 2b6b38402df6fe44e6c00409263e336df91adc2ad99262e905227e8dbd60138d
3
+ metadata.gz: a3d7b98c33c331424b3e803d3081ee28abc72ca52e910cc0ee49a51a1a90d8f0
4
+ data.tar.gz: 306153a2296017bfb169251642c9b64409b5152b98a28e49b1e02158b5c69634
5
5
  SHA512:
6
- metadata.gz: e1f5963baf4efecc92493ac6199e196360688a076eaaa8dbd77aa836baab7ef0f5d9fa42753052e078ec9617f6d9536411f62978000b2c9453390a81a67ac352
7
- data.tar.gz: f2729d26181a95a16ed26b8ed561c95249ae9a10f5ee952adab944327e97cc5eac7c940bf943f3ce8ba74e7f1ec927ec644427dd0f0eb9849762a38d4e18de47
6
+ metadata.gz: 580a4f849c6344fd1968c7376b801ce5ed2ee1a3eb79390793f1e9a3c370f12abb2a5664d46cf3b6d75067896365fd762ccdcf491a3fdf25471458284ac86fa2
7
+ data.tar.gz: 914a5d6bcfaca6c91bf8437b9d5d3e0c894d9666c3819a0c822cc1173af44ce92c9ae4ce901cc1292543d5624c58aa693aed8a4e0ae9e96a7b7c8b9150bc003d
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/async/node.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2017-2024, by Samuel Williams.
4
+ # Copyright, 2017-2025, by Samuel Williams.
5
5
  # Copyright, 2017, by Kent Gruber.
6
6
  # Copyright, 2022, by Shannon Skipper.
7
7
  # Copyright, 2025, by Shopify Inc.
data/lib/async/version.rb CHANGED
@@ -4,5 +4,5 @@
4
4
  # Copyright, 2017-2025, by Samuel Williams.
5
5
 
6
6
  module Async
7
- VERSION = "2.27.4"
7
+ VERSION = "2.28.0"
8
8
  end
@@ -14,7 +14,7 @@ Traces::Provider(Async::Task) do
14
14
  end
15
15
 
16
16
  unless self.transient?
17
- trace_context = Traces.trace_context
17
+ trace_context = Traces.current_context
18
18
  end
19
19
 
20
20
  attributes = {
@@ -25,7 +25,7 @@ Traces::Provider(Async::Task) do
25
25
 
26
26
  # Run the trace in the context of the child task:
27
27
  super do
28
- Traces.trace_context = trace_context
28
+ Traces.with_context(trace_context)
29
29
 
30
30
  if annotation = self.annotation
31
31
  attributes["annotation"] = annotation
data/license.md CHANGED
@@ -32,6 +32,8 @@ Copyright, 2025, by Mark Montroy.
32
32
  Copyright, 2025, by Shigeru Nakajima.
33
33
  Copyright, 2025, by Alan Wu.
34
34
  Copyright, 2025, by Shopify Inc.
35
+ Copyright, 2025, by Josh Teeter.
36
+ Copyright, 2025, by Jatin Goyal.
35
37
 
36
38
  Permission is hereby granted, free of charge, to any person obtaining a copy
37
39
  of this software and associated documentation files (the "Software"), to deal
data/readme.md CHANGED
@@ -35,6 +35,10 @@ Please see the [project documentation](https://socketry.github.io/async/) for mo
35
35
 
36
36
  Please see the [project releases](https://socketry.github.io/async/releases/index) for all releases.
37
37
 
38
+ ### v2.28.0
39
+
40
+ - Use `Traces.current_context` and `Traces.with_context` for better integration with OpenTelemetry.
41
+
38
42
  ### v2.27.4
39
43
 
40
44
  - Suppress excessive warning in `Async::Scheduler#async`.
@@ -84,10 +88,6 @@ Please see the [project releases](https://socketry.github.io/async/releases/inde
84
88
  - Rename `ASYNC_SCHEDULER_DEFAULT_WORKER_POOL` to `ASYNC_SCHEDULER_WORKER_POOL`.
85
89
  - [Fiber Stall Profiler](https://socketry.github.io/async/releases/index#fiber-stall-profiler)
86
90
 
87
- ### v2.21.1
88
-
89
- - [Worker Pool](https://socketry.github.io/async/releases/index#worker-pool)
90
-
91
91
  ## See Also
92
92
 
93
93
  - [async-http](https://github.com/socketry/async-http) — Asynchronous HTTP client/server.
data/releases.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Releases
2
2
 
3
+ ## v2.28.0
4
+
5
+ - Use `Traces.current_context` and `Traces.with_context` for better integration with OpenTelemetry.
6
+
3
7
  ## v2.27.4
4
8
 
5
9
  - Suppress excessive warning in `Async::Scheduler#async`.
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: async
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.27.4
4
+ version: 2.28.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -20,7 +20,9 @@ authors:
20
20
  - Dimitar Peychinov
21
21
  - Gert Goet
22
22
  - Jahfer Husain
23
+ - Jatin Goyal
23
24
  - Jiang Jinyang
25
+ - Josh Teeter
24
26
  - Julien Portalier
25
27
  - Jun Jiang
26
28
  - Ken Muryoi
@@ -131,14 +133,14 @@ dependencies:
131
133
  requirements:
132
134
  - - "~>"
133
135
  - !ruby/object:Gem::Version
134
- version: '0.15'
136
+ version: '0.18'
135
137
  type: :runtime
136
138
  prerelease: false
137
139
  version_requirements: !ruby/object:Gem::Requirement
138
140
  requirements:
139
141
  - - "~>"
140
142
  - !ruby/object:Gem::Version
141
- version: '0.15'
143
+ version: '0.18'
142
144
  executables: []
143
145
  extensions: []
144
146
  extra_rdoc_files: []
metadata.gz.sig CHANGED
Binary file