You can disable tracing for any supported vendors by passing the disable_instrumentations
parameter in Langtrace.init
function. There are two ways to disable tracing for vendors. Either set all_except
to disable all vendors except the ones specified or set only
to disable only the vendors specified.
Only one of all_except
and only
can be set in the
disable_instrumentations
object. Setting both of them will throw an
error
- Disable tracing for all vendors except the ones specified.
import * as Langtrace from "@langtrase/typescript-sdk";
Langtrace.init({
write_spans_to_console: true,
disable_instrumentations: { all_except: ['openai'] } // Disable all vendors except openai
})
- Disable tracing for only the vendors specified.
import * as Langtrace from "@langtrase/typescript-sdk";
Langtrace.init({
write_spans_to_console: true,
disable_instrumentations: { only: ['openai'] } // Disable only openai
})
Responses are generated using AI and may contain mistakes.