with Sentry and Data Stores?
Emit new events for issues that have been created or updated.
Add or update a single record in your Pipedream Data Store
Return a list of events bound to a project. See the docs here
Add or update multiple records to your Pipedream Data Store
Return a list of issues bound to a project. See the docs here
The Sentry API on Pipedream allows you to automate error tracking and responses in your applications. Sentry's robust issue tracking and release monitoring align with Pipedream's ability to craft custom workflows, enabling developers to connect error alerts to a plethora of other services for notifications, analysis, task management, and more. With Sentry's detailed diagnostic data, these workflows can help reduce downtime by triggering quick actions upon issue detection.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
sentry: {
type: "app",
app: "sentry",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://sentry.io/api/0/`,
headers: {
Authorization: `Bearer ${this.sentry.$auth.auth_token}`,
},
})
},
})
Data Stores are a key-value store that allow you to persist state and share data across workflows. You can perform CRUD operations, enabling dynamic data management within your serverless architecture. Use it to save results from API calls, user inputs, or interim data; then read, update, or enrich this data in subsequent steps or workflows. Data Stores simplify stateful logic and cross-workflow communication, making them ideal for tracking process statuses, aggregating metrics, or serving as a simple configuration store.
export default defineComponent({
props: {
myDataStore: {
type: "data_store",
},
},
async run({ steps, $ }) {
await this.myDataStore.set("key_here","Any serializable JSON as the value")
return await this.myDataStore.get("key_here")
},
})