Instead of having a long function signature with various custom types for Init, we
use the With... option pattern to make the API easier to remember and use.
On top of that , as long as we provide default values, we can add extra initialization
arguments without making breaking changes.
Still todo (on top of the checklist below):
[x] Update the README with the new signature
[x] Update the examples so that they compile...
[x] ...and the main.go.orig too
[x] Remove the extra container structs that aren't used anymore (like PushConfiguration)
Fixes AM-141
Checklist
[x] The CHANGELOG is updated.
[x] The open-telemetry example in repository works fine:
the docker compose file is valid
the application compiles and run
alerts are getting triggered in Prometheus
[x] The prometheus example in repository works fine:
Description
Instead of having a long function signature with various custom types for
Init
, we use theWith...
option pattern to make the API easier to remember and use.On top of that , as long as we provide default values, we can add extra initialization arguments without making breaking changes.
Still todo (on top of the checklist below):
main.go.orig
tooPushConfiguration
)Fixes AM-141
Checklist