@@ -12,6 +12,7 @@ describe('redis auto instrumentation', () => {
12
12
expect . objectContaining ( {
13
13
description : 'set test-key [1 other arguments]' ,
14
14
op : 'db' ,
15
+ origin : 'auto.db.otel.redis' ,
15
16
data : expect . objectContaining ( {
16
17
'sentry.op' : 'db' ,
17
18
'db.system' : 'redis' ,
@@ -23,6 +24,7 @@ describe('redis auto instrumentation', () => {
23
24
expect . objectContaining ( {
24
25
description : 'get test-key' ,
25
26
op : 'db' ,
27
+ origin : 'auto.db.otel.redis' ,
26
28
data : expect . objectContaining ( {
27
29
'sentry.op' : 'db' ,
28
30
'db.system' : 'redis' ,
@@ -48,6 +50,7 @@ describe('redis auto instrumentation', () => {
48
50
expect . objectContaining ( {
49
51
description : 'set ioredis-cache:test-key [1 other arguments]' ,
50
52
op : 'cache.put' ,
53
+ origin : 'auto.db.otel.redis' ,
51
54
data : expect . objectContaining ( {
52
55
'db.statement' : 'set ioredis-cache:test-key [1 other arguments]' ,
53
56
'cache.key' : 'ioredis-cache:test-key' ,
@@ -60,6 +63,7 @@ describe('redis auto instrumentation', () => {
60
63
expect . objectContaining ( {
61
64
description : 'get ioredis-cache:test-key' ,
62
65
op : 'cache.get_item' , // todo: will be changed to cache.get
66
+ origin : 'auto.db.otel.redis' ,
63
67
data : expect . objectContaining ( {
64
68
'db.statement' : 'get ioredis-cache:test-key' ,
65
69
'cache.hit' : true ,
@@ -73,6 +77,7 @@ describe('redis auto instrumentation', () => {
73
77
expect . objectContaining ( {
74
78
description : 'get ioredis-cache:unavailable-data' ,
75
79
op : 'cache.get_item' , // todo: will be changed to cache.get
80
+ origin : 'auto.db.otel.redis' ,
76
81
data : expect . objectContaining ( {
77
82
'db.statement' : 'get ioredis-cache:unavailable-data' ,
78
83
'cache.hit' : false ,
0 commit comments