Skip to content

Commit

Permalink
Merge pull request #1079 from appsignal/rename-heartbeats-to-cron-che…
Browse files Browse the repository at this point in the history
…ckins

Rename heartbeats to cron check-ins
  • Loading branch information
unflxw committed Aug 14, 2024
2 parents 7fc918f + dc7691a commit 458ea80
Show file tree
Hide file tree
Showing 8 changed files with 585 additions and 373 deletions.
6 changes: 6 additions & 0 deletions .changesets/deprecate-heartbeats.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
bump: patch
type: deprecate
---

Calls to `Appsignal.heartbeat` and to the `Appsignal.Heartbeat` constructor will emit a deprecation warning.
22 changes: 22 additions & 0 deletions .changesets/rename-heartbeats-to-cron-check-ins.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
bump: patch
type: change
---

Rename heartbeats to cron check-ins. Calls to `Appsignal.heartbeat` and `Appsignal.Heartbeat` should be replaced with calls to `Appsignal.checkIn.cron` and `Appsignal.checkIn.Cron`, for example:

```js
// Before
import { heartbeat } from "@appsignal/nodejs"

heartbeat("do_something", () => {
do_something()
})

// After
import { checkIn } from "@appsignal/nodejs"

checkIn.cron("do_something", () => {
do_something
})
```
Loading

0 comments on commit 458ea80

Please sign in to comment.