Creates a new ArvoEvent with telemetry headers (traceparent and tracestate) removed.

This function creates a clean copy of an ArvoEvent by:

  1. Preserving all standard event properties
  2. Setting telemetry headers (traceparent and tracestate) to null
  3. Maintaining the original data and extensions

It's useful when you need to:

  • Clear existing telemetry context
  • Start a new telemetry trace
  • Remove distributed tracing information

ArvoEvent for complete event structure

  • Parameters

    • event: ArvoEvent<Record<string, any>, Record<string,
          | null
          | string
          | number
          | boolean>, string>

      The original ArvoEvent to process

    Returns ArvoEvent<Record<string, any>, Record<string,
        | null
        | string
        | number
        | boolean> & {
        accesscontrol: null | string;
        executionunits: null | number;
        redirectto: null | string;
        to: null | string;
    } & {
        traceparent: null | string;
        tracestate: null | string;
    }, string>

    A new ArvoEvent instance with all original properties except telemetry headers