async 2.27.3 → 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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/async/node.rb +1 -1
- data/lib/async/scheduler.rb +2 -1
- data/lib/async/version.rb +1 -1
- data/lib/traces/provider/async/task.rb +2 -2
- data/license.md +2 -0
- data/readme.md +8 -8
- data/releases.md +8 -0
- data.tar.gz.sig +0 -0
- metadata +5 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a3d7b98c33c331424b3e803d3081ee28abc72ca52e910cc0ee49a51a1a90d8f0
|
4
|
+
data.tar.gz: 306153a2296017bfb169251642c9b64409b5152b98a28e49b1e02158b5c69634
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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-
|
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/scheduler.rb
CHANGED
@@ -583,7 +583,8 @@ module Async
|
|
583
583
|
# @yields {|task| ...} Executed within the task.
|
584
584
|
# @returns [Task] The task that was scheduled into the reactor.
|
585
585
|
def async(*arguments, **options, &block)
|
586
|
-
|
586
|
+
# Since this method is called by `run`, this warning is too excessive:
|
587
|
+
# warn("Async::Scheduler#async is deprecated. Use `run` or `Task#async` instead.", uplevel: 1, category: :deprecated) if $VERBOSE
|
587
588
|
|
588
589
|
Kernel.raise ClosedError if @selector.nil?
|
589
590
|
|
data/lib/async/version.rb
CHANGED
@@ -14,7 +14,7 @@ Traces::Provider(Async::Task) do
|
|
14
14
|
end
|
15
15
|
|
16
16
|
unless self.transient?
|
17
|
-
trace_context = Traces.
|
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
|
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,14 @@ 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
|
+
|
42
|
+
### v2.27.4
|
43
|
+
|
44
|
+
- Suppress excessive warning in `Async::Scheduler#async`.
|
45
|
+
|
38
46
|
### v2.27.3
|
39
47
|
|
40
48
|
- Ensure trace attributes are strings, fixes integration with OpenTelemetry.
|
@@ -80,14 +88,6 @@ Please see the [project releases](https://socketry.github.io/async/releases/inde
|
|
80
88
|
- Rename `ASYNC_SCHEDULER_DEFAULT_WORKER_POOL` to `ASYNC_SCHEDULER_WORKER_POOL`.
|
81
89
|
- [Fiber Stall Profiler](https://socketry.github.io/async/releases/index#fiber-stall-profiler)
|
82
90
|
|
83
|
-
### v2.21.1
|
84
|
-
|
85
|
-
- [Worker Pool](https://socketry.github.io/async/releases/index#worker-pool)
|
86
|
-
|
87
|
-
### v2.20.0
|
88
|
-
|
89
|
-
- [Traces and Metrics Providers](https://socketry.github.io/async/releases/index#traces-and-metrics-providers)
|
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,13 @@
|
|
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
|
+
|
7
|
+
## v2.27.4
|
8
|
+
|
9
|
+
- Suppress excessive warning in `Async::Scheduler#async`.
|
10
|
+
|
3
11
|
## v2.27.3
|
4
12
|
|
5
13
|
- Ensure trace attributes are strings, fixes integration with OpenTelemetry.
|
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.
|
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.
|
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.
|
143
|
+
version: '0.18'
|
142
144
|
executables: []
|
143
145
|
extensions: []
|
144
146
|
extra_rdoc_files: []
|
metadata.gz.sig
CHANGED
Binary file
|