Function: createSpanTypePrefixer()
Prefactor TypeScript SDK / @prefactor/core / createSpanTypePrefixer
Function: createSpanTypePrefixer()
Section titled “Function: createSpanTypePrefixer()”createSpanTypePrefixer(
namespace): (spanType) =>string
Defined in: packages/core/src/tracing/span.ts:22
Creates a helper that prefixes span types with a package/provider namespace.
Parameters
Section titled “Parameters”namespace
Section titled “namespace”string
Namespace to prepend, such as langchain.
Returns
Section titled “Returns”Function that produces ${namespace}:${spanType}.
(
spanType):string
Parameters
Section titled “Parameters”spanType
Section titled “spanType”string
Returns
Section titled “Returns”string