open-telemetry / opentelemetry-collector

OpenTelemetry Collector
https://opentelemetry.io
Apache License 2.0
4.36k stars 1.44k forks source link

Refactor: lots of boilerplate code in extension implementations #308

Closed pjanotti closed 3 years ago

pjanotti commented 5 years ago

After coding the 3 core extensions (health-check, pprof, zPages) it become clear that the code for them is very similar and can be refactored to reduced code repetition. The one that is slightly different is the health-check that is implemented using a package for Jaeger, having an OTelSvc implementation for health-check (#307) can help having it using the same code pattern.

bogdandrutu commented 3 years ago

Obsolete, we have extensionhelper