setValue(key, value) {
    let ctx

    if (value[otelSynthesis] && value[otelSynthesis].segment && value[otelSynthesis].transaction) {
      const { segment, transaction } = value[otelSynthesis]
      segment.start()
      ctx = new this.constructor(transaction, segment, this._otelCtx)
    } else {
      ctx = new this.constructor(this._transaction, this._segment, this._otelCtx)
    }

    ctx._otelCtx.set(key, value)
    return ctx
  }
Used to set data on `_otelCtx`

@param {string} key Name for stored value.
@param {*} value Value to store.

@returns {OtelContext} The context object.