File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3737
3838 - name : Run tests
3939 run : pnpm test
40+
41+ - name : Run build
42+ run : pnpm build
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ import {
1818 print ,
1919 stringFlag ,
2020} from "../cli-support.js" ;
21- import { devSdkEnvironment } from "../dev-env.js" ;
21+ import { devSdkEnvironment , type EnvVar } from "../dev-env.js" ;
2222
2323export async function handleEnvironmentCommand (
2424 action : string | undefined ,
Original file line number Diff line number Diff line change @@ -20,6 +20,10 @@ type ObservationEventType = Exclude<
2020 IngestionEvent [ "type" ] ,
2121 typeof eventTypes . TRACE_CREATE | typeof eventTypes . SCORE_CREATE
2222> ;
23+ type TraceCreateBody = Extract <
24+ IngestionEvent ,
25+ { type : typeof eventTypes . TRACE_CREATE }
26+ > [ "body" ] ;
2327
2428export async function otelBodyToEvents ( params : {
2529 body : unknown ;
@@ -276,7 +280,7 @@ function createTraceEvent(params: {
276280 isRootSpan,
277281 hasTraceUpdates,
278282 } = params ;
279- let body : Record < string , unknown > = {
283+ let body : TraceCreateBody = {
280284 id : traceId ,
281285 timestamp,
282286 environment : stringValue ( attributes [ "langfuse.environment" ] ) ?? "default" ,
Original file line number Diff line number Diff line change @@ -32,12 +32,12 @@ export type IngestionSink = {
3232 projectId : string ;
3333 prefix : string ;
3434 events : IngestionEvent [ ] ;
35- } ) => Promise < void > ;
35+ } ) => Promise < unknown > ;
3636 writeOtelResourceSpans : ( params : {
3737 projectId : string ;
3838 prefix : string ;
3939 resourceSpans : unknown [ ] ;
40- } ) => Promise < void > ;
40+ } ) => Promise < unknown > ;
4141} ;
4242
4343export function buildServer ( options : BuildServerOptions = { } ) : FastifyInstance {
You can’t perform that action at this time.
0 commit comments