def METHOD_NAME(self):
    # type: () -> SpanContext
    """Returns an OpenTelemetry SpanContext"""
    ts = None
    tf = TraceFlags.DEFAULT
    if self._ddspan.context:
        ts = TraceState.from_header([self._ddspan.context._tracestate])
        if self._ddspan.context.sampling_priority and self._ddspan.context.sampling_priority > 0:
            tf = TraceFlags.SAMPLED
    return SpanContext(self._ddspan.trace_id, self._ddspan.span_id, False, tf, ts)