0.6.3 - Nap detection & HTTP logs middleware #1303
KaliszS
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Highlights
We encourage you to use our official Docker images:
Changes to HTTP logs
As HTTP logs usually account for more than 80% of all logs, we have disabled them by default for production deployments and added a new variable to control their flow (
ACCESS_LOG_LEVEL). How it works:ACCESS_LOG_LEVEL=all-> All HTTP logs are available, as beforeACCESS_LOG_LEVEL=errors-> only 4xx & 5xx log entries are availableACCESS_LOG_LEVEL=off-> no HTTP logsACCESS_LOG_LEVEL(None value):ENVIRONMENT=production->errorslevel is set automaticallyalllevel is set automaticallyWe have also changed the structure of the HTTP logs:
Warning
By default,
ACCESS_LOG_LEVELis set toNone, so if you have theENVIRONMENTvariable set toproduction, you will stop logging most messages. If you wish to retain the current behaviour, you must add theACCESS_LOG_LEVELvariable and set it toall.Note
For the time being, this change only affects HTTP logs from uvicorn. The new variable does not alter the behaviour of logs from Open Wearables.
Nap detection for Apple & Oura
We have added support for naps based on data provided by Apple and Oura. For the time being, this feature works correctly only for these two providers, but we will endeavour to develop our own algorithms to detect naps for providers that do not themselves flag which sleep sessions are naps.
Strava workout samples
Once the
INGEST_WORKOUT_SAMPLESvariable is set totrue(it was added in previous versions whilst working on Garmin workout samples and is set tofalseby default), Strava will start logging workout data at a high frequency. You can find out more about this mechanism in the entry “Ingest workout samples” for Garmin in the 0.6.0 release note: https://github.com/the-momentum/open-wearables/releases#release-0.6.0Redis switched from RDF to AOF mode
We have changed the way Redis works to avoid errors in certain edge cases. You can read the details here: #1188. We have, of course, ensured that the data stored in Redis is preserved during the update.
The Docker Dev image has been reduced in size by around 40%
We achieved this by sealing the
.dockerignorefile and removing old and unused layers from theDockerfile. This, of course, only applies to the local development version; nothing changes in the production build.What's Changed
Outgoing webhooks
Apple
Oura
Suunto
Garmin
Strava
Fitbit
API improvements & optimisation
Observability & deployments
MCP
Docs & chores
New Contributors
Full Changelog: 0.6.2...0.6.3
This discussion was created from the release 0.6.3 - Nap detection & HTTP logs middleware.
Beta Was this translation helpful? Give feedback.
All reactions