Stream Integration and MCP Tool-Call Logs to Datadog, Splunk or Any OTLP Backend
What it takes to get every customer's integration calls and AI agent tool calls into the log tool your team already uses, and what Truto streams.
The Truto Team
·
·
5 min read
Use Splunk in your own
When a customer says "the Salesforce sync stopped" or "the agent didn't update the ticket", the first question is what the integration did. If those logs live in a separate dashboard, your on-call engineer has to leave the tool they use for everything else. Your alerts and dashboards also cannot see them.
The Pro add-on on Truto ($499 a month, see pricing) streams Truto's logs into the tool your team already searches. This post covers what gets streamed, how it helps, and what you would build to do the same thing yourself.
What Truto streams, and where
Truto writes a structured log for every request it handles and every background job it runs. With log streaming, you add an observability destination to an environment, and Truto sends that environment's logs to it (log forwarding docs).
Six destination types are available:
- Datadog, with your own tags, and HTTP fields under Datadog's standard
http.*attributes. - Splunk HEC, with your choice of index, source and source type.
- Microsoft Sentinel, through the Azure Monitor Logs Ingestion API.
- OpenTelemetry (OTLP) over HTTP, for Grafana, an OpenTelemetry Collector or any other backend that accepts OTLP logs.
- Elasticsearch, with Elastic Common Schema fields.
- S3-compatible storage: Amazon S3, Google Cloud Storage, Cloudflare R2 or MinIO, as an archive.
An environment can have several destinations. Each gets its own copy of every log, and each has its own filter by log type (log types):
| Log type | What it covers |
|---|---|
| API | Unified, Proxy and Custom API calls, MCP calls, incoming webhooks |
| Durable Object | Sync job runs, webhook deliveries, workflows |
| Queue | Events that start runs and fan out webhooks |
| Alarm | Cron triggers, scheduled actions, token refreshes |
| Audit | Who changed what in your Truto team |
The setup steps, the payload for each destination and the OTLP field mapping are in Send Truto logs to OpenTelemetry (OTLP), Splunk, Sentinel, Elasticsearch and S3.
What is in each log
An API log holds the request line and its result. The fields include (what a forwarded log looks like):
http_method,http_urlandhttp_status_codeduration, in millisecondsrequest_type:unified,proxy,mcp,adminorenvironment_integration_webhookintegrated_account_id,integrationandresourceenvironment_id- for MCP calls:
mcp_server_id,mcp_methodandtool_name
Truto's logs do not store request or response bodies. A log tells you that a POST to a HubSpot contact failed with a 400 after 412 ms for one account. It does not hold the contact.
How streamed logs help
Debugging one customer's integration
Your product already maps each integrated account to one of your customers. Filter on integrated_account_id in Datadog or Splunk, and you see every call for that customer, next to the logs of your own services. The question "did our code send the call, and what did the app answer?" takes one search, not a second dashboard.
Alerting before the customer notices
Once the logs are in your tool, you can alert on them with the rules you already have. Some examples:
- the rate of
5xxor429statuses for one integration goes up; integrated_account_needs_reauthis true, so a customer must reconnect (viewing logs);- a sync job run logs
sync_job_run_event: failed; - a webhook delivery to your endpoint logs
webhook_successful: false.
AI agent tool calls
When an agent works in a customer's apps through a Truto MCP server, each tool call is an API log with the tool name and the result status (MCP servers). Put those logs next to your agent traces, and you can tell a bad tool choice from an app that refused the call. You can also count tool calls per customer and per tool.
SLAs and reporting
duration and http_status_code on every call give you the numbers for an internal SLA report: error rate and latency per integration, per customer, per month. You build the report in the tool you already use for your own service.
Keeping logs longer
The Truto dashboard and API keep 7 days of logs on Free, 30 days on Pay as you go and 90 days with the Pro add-on (pricing). Streaming to your own tool or an S3 archive keeps them for as long as your own retention policy says.
What you would build yourself
You can get the same result without Truto's log streaming. Here is the work, if your integrations run in your own code:
- Log every outbound call in a consistent shape, in every integration, including retries and token refreshes.
- Tag each log with the customer and the connected account, everywhere, so per-customer filters work.
- Write one forwarder per log tool: Datadog's intake API, Splunk HEC, OTLP, and so on. Each has its own format, auth and error codes.
- Batch and retry without slowing down the calls themselves, and without loops on a bad credential.
- Redact tokens, API keys and OAuth codes from URLs and headers before they leave your system.
- Keep the forwarder's credentials safe, and keep them from going to a host that was not checked.
- Build the dashboards and alerts on top.
On Truto, steps 1 to 6 are done for every connected account, and you add a destination in Settings → Observability or with POST /observability-destination (log forwarding docs). Destination secrets are write-only: Truto never returns them. Your team keeps step 7, in the tool it already knows.
Where this fits
Truto is integration infrastructure that AI agents build and deploy integrations on. An integration that an agent writes can work in a demo and still fail in production, for reasons such as an expired token, a rate limit, or a changed API. Logs that reach your own tool are how your team sees those failures early, for every customer.
Truto charges per API call, $5 per 100,000 calls, and connections are free (pricing). Log streaming is part of the Pro add-on at $499 a month, together with 90-day log history, white-label, SAML SSO and the other Pro items. For what a security review asks about these logs, read Audit-ready integration logs for security reviews.
FAQ
- Which log tools can receive Truto's logs?
- Datadog, Splunk HTTP Event Collector, Microsoft Sentinel, any OpenTelemetry collector that accepts OTLP over HTTP, Elasticsearch, and Amazon S3, Google Cloud Storage, Cloudflare R2 or MinIO. An environment can stream to several destinations at once, and each one gets its own copy of every log.
- Which Truto plan includes log streaming?
- Log streaming is part of the Pro add-on, at $499 a month on top of your plan. The Pro add-on also raises log history in the Truto dashboard and API to 90 days.
- Can I see which customer an integration log belongs to?
- Yes. API logs carry the integrated account ID and the integration, such as hubspot. Your product already knows which integrated account belongs to which of your customers, so you can group, filter and alert per customer in your own log tool.
- Are AI agent tool calls in the streamed logs?
- Yes. Calls to a per-account MCP server are API logs with the MCP server ID, the MCP method, such as tools/call, and the tool name, next to the HTTP status and duration.
- Do the streamed logs include request or response bodies?
- No. Truto's logs do not store request or response bodies. An API log holds the method, URL, status, timing and the IDs of the account, integration and resource.