adapt from new relic to segment