Monitoring tools: Sentry, Datadog, New Relic, Grafana, CloudWatch and OpenTelemetry
Monitoring tools: Sentry, Datadog, New Relic, Grafana, CloudWatch and OpenTelemetry
Connect your monitoring tools read-only. When someone opens a ticket, TR-AI looks for the customer’s error there and shows how often it happens, since when and for how many users.
Open Escalation → Hand-offs & engineering → Monitoring tools and connect Sentry (organization slug and an auth token with event:read), Datadog (site, plus an API key and an application key with logs read access, written as api-key:application-key) or New Relic (account ID, region and a user key). Select Test to check the connection.
- In a ticket’s Investigation, “In your monitoring tools” lists matching Sentry issues, Datadog log lines and New Relic errors — events, users, first and last seen — with a link to open each one.
- Only the error code or a short error message is sent to your tools; never the customer’s name, e-mail or the rest of the ticket.
- Keys are stored encrypted and never shown again. Use read-only keys: TR-AI only searches. Results are kept for 5 minutes.
- No match is shown too: it suggests the problem is on the customer’s side or isn’t logged.
Grafana, CloudWatch and OpenTelemetry
- Grafana (Loki logs): your Grafana URL, the Loki data source UID and a service account token with the Viewer role. Optionally a stream selector such as {app="api"}.
- AWS CloudWatch Logs: the region, the log groups to search (comma-separated) and an IAM key limited to logs:StartQuery, logs:GetQueryResults and logs:DescribeLogGroups, written as key-id:secret. TR-AI runs a Logs Insights query over the last 7 days.
- OpenTelemetry: select Create token, then add an otlphttp exporter to your collector with the endpoint shown, encoding json and the header Authorization: Bearer <token>, on the logs and traces pipelines. TR-AI keeps only ERROR log records and error spans, masks e-mails, keys and card numbers, and deletes them after 14 days. Metrics are not collected; protobuf encoding isn’t accepted.
- Until a connection’s Test (or Check) succeeds, treat it as not working: it shows the last error instead.