@@ -47,10 +47,10 @@ defmodule OpentelemetryObanTest do
47
47
assert % {
48
48
"messaging.destination": "events" ,
49
49
"messaging.destination_kind": :queue ,
50
- "messaging. oban.job_id": _job_id ,
51
- "messaging. oban.max_attempts": 1 ,
52
- "messaging. oban.priority": 0 ,
53
- "messaging. oban.worker": "TestJob" ,
50
+ "oban.job .job_id": _job_id ,
51
+ "oban.job .max_attempts": 1 ,
52
+ "oban.job .priority": 0 ,
53
+ "oban.job .worker": "TestJob" ,
54
54
"messaging.system": :oban
55
55
} = :otel_attributes . map ( attributes )
56
56
end
@@ -147,13 +147,13 @@ defmodule OpentelemetryObanTest do
147
147
assert % {
148
148
"messaging.destination": "events" ,
149
149
"messaging.destination_kind": :queue ,
150
- "messaging. oban.attempt": 1 ,
151
- "messaging. oban.inserted_at": _inserted_at ,
152
- "messaging. oban.job_id": _job_id ,
153
- "messaging. oban.max_attempts": 1 ,
154
- "messaging. oban.priority": 0 ,
155
- "messaging. oban.scheduled_at": _scheduled_at ,
156
- "messaging. oban.worker": "TestJob" ,
150
+ "oban.job .attempt": 1 ,
151
+ "oban.job .inserted_at": _inserted_at ,
152
+ "oban.job .job_id": _job_id ,
153
+ "oban.job .max_attempts": 1 ,
154
+ "oban.job .priority": 0 ,
155
+ "oban.job .scheduled_at": _scheduled_at ,
156
+ "oban.job .worker": "TestJob" ,
157
157
"messaging.operation": :process ,
158
158
"messaging.system": :oban
159
159
} = :otel_attributes . map ( attributes )
@@ -177,13 +177,13 @@ defmodule OpentelemetryObanTest do
177
177
assert % {
178
178
"messaging.destination": "events" ,
179
179
"messaging.destination_kind": :queue ,
180
- "messaging. oban.attempt": 1 ,
181
- "messaging. oban.inserted_at": _inserted_at ,
182
- "messaging. oban.job_id": _job_id ,
183
- "messaging. oban.max_attempts": 1 ,
184
- "messaging. oban.priority": 0 ,
185
- "messaging. oban.scheduled_at": _scheduled_at ,
186
- "messaging. oban.worker": "TestJobThatReturnsError" ,
180
+ "oban.job .attempt": 1 ,
181
+ "oban.job .inserted_at": _inserted_at ,
182
+ "oban.job .job_id": _job_id ,
183
+ "oban.job .max_attempts": 1 ,
184
+ "oban.job .priority": 0 ,
185
+ "oban.job .scheduled_at": _scheduled_at ,
186
+ "oban.job .worker": "TestJobThatReturnsError" ,
187
187
"messaging.operation": :process ,
188
188
"messaging.system": :oban
189
189
} = :otel_attributes . map ( attributes )
@@ -255,13 +255,13 @@ defmodule OpentelemetryObanTest do
255
255
assert % {
256
256
"messaging.destination": "events" ,
257
257
"messaging.destination_kind": :queue ,
258
- "messaging. oban.attempt": 1 ,
259
- "messaging. oban.inserted_at": _inserted_at ,
260
- "messaging. oban.job_id": _job_id ,
261
- "messaging. oban.max_attempts": 1 ,
262
- "messaging. oban.priority": 0 ,
263
- "messaging. oban.scheduled_at": _scheduled_at ,
264
- "messaging. oban.worker": "TestJobThatThrowsException" ,
258
+ "oban.job .attempt": 1 ,
259
+ "oban.job .inserted_at": _inserted_at ,
260
+ "oban.job .job_id": _job_id ,
261
+ "oban.job .max_attempts": 1 ,
262
+ "oban.job .priority": 0 ,
263
+ "oban.job .scheduled_at": _scheduled_at ,
264
+ "oban.job .worker": "TestJobThatThrowsException" ,
265
265
"messaging.operation": :process ,
266
266
"messaging.system": :oban
267
267
} = :otel_attributes . map ( attributes )
0 commit comments