From cb24e6f6e5ff1501ec7bfb34f994f1224f6aeb80 Mon Sep 17 00:00:00 2001 From: Emanuele Palazzetti Date: Sun, 1 Oct 2017 23:56:02 -0700 Subject: [PATCH] [faraday] update the HTTP_HEADER_PARENT_ID to send the span_id instead of parent_id --- lib/ddtrace/contrib/faraday/middleware.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ddtrace/contrib/faraday/middleware.rb b/lib/ddtrace/contrib/faraday/middleware.rb index 0a1272d1737..08f85eaa6be 100644 --- a/lib/ddtrace/contrib/faraday/middleware.rb +++ b/lib/ddtrace/contrib/faraday/middleware.rb @@ -56,7 +56,7 @@ def handle_response(span, env) def propagate!(span, env) env[:request_headers].merge!( Ext::DistributedTracing::HTTP_HEADER_TRACE_ID => span.trace_id, - Ext::DistributedTracing::HTTP_HEADER_PARENT_ID => span.parent_id + Ext::DistributedTracing::HTTP_HEADER_PARENT_ID => span.span_id ) end