Commit Graph

7 Commits

Author SHA1 Message Date
Lionel Villard 40ed633032
add source metrics to report general errors and timeout (#1283)
* add source metrics to report general errors and timeout

* some renaming...

* reintroduce constant
2020-05-13 10:29:58 -07:00
Yanwei Guo 19b1d7b64d
Add a helper func to set a default metric config for unit tests (#1263)
* do not record for empty metric config

* Revert "do not record for empty metric config"

This reverts commit 539a5e4dbb.

* add a comment

* fix typo

* fix tests

* revert

* revert tests

* revert

* fix conflicts

* one more test file
2020-05-07 21:11:45 -07:00
Matthias Wessendorf 2668bdb81a Adding common sourceLabels func (#720)
* Adding common sourceLabels func

* fixing feedback from @mattmoor

* fixing typo
2019-10-15 09:13:32 -07:00
Ignacio Cano 1633d4dded renaming source_name and source_resource_group to name and resource_group, (#675)
as they will be used in other resources
2019-09-13 14:03:35 -07:00
Ignacio Cano 1bea34570b SourceStatsReporter UT fix (#667)
* source stats reporter... should be used by well-behaved sources

* public fields

* moving serialization/deserialization of metrics and logging maps to pkg

* nits

* adding UT

* same order

* updates

* sock-puppet

* unregistration problem?

* removing base64 encoding

* removing TODO

* removing config changes... done in another PR

* to properly address the comment

* changing importer to source

* moving stats_reporter to new source folder

* fixing UT
2019-09-13 09:40:34 -07:00
mattmoor-sockpuppet 03caae6041 golang format tools (#669)
Produced via:
  `gofmt -s -w $(find -path './vendor' -prune -o -type f -name '*.go' -print))`
  `goimports -w $(find -name '*.go' | grep -v vendor)`
/assign mattmoor
2019-09-12 08:28:33 -07:00
Ignacio Cano 7f77962556 Moving Source StatsReporter to its own package (#664)
* source stats reporter... should be used by well-behaved sources

* public fields

* moving serialization/deserialization of metrics and logging maps to pkg

* nits

* adding UT

* same order

* updates

* sock-puppet

* unregistration problem?

* removing base64 encoding

* removing TODO

* removing config changes... done in another PR

* to properly address the comment

* changing importer to source

* moving stats_reporter to new source folder
2019-09-11 13:42:31 -07:00