title: Migration issue with opentelemetry-api from 0.5.0 to 0.8.0
body: <p>I am facing this issue when upgrading <strong>opentelemetry-api</strong> from <strong>0.5.0</strong> to <strong>0.8.0</strong>.</p>
  <p>Consider the following code snippet,</p>
  <pre><code>import io.opentelemetry.OpenTelemetry
  import io.opentelemetry.context.Scope
  import io.opentelemetry.trace._
  
  object Main4 extends App {
  
    val a: Tracer = OpenTelemetry.getTracer(getClass.getSimpleName)
    val b: Span = a.spanBuilder(&quot;test&quot;).startSpan()
    val c: Scope = a.withSpan(b)
    try {
      val d: Span = TracingContextUtils.getCurrentSpan
      val e: SpanContext = d.getContext
      val f: Span = DefaultSpan.getInvalid
      val g: SpanContext = f.getContext
      println(d)
      println(e)
      println(e.isValid)
      println(e.getSpanId)
      println(e.getTraceId)
  
      println()
      println()
      println()
  
      println(f)
      println(g)
      println(g.isValid)
      println(g.getSpanId)
      println(g.getTraceId)
  
      println()
      println()
  
      println(d == f)
  
    } finally {
      c.close()
    }
  }
  </code></pre>
  <p>With <strong>0.5.0</strong>, I am getting the output as: -</p>
  <pre><code>DefaultSpan
  SpanContext{traceId=TraceId{traceId=f153124023eeab63d027ca493e05cbdf}, spanId=SpanId{spanId=fb8136024af9a4ae}, traceFlags=TraceFlags{sampled=false}, traceState=TraceState{entries=[]}, remote=false}
  true
  SpanId{spanId=fb8136024af9a4ae}
  TraceId{traceId=f153124023eeab63d027ca493e05cbdf}
  
  
  
  DefaultSpan
  SpanContext{traceId=TraceId{traceId=00000000000000000000000000000000}, spanId=SpanId{spanId=0000000000000000}, traceFlags=TraceFlags{sampled=false}, traceState=TraceState{entries=[]}, remote=false}
  false
  SpanId{spanId=0000000000000000}
  TraceId{traceId=00000000000000000000000000000000}
  
  
  false
  </code></pre>
  <p>with <strong>0.8.0</strong>, I am getting the output as: -</p>
  <pre><code>DefaultSpan
  SpanContext{traceId=TraceId{traceId=00000000000000000000000000000000}, spanId=SpanId{spanId=0000000000000000}, traceFlags=TraceFlags{sampled=false}, traceState=TraceState{entries=[]}, remote=false}
  false
  SpanId{spanId=0000000000000000}
  TraceId{traceId=00000000000000000000000000000000}
  
  
  
  DefaultSpan
  SpanContext{traceId=TraceId{traceId=00000000000000000000000000000000}, spanId=SpanId{spanId=0000000000000000}, traceFlags=TraceFlags{sampled=false}, traceState=TraceState{entries=[]}, remote=false}
  false
  SpanId{spanId=0000000000000000}
  TraceId{traceId=00000000000000000000000000000000}
  
  
  true
  </code></pre>
  <p>I think with <strong>0.8.0</strong> there is something missing in my code due to which it is not being correctly working as expected.</p>
  <p>Can someone let me know what changes I need to do with my code so as to obtain the proper <strong>Span</strong> and not invalid <strong>Span</strong> as I am getting with <strong>0.5.0</strong>?</p>
  <p>Note:- I am using:- <strong>scala</strong> -&gt; 2.13.3, <strong>jvm</strong> -&gt; 14, <strong>sbt</strong> -&gt; 1.3.13</p>