Currently the resource attributes for the process are handled in the otel-lib here. https://github.com/elastic/opentelemetry-lib/blob/main/remappers/hostmetrics/process.go#L262
This logic should be moved to the ElasticSearchExporter code since all the resource attributes will be handled in the exporter.