segmentio / sherlock

A pluggable service-detection tool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

passing integration name as key in object return by settings function

stevenmiller888 opened this issue · comments

Currently, we have to pass in the integration name as the key in the object returned by the settings function. The reason for this is that we execute the settings function in the context of the page, and the result is passed into our callback function. Inside that callback, we have no way of knowing which integration this is coming from. The outer loop is already finished every time we're in the callback, so we can't grab it from there