galileo_context
and make sure to call galileo_context.flush()
at the end of your notebook.
metadata
fields to attach filterable labels to your logged Traces and Spans. This allows you organize and view the logged data in the Galileo Console, and add annotation-based logic to your AI application.
Annotations can be used to track things like relevant topics, version numbers, experiment IDs, and beyond.
Authorization
header with a valid bearer token in every request:
POST
request to the /samples
endpoint with a JSON payload:
4XX
and 5XX
status codestrace_id
or span_id
created when initially logging. View Trace IDs and Span IDs in the Galileo Console in your Project’s Log Streams.
This is useful for streaming or progressive generation workflows.
PROJECT_ID
and LOG_STREAM_ID
GALILEO_API_KEY
pip install galileo
(Python) or npm install galileo
(TypeScript).galileo_context
or create a new Trace in your application.logger.flush()
in your application after all of the data to be logged has been created.