pact-foundation / pact-mock_service

Provides a mock service for use with Pact
https://pact.io
MIT License
72 stars 68 forks source link

feat: Add metrics tracking to pact mock service start #133

Closed Inksprout closed 2 years ago

Inksprout commented 2 years ago

The purpose of this PR is to add code that can be used to push metrics from pact-ruby to google analytics. The PR adds event tracking for when the pact-mock_service is started, which indicates that the consumer tests are running. The code supports users turning off this tracking by setting the env var PACT_DO_NOT_TRACK to 'true'.

bethesque commented 2 years ago

Looks good.