OfflineTracerConfig
Configuration for `OfflineTracer.create()`.
Configuration for OfflineTracer.create().
Properties
dataset
:Example[]
List that receives an Example for each completed root span.
exampleFields
:Record<string, unknown> | undefined
Fields included on every Example in dataset
(e.g. { input: ..., goldenOutput: ... }).
projectName
:string | undefined
Your Judgment project name. Required.
apiKey
:string | undefined
Judgment API key. Defaults to JUDGMENT_API_KEY env var.
organizationId
:string | undefined
Judgment organization ID. Defaults to JUDGMENT_ORG_ID env var.
apiUrl
:string | undefined
Judgment API URL. Defaults to JUDGMENT_API_URL env var.
environment
:string | undefined
Deployment environment name (e.g. "production").
setActive
:boolean | undefined
Whether to set this tracer as active. Defaults to true.
serializer
:((value: unknown) => string) | undefined
Custom serialization function for span attribute values.
resourceAttributes
:Record<string, string> | undefined
Additional OpenTelemetry resource attributes.
sampler
:Sampler | undefined
Custom OpenTelemetry sampler.
spanLimits
:SpanLimits | undefined
Custom OpenTelemetry span limits.
spanProcessors
:SpanProcessor[] | undefined
Additional OpenTelemetry span processors.
Last updated on