cloakdrone
cloakdrone
LLangfuse
Created by cloakdrone on 8/12/2024 in #support
Is it possible to end a trace?
@Marc I moved trace creation to processDomain instead and passed that trace object to generateThing. This solved my problem of having one trace for a domain and multiple generations nested.
12 replies
LLangfuse
Created by cloakdrone on 8/12/2024 in #support
Is it possible to end a trace?
got it, i will have to create a new trace for everything or else, all generations will end up under one single trace skewing the latency, cost data
12 replies
LLangfuse
Created by cloakdrone on 8/12/2024 in #support
Is it possible to end a trace?
Yes i did that, but i thought i would nest the generations under one trace. is this standard practice?
12 replies
LLangfuse
Created by cloakdrone on 8/12/2024 in #support
Is it possible to end a trace?
At the top of my file I have
const geminiTrace = langfuse.trace({
name: "generate-things",
tags: ["thing-x"],
});
const geminiTrace = langfuse.trace({
name: "generate-things",
tags: ["thing-x"],
});
Then these functions
async function generateThing(url){
// process url
const generation = geminiTrace.generation({...})
...
generation.update()
}
async function processDomain(...) // calls generateThing in a loop
async function generateThing(url){
// process url
const generation = geminiTrace.generation({...})
...
generation.update()
}
async function processDomain(...) // calls generateThing in a loop
12 replies
LLangfuse
Created by cloakdrone on 8/9/2024 in #feature-suggestion
cloakdrone - would love for a chart that shows ...
sure
2 replies