From 195fad8c0d65067f2f42195d645f91178271eb45 Mon Sep 17 00:00:00 2001 From: Steven Pham <2080348+gitstevenpham@users.noreply.github.com> Date: Mon, 3 Feb 2025 13:57:16 -0500 Subject: [PATCH 01/22] Update manual_instrumentation.md adding .Net entry --- .../en/data_streams/manual_instrumentation.md | 75 +++++++++++++++++++ 1 file changed, 75 insertions(+) diff --git a/content/en/data_streams/manual_instrumentation.md b/content/en/data_streams/manual_instrumentation.md index f2e60967dae0c..fea9dd58108b4 100644 --- a/content/en/data_streams/manual_instrumentation.md +++ b/content/en/data_streams/manual_instrumentation.md @@ -94,6 +94,81 @@ set_consume_checkpoint( "", "", headers.get ) +{{< /code-block >}} +{{% /tab %}} +{{% /tab %}} +{{% tab ".Net" %}} +
+ Note: DSM instrumentation will not work in Async operations +
+ +In your producer +{{< code-block lang="csharp" >}} +using Datadog.Trace; + +using (var scope = Tracer.Instance.StartActive("produce")) +{ + var headers = new Headers(); + var msg = new Message { Value = "any kind of value", Headers = headers}; + + new SpanContextInjector().InjectIncludingDsm( + msg.Headers, + SetHeader, + scope.Span.Context, + messageType: "", + target: "" + ); + + // Send your message + producer.Produce("your-topic-name", msg); +} + +// Specific to how the header is modeled +static void SetHeader(Headers headers, string key, string value) +{ + byte[] valueBytes = Encoding.UTF8.GetBytes(value); + headers.Add(new Header(key, valueBytes)); +} +{{< /code-block >}} + +In your consumer +{{< code-block lang="csharp" >}} +using Datadog.Trace; + +var msg = consumer.Consume(); +var parentContext = new SpanContextExtractor().ExtractIncludingDsm( + msg.Headers, + GetHeader, + messageType: "", + source: "" +); +var startTime = DateTimeOffset.UtcNow; + +using (var scope = Tracer.Instance.StartActive("consume", + new SpanCreationSettings, + { + Parent = parentContext, + StartTime = startTime + }) +) +{ + // Do something with the message +} + +// Specific to how the header is modeled +static IEnumerable GetHeader(Headers headers, string key) +{ + foreach (var header in headers) + { + string headerKey = header.Key; + + if (headerKey == key) + { + yield return Encoding.UTF8.GetString(header.GetValueBytes()); + } + } + yield return null; +} {{< /code-block >}} {{% /tab %}} {{< /tabs >}} From 11b551432c5509d9e50fda370a27611954e12e66 Mon Sep 17 00:00:00 2001 From: Steven Pham <2080348+gitstevenpham@users.noreply.github.com> Date: Mon, 3 Feb 2025 14:06:13 -0500 Subject: [PATCH 02/22] remove "will" --- content/en/data_streams/manual_instrumentation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/data_streams/manual_instrumentation.md b/content/en/data_streams/manual_instrumentation.md index fea9dd58108b4..b7b52a24625db 100644 --- a/content/en/data_streams/manual_instrumentation.md +++ b/content/en/data_streams/manual_instrumentation.md @@ -99,7 +99,7 @@ set_consume_checkpoint( {{% /tab %}} {{% tab ".Net" %}}
- Note: DSM instrumentation will not work in Async operations + Note: DSM instrumentation does not work in Async operations
In your producer From 6aa7930fbca73a828a854108316a317f597ad630 Mon Sep 17 00:00:00 2001 From: Steven Pham <2080348+gitstevenpham@users.noreply.github.com> Date: Mon, 3 Feb 2025 14:11:26 -0500 Subject: [PATCH 03/22] copy change --- content/en/data_streams/manual_instrumentation.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/content/en/data_streams/manual_instrumentation.md b/content/en/data_streams/manual_instrumentation.md index b7b52a24625db..5320a38757537 100644 --- a/content/en/data_streams/manual_instrumentation.md +++ b/content/en/data_streams/manual_instrumentation.md @@ -119,8 +119,7 @@ using (var scope = Tracer.Instance.StartActive("produce")) target: "" ); - // Send your message - producer.Produce("your-topic-name", msg); + // Produce the message } // Specific to how the header is modeled From 04a76cd643f8aec8ff2e2d027ebc04b2eedecbd4 Mon Sep 17 00:00:00 2001 From: Steven Pham <2080348+gitstevenpham@users.noreply.github.com> Date: Mon, 3 Feb 2025 14:30:47 -0500 Subject: [PATCH 04/22] fix typo remove extra `{{% /tab %}}` --- content/en/data_streams/manual_instrumentation.md | 1 - 1 file changed, 1 deletion(-) diff --git a/content/en/data_streams/manual_instrumentation.md b/content/en/data_streams/manual_instrumentation.md index 5320a38757537..3243fae3126c6 100644 --- a/content/en/data_streams/manual_instrumentation.md +++ b/content/en/data_streams/manual_instrumentation.md @@ -96,7 +96,6 @@ set_consume_checkpoint( {{< /code-block >}} {{% /tab %}} -{{% /tab %}} {{% tab ".Net" %}}
Note: DSM instrumentation does not work in Async operations From d3b2ed1a94f7a607d27573d2259891efc745c335 Mon Sep 17 00:00:00 2001 From: Steven Pham <2080348+gitstevenpham@users.noreply.github.com> Date: Mon, 3 Feb 2025 14:48:45 -0500 Subject: [PATCH 05/22] update code example --- content/en/data_streams/manual_instrumentation.md | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/content/en/data_streams/manual_instrumentation.md b/content/en/data_streams/manual_instrumentation.md index 3243fae3126c6..29eb3c2477df5 100644 --- a/content/en/data_streams/manual_instrumentation.md +++ b/content/en/data_streams/manual_instrumentation.md @@ -124,8 +124,7 @@ using (var scope = Tracer.Instance.StartActive("produce")) // Specific to how the header is modeled static void SetHeader(Headers headers, string key, string value) { - byte[] valueBytes = Encoding.UTF8.GetBytes(value); - headers.Add(new Header(key, valueBytes)); + headers.Add(new Header(key, value)); } {{< /code-block >}} @@ -156,16 +155,7 @@ using (var scope = Tracer.Instance.StartActive("consume", // Specific to how the header is modeled static IEnumerable GetHeader(Headers headers, string key) { - foreach (var header in headers) - { - string headerKey = header.Key; - - if (headerKey == key) - { - yield return Encoding.UTF8.GetString(header.GetValueBytes()); - } - } - yield return null; + yield return header.GetByKey(key); } {{< /code-block >}} {{% /tab %}} From d5f590fdc07f6553f409469a2f873d9d6b4d00a8 Mon Sep 17 00:00:00 2001 From: Steven Pham <2080348+gitstevenpham@users.noreply.github.com> Date: Mon, 3 Feb 2025 15:45:48 -0500 Subject: [PATCH 06/22] Update content/en/data_streams/manual_instrumentation.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Raphaël Vandon --- content/en/data_streams/manual_instrumentation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/data_streams/manual_instrumentation.md b/content/en/data_streams/manual_instrumentation.md index 29eb3c2477df5..4ea4079202417 100644 --- a/content/en/data_streams/manual_instrumentation.md +++ b/content/en/data_streams/manual_instrumentation.md @@ -132,6 +132,7 @@ In your consumer {{< code-block lang="csharp" >}} using Datadog.Trace; +var startTime = DateTimeOffset.UtcNow; var msg = consumer.Consume(); var parentContext = new SpanContextExtractor().ExtractIncludingDsm( msg.Headers, @@ -139,7 +140,6 @@ var parentContext = new SpanContextExtractor().ExtractIncludingDsm( messageType: "", source: "" ); -var startTime = DateTimeOffset.UtcNow; using (var scope = Tracer.Instance.StartActive("consume", new SpanCreationSettings, From 1c118c5be9d7f8bb40fa5c12dc1d9f67be561b61 Mon Sep 17 00:00:00 2001 From: Steven Pham <2080348+gitstevenpham@users.noreply.github.com> Date: Mon, 3 Feb 2025 15:45:53 -0500 Subject: [PATCH 07/22] Update content/en/data_streams/manual_instrumentation.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Raphaël Vandon --- content/en/data_streams/manual_instrumentation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/data_streams/manual_instrumentation.md b/content/en/data_streams/manual_instrumentation.md index 4ea4079202417..abe107169dde6 100644 --- a/content/en/data_streams/manual_instrumentation.md +++ b/content/en/data_streams/manual_instrumentation.md @@ -108,7 +108,7 @@ using Datadog.Trace; using (var scope = Tracer.Instance.StartActive("produce")) { var headers = new Headers(); - var msg = new Message { Value = "any kind of value", Headers = headers}; + var msg = new Message { Value = "any kind of value", Headers = headers}; new SpanContextInjector().InjectIncludingDsm( msg.Headers, From ee78b6ac3a4fb0677c8e497755748e78b2e31935 Mon Sep 17 00:00:00 2001 From: Steven Pham <2080348+gitstevenpham@users.noreply.github.com> Date: Mon, 3 Feb 2025 16:03:13 -0500 Subject: [PATCH 08/22] Update note about async --- content/en/data_streams/manual_instrumentation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/data_streams/manual_instrumentation.md b/content/en/data_streams/manual_instrumentation.md index abe107169dde6..11a192e917346 100644 --- a/content/en/data_streams/manual_instrumentation.md +++ b/content/en/data_streams/manual_instrumentation.md @@ -98,7 +98,7 @@ set_consume_checkpoint( {{% /tab %}} {{% tab ".Net" %}}
- Note: DSM instrumentation does not work in Async operations + Note: In async operations, this may not work as expected because the context derived from the incoming message can be lost when producing a new message in different threads.
In your producer From 21d4b50fe14573f7cc3a2fa37620f784aa8bb527 Mon Sep 17 00:00:00 2001 From: Steven Pham <2080348+gitstevenpham@users.noreply.github.com> Date: Mon, 3 Feb 2025 16:07:55 -0500 Subject: [PATCH 09/22] Update Trace Context Propagation section --- content/en/data_streams/manual_instrumentation.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/content/en/data_streams/manual_instrumentation.md b/content/en/data_streams/manual_instrumentation.md index 11a192e917346..0204039ad38a0 100644 --- a/content/en/data_streams/manual_instrumentation.md +++ b/content/en/data_streams/manual_instrumentation.md @@ -97,6 +97,8 @@ set_consume_checkpoint( {{< /code-block >}} {{% /tab %}} {{% tab ".Net" %}} +The following example will propogate the trace context. See (Trace Context Propagation)[https://docs.datadoghq.com/tracing/trace_collection/trace_context_propagation/?tab=net#additional-use-cases] on how this is done in general. +
Note: In async operations, this may not work as expected because the context derived from the incoming message can be lost when producing a new message in different threads.
From ded8f93da919913a100f1de6e974097682f2628d Mon Sep 17 00:00:00 2001 From: Steven Pham <2080348+gitstevenpham@users.noreply.github.com> Date: Mon, 3 Feb 2025 16:24:29 -0500 Subject: [PATCH 10/22] Fix link syntax --- content/en/data_streams/manual_instrumentation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/data_streams/manual_instrumentation.md b/content/en/data_streams/manual_instrumentation.md index 0204039ad38a0..27b572e906629 100644 --- a/content/en/data_streams/manual_instrumentation.md +++ b/content/en/data_streams/manual_instrumentation.md @@ -97,7 +97,7 @@ set_consume_checkpoint( {{< /code-block >}} {{% /tab %}} {{% tab ".Net" %}} -The following example will propogate the trace context. See (Trace Context Propagation)[https://docs.datadoghq.com/tracing/trace_collection/trace_context_propagation/?tab=net#additional-use-cases] on how this is done in general. +The following example propogates the trace context. See [Trace Context Propagation](https://docs.datadoghq.com/tracing/trace_collection/trace_context_propagation/?tab=net#additional-use-cases) on how this is done in general.
Note: In async operations, this may not work as expected because the context derived from the incoming message can be lost when producing a new message in different threads. From 13ba663892fa28612af5eafa6430aef85697387c Mon Sep 17 00:00:00 2001 From: Steven Pham <2080348+gitstevenpham@users.noreply.github.com> Date: Tue, 4 Feb 2025 09:34:48 -0500 Subject: [PATCH 11/22] Update content/en/data_streams/manual_instrumentation.md Co-authored-by: Bryce Eadie --- content/en/data_streams/manual_instrumentation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/data_streams/manual_instrumentation.md b/content/en/data_streams/manual_instrumentation.md index 27b572e906629..f9f65a728f230 100644 --- a/content/en/data_streams/manual_instrumentation.md +++ b/content/en/data_streams/manual_instrumentation.md @@ -110,7 +110,7 @@ using Datadog.Trace; using (var scope = Tracer.Instance.StartActive("produce")) { var headers = new Headers(); - var msg = new Message { Value = "any kind of value", Headers = headers}; + var msg = new Message { Value = "", Headers = headers}; new SpanContextInjector().InjectIncludingDsm( msg.Headers, From 81f343e03e1605e708026a2f2a4ea0cc99911c21 Mon Sep 17 00:00:00 2001 From: Steven Pham <2080348+gitstevenpham@users.noreply.github.com> Date: Tue, 4 Feb 2025 09:34:58 -0500 Subject: [PATCH 12/22] Update content/en/data_streams/manual_instrumentation.md Co-authored-by: Bryce Eadie --- content/en/data_streams/manual_instrumentation.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/content/en/data_streams/manual_instrumentation.md b/content/en/data_streams/manual_instrumentation.md index f9f65a728f230..9e73fe066da0b 100644 --- a/content/en/data_streams/manual_instrumentation.md +++ b/content/en/data_streams/manual_instrumentation.md @@ -130,7 +130,8 @@ static void SetHeader(Headers headers, string key, string value) } {{< /code-block >}} -In your consumer +#### Consumer configuration + {{< code-block lang="csharp" >}} using Datadog.Trace; From 8a0256a624933717a93a122a603eeaac8810842a Mon Sep 17 00:00:00 2001 From: Steven Pham <2080348+gitstevenpham@users.noreply.github.com> Date: Tue, 4 Feb 2025 09:35:06 -0500 Subject: [PATCH 13/22] Update content/en/data_streams/manual_instrumentation.md Co-authored-by: Bryce Eadie --- content/en/data_streams/manual_instrumentation.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/content/en/data_streams/manual_instrumentation.md b/content/en/data_streams/manual_instrumentation.md index 9e73fe066da0b..c3d8250502ca3 100644 --- a/content/en/data_streams/manual_instrumentation.md +++ b/content/en/data_streams/manual_instrumentation.md @@ -103,7 +103,8 @@ The following example propogates the trace context. See [Trace Context Propagati Note: In async operations, this may not work as expected because the context derived from the incoming message can be lost when producing a new message in different threads.
-In your producer +#### Producer configuration + {{< code-block lang="csharp" >}} using Datadog.Trace; From 6ada0ab3acf6535dfcf3480770440e0ca39491e5 Mon Sep 17 00:00:00 2001 From: Steven Pham <2080348+gitstevenpham@users.noreply.github.com> Date: Tue, 4 Feb 2025 09:35:12 -0500 Subject: [PATCH 14/22] Update content/en/data_streams/manual_instrumentation.md Co-authored-by: Bryce Eadie --- content/en/data_streams/manual_instrumentation.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/en/data_streams/manual_instrumentation.md b/content/en/data_streams/manual_instrumentation.md index c3d8250502ca3..c535b21df1cbf 100644 --- a/content/en/data_streams/manual_instrumentation.md +++ b/content/en/data_streams/manual_instrumentation.md @@ -141,8 +141,8 @@ var msg = consumer.Consume(); var parentContext = new SpanContextExtractor().ExtractIncludingDsm( msg.Headers, GetHeader, - messageType: "", - source: "" + messageType: "", + source: "" ); using (var scope = Tracer.Instance.StartActive("consume", From 492fadd77d0d974460368072b585c64ebad4ee3a Mon Sep 17 00:00:00 2001 From: Steven Pham <2080348+gitstevenpham@users.noreply.github.com> Date: Tue, 4 Feb 2025 09:35:18 -0500 Subject: [PATCH 15/22] Update content/en/data_streams/manual_instrumentation.md Co-authored-by: Bryce Eadie --- content/en/data_streams/manual_instrumentation.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/en/data_streams/manual_instrumentation.md b/content/en/data_streams/manual_instrumentation.md index c535b21df1cbf..7d89a12b2f078 100644 --- a/content/en/data_streams/manual_instrumentation.md +++ b/content/en/data_streams/manual_instrumentation.md @@ -117,8 +117,8 @@ using (var scope = Tracer.Instance.StartActive("produce")) msg.Headers, SetHeader, scope.Span.Context, - messageType: "", - target: "" + messageType: "", + target: "" ); // Produce the message From 7757875231b1bce4d4f3e16e452f5128bff15a7b Mon Sep 17 00:00:00 2001 From: Steven Pham <2080348+gitstevenpham@users.noreply.github.com> Date: Tue, 4 Feb 2025 09:39:16 -0500 Subject: [PATCH 16/22] Update content/en/data_streams/manual_instrumentation.md Co-authored-by: Bryce Eadie --- content/en/data_streams/manual_instrumentation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/data_streams/manual_instrumentation.md b/content/en/data_streams/manual_instrumentation.md index 7d89a12b2f078..41ecdabc1e7e5 100644 --- a/content/en/data_streams/manual_instrumentation.md +++ b/content/en/data_streams/manual_instrumentation.md @@ -97,7 +97,7 @@ set_consume_checkpoint( {{< /code-block >}} {{% /tab %}} {{% tab ".Net" %}} -The following example propogates the trace context. See [Trace Context Propagation](https://docs.datadoghq.com/tracing/trace_collection/trace_context_propagation/?tab=net#additional-use-cases) on how this is done in general. +The following example propagates the trace context. See [Trace Context Propagation][1] for more information.
Note: In async operations, this may not work as expected because the context derived from the incoming message can be lost when producing a new message in different threads. From 043e0ae0ddaf336f84fbe5a33c80ac919f88fe68 Mon Sep 17 00:00:00 2001 From: Steven Pham <2080348+gitstevenpham@users.noreply.github.com> Date: Tue, 4 Feb 2025 09:39:30 -0500 Subject: [PATCH 17/22] Update manual_instrumentation.md --- content/en/data_streams/manual_instrumentation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/data_streams/manual_instrumentation.md b/content/en/data_streams/manual_instrumentation.md index 41ecdabc1e7e5..10b2f233f4d5d 100644 --- a/content/en/data_streams/manual_instrumentation.md +++ b/content/en/data_streams/manual_instrumentation.md @@ -161,7 +161,7 @@ static IEnumerable GetHeader(Headers headers, string key) { yield return header.GetByKey(key); } -{{< /code-block >}} +{{< /code-block >}}[1]: https://docs.datadoghq.com/tracing/trace_collection/trace_context_propagation/?tab=net#additional-use-cases {{% /tab %}} {{< /tabs >}} ## Further Reading From b7ec528fddbd8e42f218f07fa57254bd6ff1152c Mon Sep 17 00:00:00 2001 From: Steven Pham <2080348+gitstevenpham@users.noreply.github.com> Date: Tue, 4 Feb 2025 10:27:11 -0500 Subject: [PATCH 18/22] Update manual_instrumentation.md --- content/en/data_streams/manual_instrumentation.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/content/en/data_streams/manual_instrumentation.md b/content/en/data_streams/manual_instrumentation.md index 10b2f233f4d5d..27897dacc67c9 100644 --- a/content/en/data_streams/manual_instrumentation.md +++ b/content/en/data_streams/manual_instrumentation.md @@ -97,7 +97,7 @@ set_consume_checkpoint( {{< /code-block >}} {{% /tab %}} {{% tab ".Net" %}} -The following example propagates the trace context. See [Trace Context Propagation][1] for more information. +The following example propagates the trace context. See [Trace Context Propagation][6] for more information.
Note: In async operations, this may not work as expected because the context derived from the incoming message can be lost when producing a new message in different threads. @@ -161,7 +161,7 @@ static IEnumerable GetHeader(Headers headers, string key) { yield return header.GetByKey(key); } -{{< /code-block >}}[1]: https://docs.datadoghq.com/tracing/trace_collection/trace_context_propagation/?tab=net#additional-use-cases +{{< /code-block >}} {{% /tab %}} {{< /tabs >}} ## Further Reading @@ -173,3 +173,4 @@ static IEnumerable GetHeader(Headers headers, string key) [3]: https://pypi.org/project/confluent-kafka/ [4]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-metadata.html [5]: /agent/remote_config/?tab=configurationyamlfile#enabling-remote-configuration +[6]: https://docs.datadoghq.com/tracing/trace_collection/trace_context_propagation/?tab=net#additional-use-cases From d399624c8644ce5e4dfdc01fc91fae20a2a0ca66 Mon Sep 17 00:00:00 2001 From: Steven Pham <2080348+gitstevenpham@users.noreply.github.com> Date: Tue, 4 Feb 2025 12:42:16 -0500 Subject: [PATCH 19/22] Update manual_instrumentation.md --- content/en/data_streams/manual_instrumentation.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/en/data_streams/manual_instrumentation.md b/content/en/data_streams/manual_instrumentation.md index 27897dacc67c9..2401be85c5199 100644 --- a/content/en/data_streams/manual_instrumentation.md +++ b/content/en/data_streams/manual_instrumentation.md @@ -97,7 +97,7 @@ set_consume_checkpoint( {{< /code-block >}} {{% /tab %}} {{% tab ".Net" %}} -The following example propagates the trace context. See [Trace Context Propagation][6] for more information. +The following example propagates the trace context. See [Trace Context Propagation][1] for more information.
Note: In async operations, this may not work as expected because the context derived from the incoming message can be lost when producing a new message in different threads. @@ -162,6 +162,7 @@ static IEnumerable GetHeader(Headers headers, string key) yield return header.GetByKey(key); } {{< /code-block >}} +[1]: /tracing/trace_collection/trace_context_propagation/?tab=net#additional-use-cases {{% /tab %}} {{< /tabs >}} ## Further Reading @@ -173,4 +174,3 @@ static IEnumerable GetHeader(Headers headers, string key) [3]: https://pypi.org/project/confluent-kafka/ [4]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-metadata.html [5]: /agent/remote_config/?tab=configurationyamlfile#enabling-remote-configuration -[6]: https://docs.datadoghq.com/tracing/trace_collection/trace_context_propagation/?tab=net#additional-use-cases From f41664d34e533d88558faf06c8ee3233ad973e6b Mon Sep 17 00:00:00 2001 From: Steven Pham <2080348+gitstevenpham@users.noreply.github.com> Date: Wed, 5 Feb 2025 09:55:28 -0500 Subject: [PATCH 20/22] attempt to fix links --- content/en/data_streams/manual_instrumentation.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/en/data_streams/manual_instrumentation.md b/content/en/data_streams/manual_instrumentation.md index 2401be85c5199..dd8726089cd08 100644 --- a/content/en/data_streams/manual_instrumentation.md +++ b/content/en/data_streams/manual_instrumentation.md @@ -97,7 +97,7 @@ set_consume_checkpoint( {{< /code-block >}} {{% /tab %}} {{% tab ".Net" %}} -The following example propagates the trace context. See [Trace Context Propagation][1] for more information. +The following example propagates the trace context. See [Trace Context Propagation][6] for more information.
Note: In async operations, this may not work as expected because the context derived from the incoming message can be lost when producing a new message in different threads. @@ -162,7 +162,6 @@ static IEnumerable GetHeader(Headers headers, string key) yield return header.GetByKey(key); } {{< /code-block >}} -[1]: /tracing/trace_collection/trace_context_propagation/?tab=net#additional-use-cases {{% /tab %}} {{< /tabs >}} ## Further Reading @@ -174,3 +173,4 @@ static IEnumerable GetHeader(Headers headers, string key) [3]: https://pypi.org/project/confluent-kafka/ [4]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-metadata.html [5]: /agent/remote_config/?tab=configurationyamlfile#enabling-remote-configuration +[6]: /tracing/trace_collection/trace_context_propagation/?tab=net#additional-use-cases From d1cd30ea08de5158c7b626200a99d42391d32517 Mon Sep 17 00:00:00 2001 From: Steven Pham <2080348+gitstevenpham@users.noreply.github.com> Date: Thu, 6 Feb 2025 16:32:09 -0500 Subject: [PATCH 21/22] Update manual_instrumentation.md --- content/en/data_streams/manual_instrumentation.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/en/data_streams/manual_instrumentation.md b/content/en/data_streams/manual_instrumentation.md index dd8726089cd08..2401be85c5199 100644 --- a/content/en/data_streams/manual_instrumentation.md +++ b/content/en/data_streams/manual_instrumentation.md @@ -97,7 +97,7 @@ set_consume_checkpoint( {{< /code-block >}} {{% /tab %}} {{% tab ".Net" %}} -The following example propagates the trace context. See [Trace Context Propagation][6] for more information. +The following example propagates the trace context. See [Trace Context Propagation][1] for more information.
Note: In async operations, this may not work as expected because the context derived from the incoming message can be lost when producing a new message in different threads. @@ -162,6 +162,7 @@ static IEnumerable GetHeader(Headers headers, string key) yield return header.GetByKey(key); } {{< /code-block >}} +[1]: /tracing/trace_collection/trace_context_propagation/?tab=net#additional-use-cases {{% /tab %}} {{< /tabs >}} ## Further Reading @@ -173,4 +174,3 @@ static IEnumerable GetHeader(Headers headers, string key) [3]: https://pypi.org/project/confluent-kafka/ [4]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-metadata.html [5]: /agent/remote_config/?tab=configurationyamlfile#enabling-remote-configuration -[6]: /tracing/trace_collection/trace_context_propagation/?tab=net#additional-use-cases From 6389be1d51d3fc6d78d212c894a664cf6e97aee9 Mon Sep 17 00:00:00 2001 From: Bryce Eadie Date: Fri, 7 Feb 2025 10:13:14 -0500 Subject: [PATCH 22/22] Fix reference link --- content/en/data_streams/manual_instrumentation.md | 1 + 1 file changed, 1 insertion(+) diff --git a/content/en/data_streams/manual_instrumentation.md b/content/en/data_streams/manual_instrumentation.md index 2401be85c5199..5befeef9990ee 100644 --- a/content/en/data_streams/manual_instrumentation.md +++ b/content/en/data_streams/manual_instrumentation.md @@ -162,6 +162,7 @@ static IEnumerable GetHeader(Headers headers, string key) yield return header.GetByKey(key); } {{< /code-block >}} + [1]: /tracing/trace_collection/trace_context_propagation/?tab=net#additional-use-cases {{% /tab %}} {{< /tabs >}}