Skip to content

Commit

Permalink
Merge pull request #14 from tobiangerstein/patch-1
Browse files Browse the repository at this point in the history
Update index.md
  • Loading branch information
maeddes authored Jul 30, 2024
2 parents 7a63065 + 511308a commit f24ae44
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ The interesting part in both spans is the followig part:
parentSpanContext=ImmutableSpanContext{traceId=00000000000000000000000000000000, spanId=0000000000000000
```
The parent span will always be `null` with a new call. However he we have a relation between the two calls, so it is surprising that the child span (or let's say the one we know is the chaild span) has this setting as well. So from the perspective of OpenTelemetry these are two totally independent spans.
The parent span will always be `null` with a new call. However here we have a relation between the two calls, so it is surprising that the child span (or let's say the one we know is the chaild span) has this setting as well. So from the perspective of OpenTelemetry these are two totally independent spans.

We need to use the OpenTelemetry context scope. Embed the call to the child method `someInternalMethod` with the following block:

Expand Down

0 comments on commit f24ae44

Please sign in to comment.