File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33- Respect port info provided in user's DSN [ #1702 ] ( https://github.com/getsentry/sentry-ruby/pull/1702 )
44 - Fixes [ #1699 ] ( https://github.com/getsentry/sentry-ruby/issues/1699 )
5+ - Capture transaction tags [ #1701 ] ( https://github.com/getsentry/sentry-ruby/pull/1701 )
56
67## 5.0.1
78
Original file line number Diff line number Diff line change 338338 expect ( event [ :spans ] ) . to be_empty
339339 end
340340
341- it "doesn't override the event 's transaction attribute with the scope's " do
341+ it "assigns the transaction 's transaction name " do
342342 subject . finish
343343
344344 expect ( events . count ) . to eq ( 1 )
347347 expect ( event [ :transaction ] ) . to eq ( "foo" )
348348 end
349349
350- it "doesn't override the event's tags attribute with the scope's" do
350+ it "assigns the transaction's tags" do
351+ Sentry . set_tags ( name : "apple" )
352+
351353 subject . set_tag ( :foo , 'bar' )
352354
353355 subject . finish
354356
355357 expect ( events . count ) . to eq ( 1 )
356358 event = events . last . to_hash
357359
358- expect ( event [ :tags ] ) . to eq ( { foo : 'bar' } )
360+ expect ( event [ :tags ] ) . to eq ( { foo : 'bar' , name : "apple" } )
359361 end
360362
361363 describe "hub selection" do
You can’t perform that action at this time.
0 commit comments