[chore][receiver/mysql]: extract handling global stats to another function (#14458)
[chore][receiver/mysql]: extract handling global stats to another function (#14458)

Global stats have been extracted to another function to handle the errors properly.
open-telemetry/opentelemetry-collector-contrib,open-telemetry/opentelemetry-collector-contrib