All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Add
otelriverhook support for River producer metrics, includingriver.job_get_available_durationandriver.job_get_available_count. PR #64.
- Update River dependency to v0.41.0 in all subpackages. PR #71.
- Add
EnableTracePropagationconfiguration method, which enables linking river job spans to the span that enqueued them for tracing why a job was enqueued. PR #65
- Add
kindsspan attribute tootelriverinsert_manyspans listing the distinct job kinds in each batch. PR #62.
- Added
unique_skipped_as_duplicateattributes to otelinsert_manyspans andinsert_countmetric. PR #58.
- Record snoozed jobs with status
okinstead oferrorinotelrivermiddleware. Add newsnooze.durationspan attribute. PR #59.
- Augment
otelrivermiddleware to cleanly handle errors returned in batch results from River Pro's batch jobs feature. PR #54.
- Add
versionedjobhook providing a simple declarative version change framework for jobs. PR #39.
- Add
panictoerrormiddleware that recovers panics and returns them as errors to middlewares up the stack. PR #32.
- More complete example test for
nilerrorpackage. PR #27.
- Fix GitHub import path for
nilerrorpackage. PR #29. - Fix compliance of
nilerror.Hooktorivertype.HookWorkEndinterface. PR #30.
- Add
nilerrorhook to detect nil structs wrapped in non-nil error interfaces. PR #25.
- Added
otelriveroptionEnableWorkSpanJobKindSuffixwhich appends the job kind a suffix to work spans so they look likeriver.work/my_jobinstead ofriver.work. PR #23.
- Added license file (
LICENSE). The project uses the same Mozilla Public License Version 2.0 that the main River project uses. PR #19.
- Added
otelriveroptionMiddlewareConfig.DurationUnit. Can be used to configure duration metrics to be emitted in milliseconds instead of the default seconds. PR #10. - More attributes like job ID and timestamps on OpenTelemetry spans. PR #11.
- Added
otelriveroptionEnableSemanticMetricswhich will cause the middleware to emit metrics compliant with OpenTelemetry semantic conventions. PR #12.
- Initial release. Mainly brings in the
otelriverpackage for use of River with OpenTelemetry and DataDog. PR #1.