diff --git a/sentry-rails/spec/sentry/rails/tracing/active_support_subscriber_spec.rb b/sentry-rails/spec/sentry/rails/tracing/active_support_subscriber_spec.rb index 033b22eb5..00e47410d 100644 --- a/sentry-rails/spec/sentry/rails/tracing/active_support_subscriber_spec.rb +++ b/sentry-rails/spec/sentry/rails/tracing/active_support_subscriber_spec.rb @@ -128,17 +128,18 @@ Rails.cache.read("my_cache_key_non_existing") transaction.finish - expect(transport.events.count).to eq(1) cache_transaction = transport.events.first.to_hash expect(cache_transaction[:type]).to eq("transaction") expect(cache_transaction[:spans].count).to eq(2) expect(cache_transaction[:spans][0][:op]).to eq("cache.get") expect(cache_transaction[:spans][0][:origin]).to eq("auto.cache.rails") + expect(cache_transaction[:spans][0][:data]['cache.key']).to eq(["my_cache_key"]) expect(cache_transaction[:spans][0][:data]['cache.hit']).to eq(true) expect(cache_transaction[:spans][1][:op]).to eq("cache.get") expect(cache_transaction[:spans][1][:origin]).to eq("auto.cache.rails") + expect(cache_transaction[:spans][0][:data]['cache.key']).to eq(["my_cache_key_non_existing"]) expect(cache_transaction[:spans][1][:data]['cache.hit']).to eq(false) end end