Skip to content

Commit 838bf54

Browse files
committed
Update changelog
1 parent 396262a commit 838bf54

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,22 @@
178178
- Rescue `ThreadError` in `SessionFlusher` and stop creating threads if flusher is killed [#1851](https://github.com/getsentry/sentry-ruby/issues/1851)
179179
- Fixes [#1848](https://github.com/getsentry/sentry-ruby/issues/1848)
180180
181+
- Support `Sentry::Transaction#set_measurement` [#1838](https://github.com/getsentry/sentry-ruby/pull/1838)
182+
183+
Usage:
184+
185+
```rb
186+
# enable this experimental feature first
187+
Sentry.init do |config|
188+
# other configs
189+
config.experiments.custom_measurements = true
190+
end
191+
192+
# in your app
193+
transaction = Sentry.get_current_scope.get_transaction
194+
transaction.set_measurement("metrics.foo", 0.5, "millisecond")
195+
```
196+
181197
### Refactoring
182198
183199
- Move envelope item processing/trimming logic to the Item class [#1824](https://github.com/getsentry/sentry-ruby/pull/1824)

0 commit comments

Comments
 (0)