Cross-Provider Workflow

Sentry Issue to Datadog Event to Slack

Version 1.0.0

Pull a Sentry issue, post a Datadog event, then notify Slack.

1 workflow 3 source APIs 3 providers
View Spec View on GitHub ArazzoWorkflowsCross-Provider

Providers Orchestrated

sentry datadog slack

Workflows

sentry-issue-to-datadog-event
List a Sentry issue, post a Datadog event, and notify Slack.
Retrieves open issues for a Sentry organization, posts the top error as a Datadog event, and notifies a Slack channel with the error title.
3 steps inputs: organizationSlug, slackChannel outputs: eventId, messageTs, sentryTitle
1
list-sentry-issues
$sourceDescriptions.sentryApi.listOrganizationIssues
List open issues for the Sentry organization.
2
post-datadog-event
$sourceDescriptions.datadogEvents.createEvent
Record the Sentry error as a Datadog event.
3
notify-slack
$sourceDescriptions.slackChat.postChatPostmessage
Notify a Slack channel with the Sentry error title.

Source API Descriptions

Arazzo Workflow Specification

dev-sentry-issue-to-datadog-event-slack.yml Raw ↑
arazzo: 1.0.1
info:
  title: Sentry Issue to Datadog Event to Slack
  summary: Pull a Sentry issue, post a Datadog event, then notify Slack.
  description: >-
    A DevOps correlation workflow that lists open issues for a Sentry
    organization, records the top error as a Datadog event so it surfaces on the
    observability timeline, and notifies a Slack channel. Demonstrates chaining
    an error-monitoring provider, an observability provider, and a chat provider
    in a single Arazzo workflow.
  version: 1.0.0
sourceDescriptions:
  - name: sentryApi
    url: https://raw.githubusercontent.com/api-evangelist/sentry/refs/heads/main/openapi/sentry-api-openapi.yml
    type: openapi
  - name: datadogEvents
    url: https://raw.githubusercontent.com/api-evangelist/datadog/refs/heads/main/openapi/datadog-events-openapi.yml
    type: openapi
  - name: slackChat
    url: https://raw.githubusercontent.com/api-evangelist/slack/refs/heads/main/openapi/slack-chat-openapi.yml
    type: openapi
workflows:
  - workflowId: sentry-issue-to-datadog-event
    summary: List a Sentry issue, post a Datadog event, and notify Slack.
    description: >-
      Retrieves open issues for a Sentry organization, posts the top error as a
      Datadog event, and notifies a Slack channel with the error title.
    inputs:
      type: object
      properties:
        organizationSlug:
          type: string
        slackChannel:
          type: string
    steps:
      - stepId: list-sentry-issues
        description: List open issues for the Sentry organization.
        operationId: $sourceDescriptions.sentryApi.listOrganizationIssues
        successCriteria:
          - condition: $statusCode == 200
        outputs:
          sentryTitle: $response.body#/0/title
          sentryPermalink: $response.body#/0/permalink
      - stepId: post-datadog-event
        description: Record the Sentry error as a Datadog event.
        operationId: $sourceDescriptions.datadogEvents.createEvent
        requestBody:
          contentType: application/json
          payload:
            title: $steps.list-sentry-issues.outputs.sentryTitle
            text: $steps.list-sentry-issues.outputs.sentryPermalink
            alert_type: warning
            tags:
              - source:sentry
        successCriteria:
          - condition: $statusCode == 202
        outputs:
          eventId: $response.body#/event/id
      - stepId: notify-slack
        description: Notify a Slack channel with the Sentry error title.
        operationId: $sourceDescriptions.slackChat.postChatPostmessage
        requestBody:
          contentType: application/json
          payload:
            channel: $inputs.slackChannel
            text: $steps.list-sentry-issues.outputs.sentryPermalink
        successCriteria:
          - condition: $statusCode == 200
        outputs:
          messageTs: $response.body#/ts
    outputs:
      sentryTitle: $steps.list-sentry-issues.outputs.sentryTitle
      eventId: $steps.post-datadog-event.outputs.eventId
      messageTs: $steps.notify-slack.outputs.messageTs