Skip to main content

get_spans

def get_spans(project_id: str,
              experiment_id: Optional[str] = None,
              log_stream_id: Optional[str] = None,
              filters: Optional[list[FilterType]] = None,
              sort: Optional[LogRecordsSortClause] = None,
              limit: int = 100,
              starting_token: int = 0) -> LogRecordsQueryResponse
Queries for spans in a project. Arguments:
  • project_id: The unique identifier of the project.
  • experiment_id: Filter records by a specific experiment ID.
  • log_stream_id: Filter records by a specific run ID.
  • filters: A list of filters to apply to the query.
  • sort: A sort clause to order the query results.
  • limit: The maximum number of records to return.
  • starting_token: The token for the next page of results.
Returns: A LogRecordsQueryResponse object containing the query results.

get_traces

def get_traces(project_id: str,
               experiment_id: Optional[str] = None,
               log_stream_id: Optional[str] = None,
               filters: Optional[list[FilterType]] = None,
               sort: Optional[LogRecordsSortClause] = None,
               limit: int = 100,
               starting_token: int = 0) -> LogRecordsQueryResponse
Queries for traces in a project. Arguments:
  • project_id: The unique identifier of the project.
  • experiment_id: Filter records by a specific experiment ID.
  • log_stream_id: Filter records by a specific run ID.
  • filters: A list of filters to apply to the query.
  • sort: A sort clause to order the query results.
  • limit: The maximum number of records to return.
  • starting_token: The token for the next page of results.
Returns: A LogRecordsQueryResponse object containing the query results.

get_sessions

def get_sessions(project_id: str,
                 experiment_id: Optional[str] = None,
                 log_stream_id: Optional[str] = None,
                 filters: Optional[list[FilterType]] = None,
                 sort: Optional[LogRecordsSortClause] = None,
                 limit: int = 100,
                 starting_token: int = 0) -> LogRecordsQueryResponse
Queries for sessions in a project. Arguments:
  • project_id: The unique identifier of the project.
  • experiment_id: Filter records by a specific experiment ID.
  • log_stream_id: Filter records by a specific run ID.
  • filters: A list of filters to apply to the query.
  • sort: A sort clause to order the query results.
  • limit: The maximum number of records to return.
  • starting_token: The token for the next page of results.
Returns: A LogRecordsQueryResponse object containing the query results.