Zespan
Start free
Alert destinations

Alert destinations Integration

Send Zespan alert rules to Slack, PagerDuty, Opsgenie, Discord, Jira, Freshservice, email or your own HTTPS endpoint. Mix channel types on one rule and test each channel before the rule goes live.

Alert destinations are the channels a Zespan alert rule notifies when a metric such as error rate, cost, latency or an eval score crosses its threshold.

zespan.com — alert destinations trace
A Zespan alert delivered to a Slack channel

Getting Started

1

Create an alert rule

Go to Alerts and click Create Alert. Name the rule, pick a metric such as error_rate, cost, latency or tool_error_rate, set the condition and threshold, and choose a 5, 15, 30 or 60 minute window.

2

Add notification channels

Slack and Discord take a webhook URL, PagerDuty an Events API v2 integration key, Opsgenie an API key, Jira a base URL, email, API token, project key and issue type, and Freshservice a domain and API key. Email takes a list of addresses. You can mix channel types on one rule.

3

Test the channel

Use Test channel after adding a channel to check delivery before the rule goes live. Once saved, credentials are shown as Saved (hidden) to every role.

4

Verify webhook signatures

A webhook channel POSTs a signed JSON payload to any HTTPS URL. Compute HMAC-SHA256 of the raw request body with your signing secret and compare it to the signature before processing.

python
import hmac
import hashlib
import os

WEBHOOK_SECRET = os.environ["ZESPAN_WEBHOOK_SECRET"]

def verify(raw_body: bytes, signature: str) -> bool:
    expected = "sha256=" + hmac.new(
        WEBHOOK_SECRET.encode(),
        raw_body,
        hashlib.sha256,
    ).hexdigest()
    return hmac.compare_digest(signature, expected)

What's captured automatically

  • Eight channel types: email, Slack, PagerDuty, Opsgenie, Discord, Jira, Freshservice and webhook
  • Severity carried through: PagerDuty incidents by severity, Opsgenie priority P1/P2/P3, Freshservice ticket priority
  • Colour-coded Slack messages and Discord embeds
  • Signed webhooks: HMAC-SHA256, 10 second timeout, 3 attempts with exponential backoff
  • A delivery record for every fire, saying whether the message reached its channels
  • A daily digest of what waits in Needs you, by email and one Slack or webhook channel

FAQ

Which plan do I need?

Alert rules need the Pro plan or higher. Webhook delivery is on the Scale plan. On Pro and Team, email notifications are available.

Do incidents use the same channels?

Yes. Incidents trigger the same notification channels as alert rules. If an incident opens while an alert for the same metric is active, Zespan sends one notification, not two.

Can Needs you items go to chat?

As a daily digest. Settings › Notifications sends one message a day by email and to one Slack incoming webhook or webhook per project. It carries counts and a link, with no names, project name or trace text. Tool approvals are not sent to chat as instant messages.

What happens if my webhook endpoint is down?

Zespan makes 3 attempts with exponential backoff (5s, 25s, 125s), then marks the delivery as failed. The URL must use HTTPS and resolve to a public address, and redirects are not followed.

Start free — 50K traces a month, no card needed

Alert destinations integration works on all plans including the free tier.

← All integrations