|
6 | 6 | # The browser SDK's browserTracing integration propagates sentry-trace + |
7 | 7 | # baggage to the Rails request; the Rails AJ extension emits a |
8 | 8 | # queue.publish span on the http.server transaction at enqueue, and a |
9 | | -# queue.active_job consumer transaction when the :async pool runs the |
| 9 | +# queue.process consumer transaction when the :async pool runs the |
10 | 10 | # job. All three rails-side artifacts must share one trace. |
11 | 11 | RSpec.describe "ActiveJob distributed tracing", type: :e2e do |
12 | 12 | it "links the browser fetch, the controller, the producer span, and the consumer transaction into one trace" do |
|
43 | 43 | # Consumer transaction continued the same trace and is parented on |
44 | 44 | # the publish span. |
45 | 45 | expect(job_txn.dig("contexts", "trace", "trace_id")).to eq(incoming_trace_id) |
46 | | - expect(job_txn.dig("contexts", "trace", "op")).to eq("queue.active_job") |
| 46 | + expect(job_txn.dig("contexts", "trace", "op")).to eq("queue.process") |
47 | 47 | expect(job_txn.dig("contexts", "trace", "parent_span_id")).to eq(publish_span["span_id"]) |
48 | 48 | expect(job_txn.dig("contexts", "trace", "data", "messaging.message.id")) |
49 | 49 | .to eq(publish_span.dig("data", "messaging.message.id")) |
@@ -71,7 +71,7 @@ def wait_for_trace(timeout: 10) |
71 | 71 |
|
72 | 72 | trace_id = http_txn.dig("contexts", "trace", "trace_id") |
73 | 73 | job_txn = transactions.find do |t| |
74 | | - t.dig("contexts", "trace", "op") == "queue.active_job" && |
| 74 | + t.dig("contexts", "trace", "op") == "queue.process" && |
75 | 75 | t.dig("contexts", "trace", "trace_id") == trace_id |
76 | 76 | end |
77 | 77 | return [http_txn, job_txn] if job_txn |
|
0 commit comments