function doWorkInSpanWithRemoteParent({ tracer, spanKind, spanName }, cb) {
  const kind = SpanKind[spanKind.toUpperCase()]
  const ctx = context.active()
  const spanContext = {
    traceId: 'ba8bc8cc6d062849b0efcf3c169afb5a',
    spanId: '6d3efb1b173fecfa',
    traceFlags: '01',
    isRemote: true
  }
  trace.setSpanContext(ctx, spanContext)
  tracer.startActiveSpan(spanName, { kind }, ctx, (span) => {
    if (!ctx?.transaction && (spanKind === 'Server' || spanKind === 'Consumer')) {
      const newCtx = context.active()
      forceTxName(newCtx, spanName)
    }
    cb(span)
  })
}
Starts an active span with a remote context.

@param {object} params to function
@param {object} params.tracer otel tracer instance
@param {string} params.spanName name of span to force
@param {string} params.spanKind span kind to use to create span
@param {function} cb function to call after span is created, passes newly created span