Module
Utilities for distributed tracing with Galileo.get_tracing_headers
GalileoLoggerException: If not in distributed mode or if no trace has been started
dict[str, str]: Dictionary with X-Galileo-Trace-ID and X-Galileo-Parent-ID headers
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
As of August 7, 2026, Galileo is now Splunk Agent Observability. This documentation applies to customers who onboarded prior to August 7, 2026. If you onboarded after this date, use agent-observability-docs.splunk.com.
def get_tracing_headers() -> dict[str, str]
GalileoLoggerException: If not in distributed mode or if no trace has been starteddict[str, str]: Dictionary with X-Galileo-Trace-ID and X-Galileo-Parent-ID headersfrom galileo import log, get_tracing_headers
import httpx
@log()
async def orchestrator():
# Get headers to pass to downstream service
headers = get_tracing_headers()
# Call downstream service with trace context
async with httpx.AsyncClient() as client:
response = await client.post(
"http://service:8000/process",
headers=headers,
json={"data": "..."}
)
Was this page helpful?