Skip to content

Conversation

@huangjeff5
Copy link
Contributor

  • Added a streaming endpoint for retrieving a trace's spans
  • Added HTTP-based runAction endpoint for streaming chunks in tools server
@github-actions github-actions bot added the python Python label Dec 2, 2025
@huangjeff5 huangjeff5 marked this pull request as ready for review December 3, 2025 00:52
@huangjeff5 huangjeff5 requested a review from pavelgj December 3, 2025 17:58
@apascal07 apascal07 self-requested a review December 3, 2025 18:50
if (response.headers['x-genkit-version']) {
resp.genkitVersion = response.headers['x-genkit-version'];

const earlyTraceId = response.headers['x-genkit-trace-id'];
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

super nit: is it important to call this early*? why not just traceId?

: undefined;

const result = await manager.runAction(
{ key, input, context, runtimeId },
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there's also telemetryLabels... but I wonder, might as well just pass req.body as RunActionRequest here?


const result = await manager.runAction(
{ key, input, context },
{ key, input, context, runtimeId },
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here.: either add telemetryLabels or req.body as RunActionRequest

.openapi('TraceData');
export type TraceData = z.infer<typeof TraceDataSchema>;

export const SpantEventBaseSchema = z.object({
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are these used?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Used by Dev UI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment