You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: platform-includes/performance/improving-data/ruby.mdx
+22-1Lines changed: 22 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ end
18
18
19
19
### Adding Data Attributes to Spans
20
20
21
-
You can add data attributes to your spans. This data is visible in the trace explorer in Sentry. Data attributes can be strings, numbers or booleans, as well as (non-mixed) arrays of these types:
21
+
You can add data attributes to your spansthe same way, with the same type restrictions as described above.
22
22
23
23
```ruby
24
24
Sentry.with_child_span(op:"my-span") do |span|
@@ -31,3 +31,24 @@ Sentry.with_child_span(op: "my-span") do |span|
To attach data attributes to the transaction and all its spans, you can use <PlatformLinkto="/configuration/filtering/#using-before-send-transaction">`before_send_transaction`</PlatformLink>:
0 commit comments