Tags: carsdotcom/pacer
Tags
Telemetry/use configuration based strategy for batch telemetry (#9) * Create skeleton module for Pacer.Config * Setup first base case unit test for Pacer.Config.batch_telemetry_options/1 * Add unit test case showing batch_telemetry_options passed through at the module level * Add unit case demonstrating behavior of generated Module.__config__/1 behavior when no config options are passed * Allow batch_telemetry_options to be passed at the workflow level * Add implementation for Config.batch_telemetry_options/1 * Add test case for when only global batch_telemetry_options are provided * Add test case for module-level batch_telemetry_config * Add unit test demonstrating behavior of module-level config overriding global config; clean up cached terms in persistent term between test runs * Bump version one minor version up -- Backwards incompatible change coming in how telemetry is metadata is handled in batched resolvers * Fix typo in moduledoc for Pacer.Config * Change assertions on config_test functions to expect keyword lists instead of maps * Add test case for mfa support on batch_telemetry_options global config * Add unit test case capturing support for mfa style batch_telemetry_options on workflow modules directly * Add unit test demonstrating expected behavior when batch_telemetry_options are set with mfa style args in both global and workflow-level config * Rework batch_telemetry_options configuration to allow for mfa-style args * Add test cases for fetch_batch_telemetry_options/1 * Add docs to batch telemetry option-related configuration functions * Add unit test asserting that batched resolvers inject user-provided telemetery config into event metadata when config is a keyword list * Clean up persistent term on all tests and add unit test case for batch telemetry metadata injection from MFA style config * Inject user-provided telemetry metadata into [:pacer, :execute_vertex, ...] events fired inside of batched resolvers * Add docs on Telemetry events and detail how users can provide their own metadata to inject into batched resolver telemetry events * Set version to 0.1.2 * Move the setup/cleanup to run for entire test suite on workflow config