# Function emitGraphExecutionEvent

- emitGraphExecutionEvent(
  trail: AuditTrail,
  data: Omit<
  GraphExecutionAuditEvent,
  "id"
  | "timestamp"
  | "type"
  | "component",
  >,
  ): string

  Records a graph execution lifecycle event.

  #### Parameters

  - trail: AuditTrail
  - data: Omit<GraphExecutionAuditEvent, "id" | "timestamp" | "type" | "component">

  #### Returns string

  - Defined in packages/nexus-agents/src/security/audit-trail.ts:297