-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
I might be missing something, but I don't see a way to use environment variables to disable sending to honeycomb (e.g. for a dev environment).
const honeycombConfig: HoneycombConfig = {}
const module = {
async fetch(request: Request, env: any, context: ExecutionContext) {
return await handleRequest(request, env);
},
};
export default wrapModule(honeycombConfig, module);
As I undestand it, modules put environment variables in the env
argument, so they're not accessible at the time of wrapModule()
. The ability to specify HONEYCOMB_DATASET
and HONEYCOMB_API_KEY
as env vars means we don't end up adding data, but we do still end up making requests to honeycomb.
A couple possibilities:
- add an env var to disable
- add a config key to disable and
-- mergeenv
with HoneycombConfig as we resolve configs, or
-- make more config keys overridable with env vars
merykozlowska
Metadata
Metadata
Assignees
Labels
No labels