[exporter/loki] Remove function copied from core, use new API instead (#9991)
[exporter/loki] Remove function copied from core, use new API instead (#9991)


open-telemetry/opentelemetry-collector-contrib,open-telemetry/opentelemetry-collector-contrib