From 7204b831a86bf8709ff1728a1a7d66d0eb8b1967 Mon Sep 17 00:00:00 2001 From: Aaron Hill Date: Wed, 7 Jan 2026 18:03:20 -0500 Subject: [PATCH] Mark 'durable.worker.execute_task' span as an OTEL 'server' span This create a new 'segment' in AWS X-ray, which makes the task execution show up as a distinct service, rather than being directly included in the parent as a subsegment --- src/worker.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/worker.rs b/src/worker.rs index b28ce49..dcf2c04 100644 --- a/src/worker.rs +++ b/src/worker.rs @@ -285,6 +285,8 @@ impl Worker { run_id = %task.run_id, task_name = %task.task_name, attempt = task.attempt, + // This makes things render nicely on AWS X-Ray when propagating trace contexts. + otel.kind = "server", ); // Extract and set parent trace context from headers (for distributed tracing)