TraceDetailsQuery.graphql.ts•17.8 kB
/**
* @generated SignedSource<<3790ac6ad7ddf8b82357d7bd112c29a3>>
* @lightSyntaxTransform
* @nogrep
*/
/* tslint:disable */
/* eslint-disable */
// @ts-nocheck
import { ConcreteRequest } from 'relay-runtime';
import { FragmentRefs } from "relay-runtime";
export type SpanStatusCode = "ERROR" | "OK" | "UNSET";
export type TraceDetailsQuery$variables = {
id: string;
traceId: string;
};
export type TraceDetailsQuery$data = {
readonly project: {
readonly trace?: {
readonly costSummary: {
readonly completion: {
readonly cost: number | null;
};
readonly prompt: {
readonly cost: number | null;
};
readonly total: {
readonly cost: number | null;
};
};
readonly latencyMs: number | null;
readonly projectSessionId: string | null;
readonly rootSpans: {
readonly edges: ReadonlyArray<{
readonly span: {
readonly id: string;
readonly parentId: string | null;
readonly spanId: string;
readonly statusCode: SpanStatusCode;
};
}>;
};
readonly " $fragmentSpreads": FragmentRefs<"ConnectedTraceTree">;
} | null;
};
};
export type TraceDetailsQuery = {
response: TraceDetailsQuery$data;
variables: TraceDetailsQuery$variables;
};
const node: ConcreteRequest = (function(){
var v0 = {
"defaultValue": null,
"kind": "LocalArgument",
"name": "id"
},
v1 = {
"defaultValue": null,
"kind": "LocalArgument",
"name": "traceId"
},
v2 = [
{
"kind": "Variable",
"name": "id",
"variableName": "id"
}
],
v3 = [
{
"kind": "Variable",
"name": "traceId",
"variableName": "traceId"
}
],
v4 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "projectSessionId",
"storageKey": null
},
v5 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "statusCode",
"storageKey": null
},
v6 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "id",
"storageKey": null
},
v7 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "spanId",
"storageKey": null
},
v8 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "parentId",
"storageKey": null
},
v9 = {
"alias": "rootSpans",
"args": [
{
"kind": "Literal",
"name": "first",
"value": 1
},
{
"kind": "Literal",
"name": "orphanSpanAsRootSpan",
"value": true
},
{
"kind": "Literal",
"name": "rootSpansOnly",
"value": true
}
],
"concreteType": "SpanConnection",
"kind": "LinkedField",
"name": "spans",
"plural": false,
"selections": [
{
"alias": null,
"args": null,
"concreteType": "SpanEdge",
"kind": "LinkedField",
"name": "edges",
"plural": true,
"selections": [
{
"alias": "span",
"args": null,
"concreteType": "Span",
"kind": "LinkedField",
"name": "node",
"plural": false,
"selections": [
(v5/*: any*/),
(v6/*: any*/),
(v7/*: any*/),
(v8/*: any*/)
],
"storageKey": null
}
],
"storageKey": null
}
],
"storageKey": "spans(first:1,orphanSpanAsRootSpan:true,rootSpansOnly:true)"
},
v10 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "latencyMs",
"storageKey": null
},
v11 = [
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "cost",
"storageKey": null
}
],
v12 = {
"alias": null,
"args": null,
"concreteType": "SpanCostSummary",
"kind": "LinkedField",
"name": "costSummary",
"plural": false,
"selections": [
{
"alias": null,
"args": null,
"concreteType": "CostBreakdown",
"kind": "LinkedField",
"name": "prompt",
"plural": false,
"selections": (v11/*: any*/),
"storageKey": null
},
{
"alias": null,
"args": null,
"concreteType": "CostBreakdown",
"kind": "LinkedField",
"name": "completion",
"plural": false,
"selections": (v11/*: any*/),
"storageKey": null
},
{
"alias": null,
"args": null,
"concreteType": "CostBreakdown",
"kind": "LinkedField",
"name": "total",
"plural": false,
"selections": (v11/*: any*/),
"storageKey": null
}
],
"storageKey": null
},
v13 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "__typename",
"storageKey": null
},
v14 = [
{
"kind": "Literal",
"name": "first",
"value": 1000
}
],
v15 = {
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "name",
"storageKey": null
};
return {
"fragment": {
"argumentDefinitions": [
(v0/*: any*/),
(v1/*: any*/)
],
"kind": "Fragment",
"metadata": null,
"name": "TraceDetailsQuery",
"selections": [
{
"alias": "project",
"args": (v2/*: any*/),
"concreteType": null,
"kind": "LinkedField",
"name": "node",
"plural": false,
"selections": [
{
"kind": "InlineFragment",
"selections": [
{
"alias": null,
"args": (v3/*: any*/),
"concreteType": "Trace",
"kind": "LinkedField",
"name": "trace",
"plural": false,
"selections": [
(v4/*: any*/),
{
"args": null,
"kind": "FragmentSpread",
"name": "ConnectedTraceTree"
},
(v9/*: any*/),
(v10/*: any*/),
(v12/*: any*/)
],
"storageKey": null
}
],
"type": "Project",
"abstractKey": null
}
],
"storageKey": null
}
],
"type": "Query",
"abstractKey": null
},
"kind": "Request",
"operation": {
"argumentDefinitions": [
(v1/*: any*/),
(v0/*: any*/)
],
"kind": "Operation",
"name": "TraceDetailsQuery",
"selections": [
{
"alias": "project",
"args": (v2/*: any*/),
"concreteType": null,
"kind": "LinkedField",
"name": "node",
"plural": false,
"selections": [
(v13/*: any*/),
{
"kind": "InlineFragment",
"selections": [
{
"alias": null,
"args": (v3/*: any*/),
"concreteType": "Trace",
"kind": "LinkedField",
"name": "trace",
"plural": false,
"selections": [
(v4/*: any*/),
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "numSpans",
"storageKey": null
},
{
"alias": null,
"args": (v14/*: any*/),
"concreteType": "SpanConnection",
"kind": "LinkedField",
"name": "spans",
"plural": false,
"selections": [
{
"alias": null,
"args": null,
"concreteType": "SpanEdge",
"kind": "LinkedField",
"name": "edges",
"plural": true,
"selections": [
{
"alias": "span",
"args": null,
"concreteType": "Span",
"kind": "LinkedField",
"name": "node",
"plural": false,
"selections": [
(v6/*: any*/),
(v7/*: any*/),
(v15/*: any*/),
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "spanKind",
"storageKey": null
},
(v5/*: any*/),
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "startTime",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "endTime",
"storageKey": null
},
(v8/*: any*/),
(v10/*: any*/),
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "tokenCountTotal",
"storageKey": null
},
{
"alias": null,
"args": null,
"concreteType": "AnnotationSummary",
"kind": "LinkedField",
"name": "spanAnnotationSummaries",
"plural": true,
"selections": [
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "labels",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "count",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "labelCount",
"storageKey": null
},
{
"alias": null,
"args": null,
"concreteType": "LabelFraction",
"kind": "LinkedField",
"name": "labelFractions",
"plural": true,
"selections": [
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "fraction",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "label",
"storageKey": null
}
],
"storageKey": null
},
(v15/*: any*/),
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "scoreCount",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "meanScore",
"storageKey": null
}
],
"storageKey": null
}
],
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "cursor",
"storageKey": null
},
{
"alias": null,
"args": null,
"concreteType": "Span",
"kind": "LinkedField",
"name": "node",
"plural": false,
"selections": [
(v13/*: any*/),
(v6/*: any*/)
],
"storageKey": null
}
],
"storageKey": null
},
{
"alias": null,
"args": null,
"concreteType": "PageInfo",
"kind": "LinkedField",
"name": "pageInfo",
"plural": false,
"selections": [
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "endCursor",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "hasNextPage",
"storageKey": null
}
],
"storageKey": null
}
],
"storageKey": "spans(first:1000)"
},
{
"alias": null,
"args": (v14/*: any*/),
"filters": null,
"handle": "connection",
"key": "ConnectedTraceTree_spans",
"kind": "LinkedHandle",
"name": "spans"
},
(v6/*: any*/),
(v9/*: any*/),
(v10/*: any*/),
(v12/*: any*/)
],
"storageKey": null
}
],
"type": "Project",
"abstractKey": null
},
(v6/*: any*/)
],
"storageKey": null
}
]
},
"params": {
"cacheID": "8061bdefc692c0ac4ce8a3f3c62c89aa",
"id": null,
"metadata": {},
"name": "TraceDetailsQuery",
"operationKind": "query",
"text": "query TraceDetailsQuery(\n $traceId: ID!\n $id: ID!\n) {\n project: node(id: $id) {\n __typename\n ... on Project {\n trace(traceId: $traceId) {\n projectSessionId\n ...ConnectedTraceTree\n rootSpans: spans(first: 1, rootSpansOnly: true, orphanSpanAsRootSpan: true) {\n edges {\n span: node {\n statusCode\n id\n spanId\n parentId\n }\n }\n }\n latencyMs\n costSummary {\n prompt {\n cost\n }\n completion {\n cost\n }\n total {\n cost\n }\n }\n id\n }\n }\n id\n }\n}\n\nfragment ConnectedTraceTree on Trace {\n numSpans\n spans(first: 1000) {\n edges {\n span: node {\n id\n spanId\n name\n spanKind\n statusCode\n startTime\n endTime\n parentId\n latencyMs\n tokenCountTotal\n spanAnnotationSummaries {\n labels\n count\n labelCount\n labelFractions {\n fraction\n label\n }\n name\n scoreCount\n meanScore\n }\n }\n cursor\n node {\n __typename\n id\n }\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n id\n}\n"
}
};
})();
(node as any).hash = "b7f5952cd2183ab72fa53058e5c3dd98";
export default node;