Skip to main content

Know What Your AI Did

Every request through Raptor is logged with full metadata. Debugging, compliance, analytics—all covered.

What’s Logged

FieldExample
request_idabc123-def456-...
timestamp2024-01-15T10:30:00Z
methodPOST
path/v1/chat/completions
status200
cache_hittrue / false
latency_ms5
upstream_latency_ms450
firewall_resultnull / blocked

Dashboard

View all requests in your dashboard:
  1. Go to Traces in the sidebar
  2. Filter by date, status, cache hit, or agent
  3. Click a row for full request details

Response Headers

Every response includes a request ID:
X-Raptor-Request-Id: abc123-def456-...
Use this to look up the full evidence record in your dashboard.

Agent Tracking

Tag requests by agent for multi-agent systems:
client = OpenAI(
    base_url="https://proxy.raptordata.dev/v1",
    default_headers={
        "X-Raptor-Api-Key": "rpt_...",
        "X-Raptor-Workspace-Id": "...",
        "X-Raptor-Agent-Id": "support-bot"  # Add this
    }
)
Then filter by agent in your dashboard.

Compliance

Raptor evidence logs support common compliance requirements:
RequirementHow Raptor Helps
Audit trailEvery request logged with timestamp and metadata
Data retentionConfigurable retention periods
Access controlWorkspace isolation, API key scoping
Request tracingUnique request IDs for debugging

Retention

PlanRetention
Free7 days
Pro30 days
EnterpriseCustom

Performance

Evidence logging is completely async. Logs are sent to a background worker via an in-memory channel. Your requests never wait for logging.
Request → Response (immediate)
    └──→ Log channel → Background worker → Database
Zero impact on request latency. We buffer up to 10,000 log entries and batch-write to the database.