<?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: Question: OpenTelemetry all Spans have informational message: &amp;quot;initial value not set&amp;quot; in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/Question-OpenTelemetry-all-Spans-have-informational-message-quot/m-p/224388#M28778</link>
    <description>&lt;P&gt;I'm curious about what progress the Dynatrace team has made on the flat vs. nested hierarchy capability with native tracing tools, such as with the ActivitySource and Activity types in .NET. Is there a setting that needs to be turned on within Dynatrace to change flat span hierarchies into nested relationships, or is this feature still not yet supported in .NET?&lt;/P&gt;</description>
    <pubDate>Mon, 02 Oct 2023 15:15:53 GMT</pubDate>
    <dc:creator>wwolfram</dc:creator>
    <dc:date>2023-10-02T15:15:53Z</dc:date>
    <item>
      <title>Question: OpenTelemetry all Spans have informational message: "initial value not set"</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Question-OpenTelemetry-all-Spans-have-informational-message-quot/m-p/181041#M19984</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a question about a combination of Dynatrace and OpenTelemetry. By way of testing I've created a simple Spring application with one endpoint which is instrumented with OpenTelemetry(manually instrumented) and has a Dynatrace OneAgent on the host which also injects into the application.&lt;/P&gt;&lt;P&gt;Everything seems to be working and I get all the expected data into Dynatrace.&lt;/P&gt;&lt;P&gt;I do have two questions I hope someone can help me with.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For all Span Attributes the following message is shown in Dynatrace: "&lt;EM&gt;initial value not set&lt;/EM&gt;" and there is a general message on the purepath as well with "&lt;EM&gt;Some attributes have not been set at span start. They cannot be used in Span capturing settings&lt;/EM&gt;". I tried both custom Attributes and&amp;nbsp;SemanticAttributes set like below and both have the same result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;parentSpan.setAttribute("http.dynaguild.name", name);
parentSpan.setAttribute(SemanticAttributes.ENDUSER_SCOPE, name);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="value-not-set.png" style="width: 666px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/4463iC5FA34BAD43CEB24/image-size/large?v=v2&amp;amp;px=999" role="button" title="value-not-set.png" alt="value-not-set.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Any idea what I am doing wrong, or what I should set?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And the second question is about nesting. I have two spans, a parent span and a child span. I think I set the parenting correctly but in Dynatrace they are not nested. I think all that is required is the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Span childSpan = tracer.spanBuilder("child-span").setParent(Context.current().with(parentSpan)).startSpan();&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nesting.png" style="width: 246px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/4464i9A9B322C9DA6CB08/image-size/large?v=v2&amp;amp;px=999" role="button" title="nesting.png" alt="nesting.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance and kind regards,&lt;/P&gt;&lt;P&gt;Erik&lt;/P&gt;</description>
      <pubDate>Sun, 20 Feb 2022 19:28:26 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Question-OpenTelemetry-all-Spans-have-informational-message-quot/m-p/181041#M19984</guid>
      <dc:creator>ErikPost</dc:creator>
      <dc:date>2022-02-20T19:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: Question: OpenTelemetry all Spans have informational message: "initial value not set"</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Question-OpenTelemetry-all-Spans-have-informational-message-quot/m-p/181417#M20043</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;regarding &lt;SPAN&gt;"&lt;/SPAN&gt;&lt;EM&gt;initial value not set&lt;/EM&gt;&lt;SPAN&gt;", this means that the attribute is set after span creation, so the OneAgent does not know of it when he decides based on the "Span capturing" settings if the span should be captured or not.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Have you tried directly setting the attribute directly in the&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;tracer.spanBuilder("span").setAttribute(...)..&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And regarding setting the parent, try this:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;void&lt;/SPAN&gt; &lt;SPAN&gt;parentOne&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt; &lt;SPAN&gt;{&lt;/SPAN&gt;
  &lt;SPAN&gt;Span&lt;/SPAN&gt; &lt;SPAN&gt;parentSpan&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;tracer&lt;/SPAN&gt;&lt;SPAN&gt;.&l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N&gt;
        &lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;setParent&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Context&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;current&lt;/SPAN&gt;&lt;SPAN&gt;().&lt;/SPAN&gt;&lt;SPAN&gt;with&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;parentSpan&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;
        &lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;startSpan&lt;/SPAN&gt;&lt;SPAN&gt;();&lt;/SPAN&gt;
  &lt;SPAN&gt;try&lt;/SPAN&gt; &lt;SPAN&gt;{&lt;/SPAN&gt;
    &lt;SPAN&gt;// do stuff&lt;/SPAN&gt;  &lt;SPAN&gt;}&lt;/SPAN&gt; &lt;SPAN&gt;finally&lt;/SPAN&gt; &lt;SPAN&gt;{&lt;/SPAN&gt;
    &lt;SPAN&gt;childSpan&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;end&lt;/SPAN&gt;&lt;SPAN&gt;();&lt;/SPAN&gt;
  &lt;SPAN&gt;}&lt;/SPAN&gt;
&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Let me know if it worked!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Josef&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 09:02:00 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Question-OpenTelemetry-all-Spans-have-informational-message-quot/m-p/181417#M20043</guid>
      <dc:creator>josef_schiessl</dc:creator>
      <dc:date>2022-02-25T09:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: Question: OpenTelemetry all Spans have informational message: "initial value not set"</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Question-OpenTelemetry-all-Spans-have-informational-message-quot/m-p/181435#M20047</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/11680"&gt;@josef_schiessl&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot for the reply!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regarding your first point you are totally right, after also setting the Attributes when creating the Span the message dissapears &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regarding your second solution about setting the parent. Unfortunately that seems like what I was already doing and even after copying your code 1 on 1, I get the same results. Do you have any other idea what I can try?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Erik&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 11:58:40 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Question-OpenTelemetry-all-Spans-have-informational-message-quot/m-p/181435#M20047</guid>
      <dc:creator>ErikPost</dc:creator>
      <dc:date>2022-02-25T11:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: Question: OpenTelemetry all Spans have informational message: "initial value not set"</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Question-OpenTelemetry-all-Spans-have-informational-message-quot/m-p/181437#M20048</link>
      <description>&lt;P&gt;Hi Erik!&lt;BR /&gt;&lt;BR /&gt;I just verfied this with the team and you are doing everything correct.&lt;BR /&gt;This is currently a limitation by the OneAgent, so spans are always reported in a flat hierarchy. But this is currently actively being worked on for all technologies. So this will work in the near future!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Josef&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 12:26:37 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Question-OpenTelemetry-all-Spans-have-informational-message-quot/m-p/181437#M20048</guid>
      <dc:creator>josef_schiessl</dc:creator>
      <dc:date>2022-02-25T12:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: Question: OpenTelemetry all Spans have informational message: "initial value not set"</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Question-OpenTelemetry-all-Spans-have-informational-message-quot/m-p/181441#M20049</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/11680"&gt;@josef_schiessl&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for answering, much appreciated!&lt;/P&gt;&lt;P&gt;Any idea when this will be released? I know that the automatic instrumentation is planned for OneAgent 1.237. Will this feature then also be released?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Erik&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 13:47:55 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Question-OpenTelemetry-all-Spans-have-informational-message-quot/m-p/181441#M20049</guid>
      <dc:creator>ErikPost</dc:creator>
      <dc:date>2022-02-25T13:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: Question: OpenTelemetry all Spans have informational message: "initial value not set"</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Question-OpenTelemetry-all-Spans-have-informational-message-quot/m-p/181442#M20050</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I cannot give you an ETA - for Java it will not be in 1.237, but as I mentioned, its currently being worked on so it should not be too many versions from that.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Josef&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 13:51:03 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Question-OpenTelemetry-all-Spans-have-informational-message-quot/m-p/181442#M20050</guid>
      <dc:creator>josef_schiessl</dc:creator>
      <dc:date>2022-02-25T13:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: Question: OpenTelemetry all Spans have informational message: "initial value not set"</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Question-OpenTelemetry-all-Spans-have-informational-message-quot/m-p/181443#M20051</link>
      <description>&lt;P&gt;Alright thanks! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 13:53:25 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Question-OpenTelemetry-all-Spans-have-informational-message-quot/m-p/181443#M20051</guid>
      <dc:creator>ErikPost</dc:creator>
      <dc:date>2022-02-25T13:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: Question: OpenTelemetry all Spans have informational message: "initial value not set"</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Question-OpenTelemetry-all-Spans-have-informational-message-quot/m-p/181444#M20052</link>
      <description>&lt;P&gt;No worries&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 13:54:06 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Question-OpenTelemetry-all-Spans-have-informational-message-quot/m-p/181444#M20052</guid>
      <dc:creator>josef_schiessl</dc:creator>
      <dc:date>2022-02-25T13:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: Question: OpenTelemetry all Spans have informational message: "initial value not set"</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Question-OpenTelemetry-all-Spans-have-informational-message-quot/m-p/224388#M28778</link>
      <description>&lt;P&gt;I'm curious about what progress the Dynatrace team has made on the flat vs. nested hierarchy capability with native tracing tools, such as with the ActivitySource and Activity types in .NET. Is there a setting that needs to be turned on within Dynatrace to change flat span hierarchies into nested relationships, or is this feature still not yet supported in .NET?&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2023 15:15:53 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Question-OpenTelemetry-all-Spans-have-informational-message-quot/m-p/224388#M28778</guid>
      <dc:creator>wwolfram</dc:creator>
      <dc:date>2023-10-02T15:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: Question: OpenTelemetry all Spans have informational message: "initial value not set"</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Question-OpenTelemetry-all-Spans-have-informational-message-quot/m-p/224953#M28873</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If you enable the OneAgent feature&amp;nbsp;"Improved .NET In-Process Context Propagation [Opt-In]" for the corresponding process group (requires a restart) , you should see the nested hierarchy in .NET. Please note that spans cannot have PurePath nodes as children (except the root span/activity).&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Gurpreet&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 08:31:56 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Question-OpenTelemetry-all-Spans-have-informational-message-quot/m-p/224953#M28873</guid>
      <dc:creator>Gurpreet_Juttla</dc:creator>
      <dc:date>2023-10-10T08:31:56Z</dc:date>
    </item>
  </channel>
</rss>

