<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How can I access the TraceId generated by Splunk OpenTelemetry Collector within an ASP.NET web application? in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/How-can-I-access-the-TraceId-generated-by-Splunk-OpenTelemetry/m-p/678808#M11358</link>
    <description>&lt;DIV class=""&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;To inject trace context fields in logs, enable log correlation by setting the SIGNALFX_LOGS_INJECTION environment variable to true before running your instrumented application.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Reference: &lt;A href="https://github.com/signalfx/signalfx-dotnet-tracing/blob/main/docs/correlating-traces-with-logs.md" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/signalfx/signalfx-dotnet-tracing/blob/main/docs/correlating-traces-with-logs.md&lt;/A&gt;&lt;/P&gt;&lt;P&gt;After enabling this environment variable: SIGNALFX_LOGS_INJECTION, I was able to see the traceId values in Splunk.&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 27 Feb 2024 11:15:37 GMT</pubDate>
    <dc:creator>codeninja</dc:creator>
    <dc:date>2024-02-27T11:15:37Z</dc:date>
    <item>
      <title>How can I access the TraceId generated by Splunk OpenTelemetry Collector within an ASP.NET web application?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-can-I-access-the-TraceId-generated-by-Splunk-OpenTelemetry/m-p/678416#M11355</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;In the current project, we are sending application logs to Splunk, while the splunk-otel-collector is responsible for sending instrumentation logs to SignalFx. The issue arises because we utilize the cloudFrontID as a correlation ID to filter logs in Splunk, whereas SignalFx employs the traceId for log tracing. I am currently facing challenges in correlating the application logs' correlation ID with SignalFx's traceId.&lt;/P&gt;&lt;P&gt;I attempted to address this issue by using the "Serilog.Enrichers.Span" NuGet package to log the TraceId and SpanId. However, no values were logged in Splunk. How can I access the TraceId generated by the OpenTelemetry Collector within the ASP.NET web application (Framework version: 4.7.2)?&lt;/P&gt;&lt;P&gt;Let me know if further details are required from my end.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 23 Feb 2024 05:11:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-can-I-access-the-TraceId-generated-by-Splunk-OpenTelemetry/m-p/678416#M11355</guid>
      <dc:creator>codeninja</dc:creator>
      <dc:date>2024-02-23T05:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: How can I access the TraceId generated by Splunk OpenTelemetry Collector within an ASP.NET web application?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-can-I-access-the-TraceId-generated-by-Splunk-OpenTelemetry/m-p/678808#M11358</link>
      <description>&lt;DIV class=""&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;To inject trace context fields in logs, enable log correlation by setting the SIGNALFX_LOGS_INJECTION environment variable to true before running your instrumented application.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Reference: &lt;A href="https://github.com/signalfx/signalfx-dotnet-tracing/blob/main/docs/correlating-traces-with-logs.md" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/signalfx/signalfx-dotnet-tracing/blob/main/docs/correlating-traces-with-logs.md&lt;/A&gt;&lt;/P&gt;&lt;P&gt;After enabling this environment variable: SIGNALFX_LOGS_INJECTION, I was able to see the traceId values in Splunk.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 27 Feb 2024 11:15:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-can-I-access-the-TraceId-generated-by-Splunk-OpenTelemetry/m-p/678808#M11358</guid>
      <dc:creator>codeninja</dc:creator>
      <dc:date>2024-02-27T11:15:37Z</dc:date>
    </item>
  </channel>
</rss>

