Learn the basics of logging using the Galileo SDKs
GalileoLogger
object that is configured to point to a specific project and Log stream, then from there you can create sessions and traces, and add log spans to a trace. This logger can be created manually, or automatically using a range of wrappers, decorators and integrations with third party SDKs.
.env
file for these, for a production deployment make sure you configure these correctly for your deployment platform.
Environment variable | Description |
---|---|
GALILEO_API_KEY | Your Galileo API key. |
GALILEO_CONSOLE_URL | Optional. For custom Galileo deployments only, set this to the URL of your Galileo Console to log to. If this is not set, it will default to the free or hosted Galileo version at app.galileo.ai. |
GALILEO_CONSOLE_URL
environment variable.Environment variable | Description |
---|---|
GALILEO_PROJECT | The Galileo project to log to. If this is not set, you will need to pass the project name in code. |
GALILEO_LOG_STREAM | The default Log stream to log to. If this is not set, you will need to pass the Log stream name in code. |
log
decorator to start a trace, access the log that was created by the decorator to add workflow spans, then have spans added automatically under these workflow spans using the OpenAI Agents SDK integration.