From e5e5db91e3d011c0dad7d7787f0eecc118bfd940 Mon Sep 17 00:00:00 2001 From: Noemi <45180344+unflxw@users.noreply.github.com> Date: Wed, 9 Oct 2024 15:22:58 +0200 Subject: [PATCH] Publish package v1.4.0 Update version number and CHANGELOG.md. --- .changesets/change-primary-download-mirror.md | 11 ------ .changesets/implement-heartbeat-checkins.md | 26 -------------- .changesets/send-checkins-concurrently.md | 6 ---- CHANGELOG.md | 35 +++++++++++++++++++ src/appsignal/__about__.py | 2 +- 5 files changed, 36 insertions(+), 44 deletions(-) delete mode 100644 .changesets/change-primary-download-mirror.md delete mode 100644 .changesets/implement-heartbeat-checkins.md delete mode 100644 .changesets/send-checkins-concurrently.md diff --git a/.changesets/change-primary-download-mirror.md b/.changesets/change-primary-download-mirror.md deleted file mode 100644 index 3fd51ff..0000000 --- a/.changesets/change-primary-download-mirror.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -bump: patch -type: change -integrations: -- elixir -- nodejs -- python -- ruby ---- - -Change the primary download mirror for integrations. diff --git a/.changesets/implement-heartbeat-checkins.md b/.changesets/implement-heartbeat-checkins.md deleted file mode 100644 index 56d8faf..0000000 --- a/.changesets/implement-heartbeat-checkins.md +++ /dev/null @@ -1,26 +0,0 @@ ---- -bump: minor -type: add ---- - -Add support for heartbeat check-ins. - -Use the `appsignal.check_in.heartbeat` function to send a single heartbeat check-in event from your application. This can be used, for example, in your application's main loop: - -```python -from appsignal.check_in import heartbeat - -while True: - heartbeat("job_processor") - process_job() -``` - -Heartbeats are deduplicated and sent asynchronously, without blocking the current thread. Regardless of how often the `.heartbeat` function is called, at most one heartbeat with the same identifier will be sent every ten seconds. - -Pass `continuous=True` as the second argument to send heartbeats continuously during the entire lifetime of the current process. This can be used, for example, after your application has finished its boot process: - -```python -def main(): - start_app() - heartbeat("my_app", continuous=True) -``` diff --git a/.changesets/send-checkins-concurrently.md b/.changesets/send-checkins-concurrently.md deleted file mode 100644 index 25aa31e..0000000 --- a/.changesets/send-checkins-concurrently.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -bump: patch -type: change ---- - -Send check-ins concurrently. When calling `appsignal.check_in.cron`, instead of blocking the current thread while the check-in events are sent, schedule them to be sent in a separate thread. diff --git a/CHANGELOG.md b/CHANGELOG.md index a448dd3..c588e08 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,40 @@ # AppSignal for Python Changelog +## 1.4.0 + +_Published on 2024-10-09._ + +### Added + +- Add support for heartbeat check-ins. + + Use the `appsignal.check_in.heartbeat` function to send a single heartbeat check-in event from your application. This can be used, for example, in your application's main loop: + + ```python + from appsignal.check_in import heartbeat + + while True: + heartbeat("job_processor") + process_job() + ``` + + Heartbeats are deduplicated and sent asynchronously, without blocking the current thread. Regardless of how often the `.heartbeat` function is called, at most one heartbeat with the same identifier will be sent every ten seconds. + + Pass `continuous=True` as the second argument to send heartbeats continuously during the entire lifetime of the current process. This can be used, for example, after your application has finished its boot process: + + ```python + def main(): + start_app() + heartbeat("my_app", continuous=True) + ``` + + (minor [687890b](https://github.com/appsignal/appsignal-python/commit/687890b54db3b9f03d8e0a7270586c545a89fdb6)) + +### Changed + +- Change the primary download mirror for integrations. (patch [3e0bb9e](https://github.com/appsignal/appsignal-python/commit/3e0bb9e36eb3b0fbe2ae9b907fcda9060c018d2e)) +- Send check-ins concurrently. When calling `appsignal.check_in.cron`, instead of blocking the current thread while the check-in events are sent, schedule them to be sent in a separate thread. (patch [687890b](https://github.com/appsignal/appsignal-python/commit/687890b54db3b9f03d8e0a7270586c545a89fdb6)) + ## 1.3.10 _Published on 2024-08-23._ diff --git a/src/appsignal/__about__.py b/src/appsignal/__about__.py index 21b9440..dc6a63a 100644 --- a/src/appsignal/__about__.py +++ b/src/appsignal/__about__.py @@ -1,4 +1,4 @@ from __future__ import annotations -__version__ = "1.3.10" +__version__ = "1.4.0"