Skip to content

Conversation

@pavelgj
Copy link
Collaborator

@pavelgj pavelgj commented Apr 23, 2025

ai.defineFlow('my-flow', async (input, ctx) => {
  console.log(ctx.trace) // {traceId: '...', spanId: '...'}
})

Checklist (if applicable):

@pavelgj pavelgj marked this pull request as ready for review April 23, 2025 18:56
@pavelgj pavelgj merged commit 0c2795e into main Apr 24, 2025
5 checks passed
@pavelgj pavelgj deleted the pj/add-trace-to-action-ctx branch April 24, 2025 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2 participants