{ * batch: [{ * type: "trace-create", * id: "abcdef-1234-5678-90ab", * timestamp: "2022-01-01T00:00:00.000Z", * body: { * id: "abcdef-1234-5678-90ab", * timestamp: "2022-01-01T00:00:00.000Z", * environment: "production", * name: "My Trace", * userId: "1234-5678-90ab-cdef", * input: "My input", * output: "My output", * sessionId: "1234-5678-90ab-cdef", * release: "1.0.0", * version: "1.0.0", * metadata: "My metadata", * tags: ["tag1", "tag2"], * "public": true * } * }] * } Copy
{ * batch: [{ * type: "trace-create", * id: "abcdef-1234-5678-90ab", * timestamp: "2022-01-01T00:00:00.000Z", * body: { * id: "abcdef-1234-5678-90ab", * timestamp: "2022-01-01T00:00:00.000Z", * environment: "production", * name: "My Trace", * userId: "1234-5678-90ab-cdef", * input: "My input", * output: "My output", * sessionId: "1234-5678-90ab-cdef", * release: "1.0.0", * version: "1.0.0", * metadata: "My metadata", * tags: ["tag1", "tag2"], * "public": true * } * }] * }
{ * batch: [{ * type: "span-create", * id: "abcdef-1234-5678-90ab", * timestamp: "2022-01-01T00:00:00.000Z", * body: { * id: "abcdef-1234-5678-90ab", * traceId: "1234-5678-90ab-cdef", * startTime: "2022-01-01T00:00:00.000Z", * environment: "test" * } * }] * } Copy
{ * batch: [{ * type: "span-create", * id: "abcdef-1234-5678-90ab", * timestamp: "2022-01-01T00:00:00.000Z", * body: { * id: "abcdef-1234-5678-90ab", * traceId: "1234-5678-90ab-cdef", * startTime: "2022-01-01T00:00:00.000Z", * environment: "test" * } * }] * }
{ * batch: [{ * type: "score-create", * id: "abcdef-1234-5678-90ab", * timestamp: "2022-01-01T00:00:00.000Z", * body: { * id: "abcdef-1234-5678-90ab", * traceId: "1234-5678-90ab-cdef", * name: "My Score", * value: 0.9, * environment: "default" * } * }] * } Copy
{ * batch: [{ * type: "score-create", * id: "abcdef-1234-5678-90ab", * timestamp: "2022-01-01T00:00:00.000Z", * body: { * id: "abcdef-1234-5678-90ab", * traceId: "1234-5678-90ab-cdef", * name: "My Score", * value: 0.9, * environment: "default" * } * }] * }
Batch of tracing events to be ingested. Discriminated by attribute type.
type
Optional
Optional. Metadata field used by the Langfuse SDKs for debugging.
Example
Example
Example