Skip to content

Commit eeb26e0

Browse files
committed
Ensure trace attributes are strings.
1 parent 176ee76 commit eeb26e0

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

lib/traces/provider/async/task.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def schedule(&block)
1919

2020
attributes = {
2121
# We use the instance variable as it corresponds to the user-provided block.
22-
"block" => @block,
22+
"block" => @block.to_s,
2323
"transient" => self.transient?,
2424
}
2525

releases.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Releases
22

3+
## Unreleased
4+
5+
- Ensure trace attributes are strings, fixes integration with OpenTelemetry.
6+
37
## v2.27.2
48

59
- Fix `context/index.yaml` schema.

0 commit comments

Comments
 (0)