Skip to main content

weave.trace_server_bindings.remote_http_trace_server


API Overview

Classes


class RemoteHTTPTraceServer

method __init__

__init__(
trace_server_url: str,
should_batch: bool = False,
remote_request_bytes_limit: int = 32505856
)

method call_end

call_end(req: Union[CallEndReq, Dict[str, Any]]) → CallEndRes

method call_read

call_read(req: Union[CallReadReq, Dict[str, Any]]) → CallReadRes

method call_start

call_start(req: Union[CallStartReq, Dict[str, Any]]) → CallStartRes

method call_update

call_update(req: Union[CallUpdateReq, Dict[str, Any]]) → CallUpdateRes

method calls_delete

calls_delete(req: Union[CallsDeleteReq, Dict[str, Any]]) → CallsDeleteRes

method calls_query

calls_query(req: Union[CallsQueryReq, Dict[str, Any]]) → CallsQueryRes

method calls_query_stats

calls_query_stats(
req: Union[CallsQueryStatsReq, Dict[str, Any]]
) → CallsQueryStatsRes

method calls_query_stream

calls_query_stream(req: CallsQueryReq) → Iterator[CallSchema]

method cost_create

cost_create(req: Union[CostCreateReq, Dict[str, Any]]) → CostCreateRes

method cost_purge

cost_purge(req: Union[CostPurgeReq, Dict[str, Any]]) → CostPurgeRes

method cost_query

cost_query(req: Union[CostQueryReq, Dict[str, Any]]) → CostQueryRes

method ensure_project_exists

ensure_project_exists(entity: str, project: str) → EnsureProjectExistsRes

method feedback_create

feedback_create(
req: Union[FeedbackCreateReq, Dict[str, Any]]
) → FeedbackCreateRes

method feedback_purge

feedback_purge(req: Union[FeedbackPurgeReq, Dict[str, Any]]) → FeedbackPurgeRes

method feedback_query

feedback_query(req: Union[FeedbackQueryReq, Dict[str, Any]]) → FeedbackQueryRes

method file_content_read

file_content_read(req: FileContentReadReq) → FileContentReadRes

method file_create

file_create(req: FileCreateReq) → FileCreateRes

classmethod from_env

from_env(should_batch: bool = False) → RemoteHTTPTraceServer

method obj_create

obj_create(req: Union[ObjCreateReq, Dict[str, Any]]) → ObjCreateRes

method obj_read

obj_read(req: Union[ObjReadReq, Dict[str, Any]]) → ObjReadRes

method objs_query

objs_query(req: Union[ObjQueryReq, Dict[str, Any]]) → ObjQueryRes

method op_create

op_create(req: Union[OpCreateReq, Dict[str, Any]]) → OpCreateRes

method op_read

op_read(req: Union[OpReadReq, Dict[str, Any]]) → OpReadRes

method ops_query

ops_query(req: Union[OpQueryReq, Dict[str, Any]]) → OpQueryRes

method refs_read_batch

refs_read_batch(req: Union[RefsReadBatchReq, Dict[str, Any]]) → RefsReadBatchRes

method server_info

server_info() → ServerInfoRes

method set_auth

set_auth(auth: Tuple[str, str])None

method table_create

table_create(req: Union[TableCreateReq, Dict[str, Any]]) → TableCreateRes

Similar to calls/batch_upsert, we can dynamically adjust the payload size due to the property that table creation can be decomposed into a series of updates. This is useful when the table creation size is too big to be sent in a single request. We can create an empty table first, then update the table with the rows.


method table_query

table_query(req: Union[TableQueryReq, Dict[str, Any]]) → TableQueryRes

method table_update

table_update(req: TableUpdateReq) → TableUpdateRes

Similar to calls/batch_upsert, we can dynamically adjust the payload size due to the property that table updates can be decomposed into a series of updates.


class ServerInfoRes

Pydantic Fields:

  • min_required_weave_python_version: <class 'str'>

class StartBatchItem

Pydantic Fields:

  • mode: <class 'str'>
  • req: <class 'weave.trace_server.trace_server_interface.CallStartReq'>

class EndBatchItem

Pydantic Fields:

  • mode: <class 'str'>
  • req: <class 'weave.trace_server.trace_server_interface.CallEndReq'>

class Batch

Pydantic Fields:

  • batch: typing.List[typing.Union[StartBatchItem, EndBatchItem]]