This guide walks through the process of configuring PagerDuty as a notification channel for LangSmith alerts using PagerDuty’s Events API v2. This integration allows critical LLM application issues to trigger PagerDuty incidents, enabling rapid response through your established incident management workflow.
To receive the same alert again within an hour of it being triggered, you must resolve the active incident created by the alert in PagerDuty.
In the notification section of your alert set-up in LangSmith, select PagerDuty
Click the key icon to save the Integration Key as a Workspace secret or select an existing Workspace secret. As a best practice, we recommend saving the Integration Key as a Workspace Secret rather than adding it directy. This will allow you to re-use the same key across alerts for a workspace.
Configure additional notification options:
Severity: Maps to PagerDuty incident priority
Send a test alert by clicking Send Test Alert
Verify the incident is triggered by PagerDuty and contains relevant LangSmith alert information
Verify the Integration Key is entered correctly in LangSmith
Ensure the PagerDuty service is active and not in maintenance mode
Check that your PagerDuty account has Events API v2 enabled
If an alert trigger appears to be missing in PagerDuty, check whether the expected trigger occurred within one hour of a previous trigger from the same alert rule, and whether the incident created by the previous alert is still open.
Review network connectivity if your LangSmith instance is behind a firewall