java.lang.Object
com.langfuse.client.resources.commons.types.Trace
All Implemented Interfaces:
ITrace

public final class Trace extends Object implements ITrace
  • Method Details

    • getId

      public String getId()
      Specified by:
      getId in interface ITrace
      Returns:
      The unique identifier of a trace
    • getTimestamp

      public OffsetDateTime getTimestamp()
      Specified by:
      getTimestamp in interface ITrace
      Returns:
      The timestamp when the trace was created
    • getName

      public Optional<String> getName()
      Specified by:
      getName in interface ITrace
      Returns:
      The name of the trace
    • getInput

      public Optional<Object> getInput()
      Specified by:
      getInput in interface ITrace
      Returns:
      The input data of the trace. Can be any JSON.
    • getOutput

      public Optional<Object> getOutput()
      Specified by:
      getOutput in interface ITrace
      Returns:
      The output data of the trace. Can be any JSON.
    • getSessionId

      public Optional<String> getSessionId()
      Specified by:
      getSessionId in interface ITrace
      Returns:
      The session identifier associated with the trace
    • getRelease

      public Optional<String> getRelease()
      Specified by:
      getRelease in interface ITrace
      Returns:
      The release version of the application when the trace was created
    • getVersion

      public Optional<String> getVersion()
      Specified by:
      getVersion in interface ITrace
      Returns:
      The version of the trace
    • getUserId

      public Optional<String> getUserId()
      Specified by:
      getUserId in interface ITrace
      Returns:
      The user identifier associated with the trace
    • getMetadata

      public Optional<Object> getMetadata()
      Specified by:
      getMetadata in interface ITrace
      Returns:
      The metadata associated with the trace. Can be any JSON.
    • getTags

      public List<String> getTags()
      Specified by:
      getTags in interface ITrace
      Returns:
      The tags associated with the trace.
    • getPublic

      public boolean getPublic()
      Specified by:
      getPublic in interface ITrace
      Returns:
      Public traces are accessible via url without login
    • getEnvironment

      public String getEnvironment()
      Specified by:
      getEnvironment in interface ITrace
      Returns:
      The environment from which this trace originated. Can be any lowercase alphanumeric string with hyphens and underscores that does not start with 'langfuse'.
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • builder

      public static Trace.IdStage builder()