bugsnag / bugsnag-unity-performance

Monitor the start-up, scene loading and network requests of your Unity game and see the results in your BugSnag dashboard.
https://docs.bugsnag.com/performance/integration-guides/unity
MIT License
1 stars 2 forks source link

Span context breaks when manually setting the parent #121

Closed alexandru-borsevici-scopely closed 3 months ago

alexandru-borsevici-scopely commented 4 months ago

Describe the bug

When creating the span with SpanOptions MakeCurrentContext = false, and setting this span as a parent of a different span. The context option is ignored, and the span starts having more children assigned.

Steps to reproduce

  1. Create a span with MakeCurrentContext = false
  2. Create a second span with ParentContext set to the first span, and MakeCurrentContext to false
  3. Create a third span without options
  4. Observe that the third span is the child of the first span, instead of the root.

Environment

alexandru-borsevici-scopely commented 3 months ago

Fixed in 1.4.2