log
decorator (either via environment variables GALILEO_PROJECT and GALILEO_LOG_STREAM, or via galileo_context.init()
)log
method__call__
methodfunc
: The function to decorate (when used without parentheses)name
: Optional custom name for the span (defaults to function name)span_type
: Optional span type (“llm”, “retriever”, “tool”, “workflow”)params
: Optional parameter mapping for extracting specific valuesdataset_record
: Optional parameter for dataset values. This is used by the local experiment module to set the dataset fields on the trace/spans and not generally provided for logging to log streams.project
: Optional project name to uselog_stream
: Optional log stream name to useList[WorkflowSpan]
: The current span stack
project
: The project name. Defaults to None.log_stream
: The log stream name. Defaults to None.project
: The project name. Defaults to None.log_stream
: The log stream name. Defaults to None.experiment_id
: The experiment id. Defaults to None.local_metrics
: Local metrics configs to run on the traces/spans before submitting them for ingestion. Defaults to None.name
: The name of the session. If not provided, a session name will be generated automatically.previous_session_id
: The id of the previous session. Defaults to None.external_id
: The external id of the session. Defaults to None.str
: The id of the newly created session.
session_id
: The id of the session to set.