prometheus instrumentation helper for go-autumn-restclient

  • By Stephan B.
  • Last update: Apr 14, 2022
  • Comments: 8

go-autumn-restclient-prometheus

Prometheus instrumentation functions for go-autumn-restclient.

About go-autumn

A collection of libraries for enterprise microservices in golang that

  • is heavily inspired by Spring Boot / Spring Cloud
  • is very opinionated
  • names modules by what they do
  • unlike Spring Boot avoids certain types of auto-magical behaviour
  • is not a library monolith, that is every part only depends on the api parts of the other components at most, and the api parts do not add any dependencies.

Fall is my favourite season, so I'm calling it go-autumn.

About go-autumn-restclient

It's a rest client that also supports x-www-form-urlencoded.

About go-autumn-restclient-prometheus

Implements instrumentation callbacks that use prometheus/client_golang.

Usage

Use the provided callbacks while constructing your rest client stack.

Download

go-autumn-restclient-prometheus.zip

Comments(8)

  • 1

    Bump github.com/prometheus/client_golang from 1.13.0 to 1.13.1

    Bumps github.com/prometheus/client_golang from 1.13.0 to 1.13.1.

    Release notes

    Sourced from github.com/prometheus/client_golang's releases.

    1.13.1 / 2022-11-02

    • [BUGFIX] Fix race condition with Exemplar in Counter. #1146
    • [BUGFIX] Fix CumulativeCount value of +Inf bucket created from exemplar. #1148
    • [BUGFIX] Fix double-counting bug in promhttp.InstrumentRoundTripperCounter. #1118

    Full Changelog: https://github.com/prometheus/client_golang/compare/v1.13.0...v1.13.1

    Changelog

    Sourced from github.com/prometheus/client_golang's changelog.

    1.13.1 / 2022-11-01

    • [BUGFIX] Fix race condition with Exemplar in Counter. #1146
    • [BUGFIX] Fix CumulativeCount value of +Inf bucket created from exemplar. #1148
    • [BUGFIX] Fix double-counting bug in promhttp.InstrumentRoundTripperCounter. #1118
    Commits
    • 53e51c4 Merge pull request #1157 from prometheus/cut-1.13.1
    • 79ca0eb Added tip from Björn + Grammarly.
    • 078f11f Cut 1.13.1 release (+ documenting release process).
    • ddd7f0e Fix race condition with Exemplar in Counter (#1146)
    • 1f93f64 Fix CumulativeCount value of +Inf bucket created from exemplar (#1148)
    • 8cc2b6c Fix double-counting bug in promhttp.InstrumentRoundTripperCounter (#1118)
    • See full diff in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • 2

    Bump github.com/StephanHCB/go-autumn-restclient from 0.4.0 to 0.4.3

    Bumps github.com/StephanHCB/go-autumn-restclient from 0.4.0 to 0.4.3.

    Release notes

    Sourced from github.com/StephanHCB/go-autumn-restclient's releases.

    v0.4.3 sort query parameters when recording

    old file names still work, new file names are logged

    v0.4.2 allow access to raw byte slice response body

    If you pass in a **[]byte in the response body field, you will be provided with the response body []byte slice (zero copy).

    This is useful for downloading files or for other requests that do not return application/json.

    v0.4.1 shorten recording filenames for new recordings

    • fixes not being able to check repos out on windows git bash due to path length limitations
    Commits
    • 8ca20bb Merge pull request #12 from mpl-interhyp/ignore_order_of_query_params_for_rec...
    • 7219220 Ignore order of query params of a request for recordings and playbacks
    • 86fa277 Merge pull request #10 from StephanHCB/feature/allow-getting-raw-body
    • ad6f426 #9 - allow access to raw byte slice of response
    • 995530d Merge pull request #8 from StephanHCB/feature/7-shorter-recording-filenames
    • d558a75 implement shorter better readable recording filenames - fixes #7
    • 9e11981 Merge pull request #6 from StephanHCB/dependabot/go_modules/github.com/stretc...
    • 6a5706f Bump github.com/stretchr/testify from 1.7.5 to 1.8.0
    • 70a4b8c Merge pull request #5 from StephanHCB/dependabot/go_modules/github.com/stretc...
    • e93ccc1 Bump github.com/stretchr/testify from 1.7.4 to 1.7.5
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • 3

    Bump github.com/StephanHCB/go-autumn-restclient from 0.4.0 to 0.4.2

    Bumps github.com/StephanHCB/go-autumn-restclient from 0.4.0 to 0.4.2.

    Release notes

    Sourced from github.com/StephanHCB/go-autumn-restclient's releases.

    v0.4.2 allow access to raw byte slice response body

    If you pass in a **[]byte in the response body field, you will be provided with the response body []byte slice (zero copy).

    This is useful for downloading files or for other requests that do not return application/json.

    v0.4.1 shorten recording filenames for new recordings

    • fixes not being able to check repos out on windows git bash due to path length limitations
    Commits
    • 86fa277 Merge pull request #10 from StephanHCB/feature/allow-getting-raw-body
    • ad6f426 #9 - allow access to raw byte slice of response
    • 995530d Merge pull request #8 from StephanHCB/feature/7-shorter-recording-filenames
    • d558a75 implement shorter better readable recording filenames - fixes #7
    • 9e11981 Merge pull request #6 from StephanHCB/dependabot/go_modules/github.com/stretc...
    • 6a5706f Bump github.com/stretchr/testify from 1.7.5 to 1.8.0
    • 70a4b8c Merge pull request #5 from StephanHCB/dependabot/go_modules/github.com/stretc...
    • e93ccc1 Bump github.com/stretchr/testify from 1.7.4 to 1.7.5
    • 43d1b48 Merge pull request #4 from StephanHCB/dependabot/go_modules/github.com/stretc...
    • be5ea63 Bump github.com/stretchr/testify from 1.7.1 to 1.7.4
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • 4

    Bump github.com/StephanHCB/go-autumn-restclient from 0.4.0 to 0.4.1

    Bumps github.com/StephanHCB/go-autumn-restclient from 0.4.0 to 0.4.1.

    Release notes

    Sourced from github.com/StephanHCB/go-autumn-restclient's releases.

    v0.4.1 shorten recording filenames for new recordings

    • fixes not being able to check repos out on windows git bash due to path length limitations
    Commits
    • 995530d Merge pull request #8 from StephanHCB/feature/7-shorter-recording-filenames
    • d558a75 implement shorter better readable recording filenames - fixes #7
    • 9e11981 Merge pull request #6 from StephanHCB/dependabot/go_modules/github.com/stretc...
    • 6a5706f Bump github.com/stretchr/testify from 1.7.5 to 1.8.0
    • 70a4b8c Merge pull request #5 from StephanHCB/dependabot/go_modules/github.com/stretc...
    • e93ccc1 Bump github.com/stretchr/testify from 1.7.4 to 1.7.5
    • 43d1b48 Merge pull request #4 from StephanHCB/dependabot/go_modules/github.com/stretc...
    • be5ea63 Bump github.com/stretchr/testify from 1.7.1 to 1.7.4
    • 2700562 Merge pull request #1 from StephanHCB/dependabot/go_modules/github.com/Stepha...
    • f3ecbd2 Bump github.com/StephanHCB/go-autumn-logging from 0.2.0 to 0.3.0
    • See full diff in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • 5

    Bump github.com/prometheus/client_golang from 1.12.2 to 1.13.0

    Bumps github.com/prometheus/client_golang from 1.12.2 to 1.13.0.

    Release notes

    Sourced from github.com/prometheus/client_golang's releases.

    ## 1.13.0 / 2022-08-06

    • [CHANGE] Minimum required Go version is now 1.17 (we also test client_golang against the new 1.19 version).
    • [ENHANCEMENT] Added prometheus.TransactionalGatherer interface for promhttp.Handler use which allows using low allocation update techniques for custom collectors. #989
    • [ENHANCEMENT] Added exemplar support to prometheus.NewConstHistogram. See ExampleNewConstHistogram_WithExemplar example on how to use it. #986
    • [ENHANCEMENT] prometheus/push.Pusher now has context-aware methods that pass context to HTTP requests. #1028
    • [ENHANCEMENT] prometheus/push.Pusher has now Error method that retrieve last error. #1075
    • [ENHANCEMENT] testutil.GatherAndCompare provides now readable diff on failed comparisons. #998
    • [ENHANCEMENT] Query API now supports timeouts. #1014
    • [ENHANCEMENT] New MetricVec method DeletePartialMatch(labels Labels) for deleting all metrics that match provided labels. #1013
    • [ENHANCEMENT] api.Config now accepts passing custom *http.Client. #1025
    • [BUGFIX] Raise exemplar labels limit from 64 to 128 bytes as specified in OpenMetrics spec. #1091
    • [BUGFIX] Allow adding exemplar to +Inf bucket to const histograms. #1094
    • [ENHANCEMENT] Most promhttp.Instrument* middlewares now support adding exemplars to metrics. This allows hooking those to your tracing middleware that retrieves trace ID and puts it in exemplar if present. #1055
    • [ENHANCEMENT] Added testutil.ScrapeAndCompare method. #1043
    • [BUGFIX] Fixed GopherJS build support. #897
    • [ENHANCEMENT] :warning: Added way to specify what runtime/metrics collectors.NewGoCollector should use. See ExampleGoCollector_WithAdvancedGoMetrics. #1102

    New Contributors ❤️

    Changelog

    Sourced from github.com/prometheus/client_golang's changelog.

    1.13.0 / 2022-08-05

    • [CHANGE] Minimum required Go version is now 1.17 (we also test client_golang against new 1.19 version).
    • [ENHANCEMENT] Added prometheus.TransactionalGatherer interface for promhttp.Handler use which allows using low allocation update techniques for custom collectors. #989
    • [ENHANCEMENT] Added exemplar support to prometheus.NewConstHistogram. See ExampleNewConstHistogram_WithExemplar example on how to use it. #986
    • [ENHANCEMENT] prometheus/push.Pusher has now context aware methods that pass context to HTTP request. #1028
    • [ENHANCEMENT] prometheus/push.Pusher has now Error method that retrieve last error. #1075
    • [ENHANCEMENT] testutil.GatherAndCompare provides now readable diff on failed comparisons. #998
    • [ENHANCEMENT] Query API now supports timeouts. #1014
    • [ENHANCEMENT] New MetricVec method DeletePartialMatch(labels Labels) for deleting all metrics that match provided labels. #1013
    • [ENHANCEMENT] api.Config now accepts passing custom *http.Client. #1025
    • [BUGFIX] Raise exemplar labels limit from 64 to 128 bytes as specified in OpenMetrics spec. #1091
    • [BUGFIX] Allow adding exemplar to +Inf bucket to const histograms. #1094
    • [ENHANCEMENT] Most promhttp.Instrument* middlewares now supports adding exemplars to metrics. This allows hooking those to your tracing middleware that retrieves trace ID and put it in exemplar if present. #1055
    • [ENHANCEMENT] Added testutil.ScrapeAndCompare method. #1043
    • [BUGFIX] Fixed GopherJS build support. #897
    • [ENHANCEMENT] :warning: Added way to specify what runtime/metrics collectors.NewGoCollector should use. See ExampleGoCollector_WithAdvancedGoMetrics. #1102
    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • 6

    Bump github.com/prometheus/client_golang from 1.12.1 to 1.12.2

    Bumps github.com/prometheus/client_golang from 1.12.1 to 1.12.2.

    Release notes

    Sourced from github.com/prometheus/client_golang's releases.

    1.12.2 / 2022-05-13

    • [CHANGE] Added collectors.WithGoCollections that allows to choose what collection of Go runtime metrics user wants: Equivalent of MemStats structure configured using GoRuntimeMemStatsCollection, new based on dedicated runtime/metrics metrics represented by GoRuntimeMetricsCollection option, or both by specifying GoRuntimeMemStatsCollection | GoRuntimeMetricsCollection flag.
    • [CHANGE] :warning: Change in collectors.NewGoCollector metrics: Reverting addition of new ~80 runtime metrics by default. You can enable this back with GoRuntimeMetricsCollection option or GoRuntimeMemStatsCollection | GoRuntimeMetricsCollection for smooth transition.
    • [BUGFIX] Fixed the bug that causes generated histogram metric names to end with _total. ⚠️ This changes 3 metric names in the new Go collector that was reverted from default in this release.
      • go_gc_heap_allocs_by_size_bytes_total -> go_gc_heap_allocs_by_size_bytes,
      • go_gc_heap_frees_by_size_bytes_total -> go_gc_heap_allocs_by_size_bytes
      • go_gc_pauses_seconds_total -> go_gc_pauses_seconds.
    • [CHANCE] Removed -Inf buckets from new Go Collector histograms.

    Full Changelog: https://github.com/prometheus/client_golang/compare/v1.12.1...v1.12.2

    Changelog

    Sourced from github.com/prometheus/client_golang's changelog.

    1.12.2 / 2022-05-13

    • [CHANGE] Added collectors.WithGoCollections that allows to choose what collection of Go runtime metrics user wants: Equivalent of MemStats structure configured using GoRuntimeMemStatsCollection, new based on dedicated runtime/metrics metrics represented by GoRuntimeMetricsCollection option, or both by specifying GoRuntimeMemStatsCollection | GoRuntimeMetricsCollection flag.
    • [CHANGE] :warning: Change in collectors.NewGoCollector metrics: Reverting addition of new ~80 runtime metrics by default. You can enable this back with GoRuntimeMetricsCollection option or GoRuntimeMemStatsCollection | GoRuntimeMetricsCollection for smooth transition.
    • [BUGFIX] Fixed the bug that causes generated histogram metric names to end with _total. ⚠️ This changes 3 metric names in the new Go collector that was reverted from default in this release.
      • go_gc_heap_allocs_by_size_bytes_total -> go_gc_heap_allocs_by_size_bytes,
      • go_gc_heap_frees_by_size_bytes_total -> go_gc_heap_allocs_by_size_bytes
      • go_gc_pauses_seconds_total -> go_gc_pauses_seconds.
    • [CHANCE] Removed -Inf buckets from new Go Collector histograms.
    Commits
    • e203144 Merge branch 'release-1.12' of github.com:prometheus/client_golang into relea...
    • 0e136d1 Cut v1.12.2 (#1052)
    • a27b6d7 Fix conflicts
    • 5fe1d33 Remove -Inf buckets from go collector histograms (#1049)
    • 049d0fe prometheus: Fix convention violating names for generated collector metrics (#...
    • 7eb9d11 gocollector: Reverted client_golang v1.12 addition of runtime/metrics metrics...
    • d498b3c gocollector: Added options to Go Collector for changing the (#1031)
    • 585540a Fix deprecated NewBuildInfoCollector API
    • 39cf574 Cut v1.12.1 (#978)
    • 9b785b0 Reduce granularity of histogram buckets for Go 1.17 collector (#974)
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • 7

    Bump github.com/prometheus/client_golang from 1.13.0 to 1.14.0

    Bumps github.com/prometheus/client_golang from 1.13.0 to 1.14.0.

    Release notes

    Sourced from github.com/prometheus/client_golang's releases.

    1.14.0 / 2022-11-08

    It might look like a small release, but it's quite opposite 😱 There were many non user facing changes and fixes and enormous work from engineers from Grafana to add native histograms in 💪🏾 Enjoy! 😍

    What's Changed

    • [FEATURE] Add Support for Native Histograms. #1150
    • [CHANGE] Extend prometheus.Registry to implement prometheus.Collector interface. #1103

    New Contributors

    Full Changelog: https://github.com/prometheus/client_golang/compare/v1.13.1...v1.14.0

    1.13.1 / 2022-11-02

    • [BUGFIX] Fix race condition with Exemplar in Counter. #1146
    • [BUGFIX] Fix CumulativeCount value of +Inf bucket created from exemplar. #1148
    • [BUGFIX] Fix double-counting bug in promhttp.InstrumentRoundTripperCounter. #1118

    Full Changelog: https://github.com/prometheus/client_golang/compare/v1.13.0...v1.13.1

    Changelog

    Sourced from github.com/prometheus/client_golang's changelog.

    1.14.0 / 2022-11-08

    • [FEATURE] Add Support for Native Histograms. #1150
    • [CHANGE] Extend prometheus.Registry to implement prometheus.Collector interface. #1103

    1.13.1 / 2022-11-01

    • [BUGFIX] Fix race condition with Exemplar in Counter. #1146
    • [BUGFIX] Fix CumulativeCount value of +Inf bucket created from exemplar. #1148
    • [BUGFIX] Fix double-counting bug in promhttp.InstrumentRoundTripperCounter. #1118
    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • 8

    Bump github.com/StephanHCB/go-autumn-restclient from 0.4.0 to 0.4.4

    Bumps github.com/StephanHCB/go-autumn-restclient from 0.4.0 to 0.4.4.

    Release notes

    Sourced from github.com/StephanHCB/go-autumn-restclient's releases.

    v0.4.4

    Support moving recordings during test run

    (helps with cleaning up old recordings and adapting to changed filename schemes)

    v0.4.3 sort query parameters when recording

    old file names still work, new file names are logged

    v0.4.2 allow access to raw byte slice response body

    If you pass in a **[]byte in the response body field, you will be provided with the response body []byte slice (zero copy).

    This is useful for downloading files or for other requests that do not return application/json.

    v0.4.1 shorten recording filenames for new recordings

    • fixes not being able to check repos out on windows git bash due to path length limitations
    Commits
    • f31460e Merge pull request #11 from StephanHCB/dependabot/go_modules/github.com/stret...
    • 448117a Merge pull request #13 from mpl-interhyp/rewrite_recording_files_on_playback
    • 6f8dfc6 Added new environment variable to rewrite all accessed recording files to a c...
    • 8ca20bb Merge pull request #12 from mpl-interhyp/ignore_order_of_query_params_for_rec...
    • 7219220 Ignore order of query params of a request for recordings and playbacks
    • 320e7cf Bump github.com/stretchr/testify from 1.8.0 to 1.8.1
    • 86fa277 Merge pull request #10 from StephanHCB/feature/allow-getting-raw-body
    • ad6f426 #9 - allow access to raw byte slice of response
    • 995530d Merge pull request #8 from StephanHCB/feature/7-shorter-recording-filenames
    • d558a75 implement shorter better readable recording filenames - fixes #7
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)