What values can the observation level have?
The level of an observation is one of four strings: DEBUG, DEFAULT, WARNING, or ERROR. Langfuse stores and returns these strings, not numbers, in the API, exports, and the UI. Filter by level with the level query parameter of the Observations API v2.
When you ingest OpenTelemetry spans, Langfuse sets the level as follows:
- From the
langfuse.observation.levelattribute, if present. Common aliases are mapped case-insensitively:TRACEandVERBOSEbecomeDEBUG;INFO,LOG,NOTICE,OK, andSUCCESSbecomeDEFAULT;WARNbecomesWARNING;FATALandCRITICALbecomeERROR. - Otherwise from the span status: a span with status
ERRORgets levelERROR, every other span getsDEFAULT.
See Log levels.
Was this page helpful?
Last updated on