copyWithoutSpan method

Context copyWithoutSpan()

Creates a new Context without a span or span context

Implementation

Context copyWithoutSpan() {
  final newValues = Map<ContextKey<Object?>, Object?>.from(_values);
  newValues.remove(_spanKey);
  newValues.remove(_spanContextKey);
  return ContextCreate.create(contextMap: newValues);
}