Class GetTracesRequest
java.lang.Object
com.langfuse.client.resources.trace.requests.GetTracesRequest
-
Method Details
-
getTags
- Returns:
- Only traces that include all of these tags will be returned.
-
getEnvironment
- Returns:
- Optional filter for traces where the environment is one of the provided values.
-
getPage
- Returns:
- Page number, starts at 1
-
getLimit
- Returns:
- Limit of items per page. If you encounter api issues due to too large page sizes, try to reduce the limit.
-
getUserId
-
getName
-
getSessionId
-
getFromTimestamp
- Returns:
- Optional filter to only include traces with a trace.timestamp on or after a certain datetime (ISO 8601)
-
getToTimestamp
- Returns:
- Optional filter to only include traces with a trace.timestamp before a certain datetime (ISO 8601)
-
getOrderBy
- Returns:
- Format of the string [field].[asc/desc]. Fields: id, timestamp, name, userId, release, version, public, bookmarked, sessionId. Example: timestamp.asc
-
getVersion
- Returns:
- Optional filter to only include traces with a certain version.
-
getRelease
- Returns:
- Optional filter to only include traces with a certain release.
-
getFields
- Returns:
- Comma-separated list of fields to include in the response. Available field groups: 'core' (always included), 'io' (input, output, metadata), 'scores', 'observations', 'metrics'. If not specified, all fields are returned. Example: 'core,scores,metrics'. Note: Excluded 'observations' or 'scores' fields return empty arrays; excluded 'metrics' returns -1 for 'totalCost' and 'latency'.
-
getFilter
- Returns:
- JSON string containing an array of filter conditions. When provided, this takes precedence over query parameter filters (userId, name, sessionId, tags, version, release, environment, fromTimestamp, toTimestamp).
-
equals
-
getAdditionalProperties
-
hashCode
public int hashCode() -
toString
-
builder
-