# Question: OpenTelemetry all Spans have informational message: "initial value not set"

**URL:** <https://community.dynatrace.com/t/question-opentelemetry-all-spans-have-informational-message-initial-value-not-set/34206>\
**Category:** OpenTelemetry\
**Tags:** opentelemetry\
**Created:** [February 20, 2022, 7:28pm UTC](https://community.dynatrace.com/t/question-opentelemetry-all-spans-have-informational-message-initial-value-not-set/34206 "2022-02-20T19:28:26Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![ErikPost](https://avatars.discourse-cdn.com/v4/letter/e/90db22/32.png) [@ErikPost](https://community.dynatrace.com/u/ErikPost)\
**Post date:** [February 20, 2022, 7:28pm UTC](https://community.dynatrace.com/t/question-opentelemetry-all-spans-have-informational-message-initial-value-not-set/34206/1 "2022-02-20T19:28:26Z")

</div>

Hello all,

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.

Everything seems to be working and I get all the expected data into Dynatrace.

I do have two questions I hope someone can help me with.

For all Span Attributes the following message is shown in Dynatrace: “_initial value not set_” and there is a general message on the purepath as well with “_Some attributes have not been set at span start. They cannot be used in Span capturing settings_”. I tried both custom Attributes and&nbsp;SemanticAttributes set like below and both have the same result.

```markup
parentSpan.setAttribute("http.dynaguild.name", name);
parentSpan.setAttribute(SemanticAttributes.ENDUSER_SCOPE, name);

```

 ![value-not-set.png](https://global.discourse-cdn.com/dynatrace/original/2X/7/7693ea396e2632d2b02cc3f159625868ce35184c.png)

Any idea what I am doing wrong, or what I should set?

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:

```markup
Span childSpan = tracer.spanBuilder("child-span").setParent(Context.current().with(parentSpan)).startSpan();

```

 ![nesting.png](https://global.discourse-cdn.com/dynatrace/original/2X/a/a0b6b2d251c5cbbd6bddf9712d05ccaaf08208f0.png)

Any ideas?

Thanks in advance and kind regards,

Erik

---

_[View the full topic](https://community.dynatrace.com/t/question-opentelemetry-all-spans-have-informational-message-initial-value-not-set/34206)._
