We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99c0884 commit 8f5ef87Copy full SHA for 8f5ef87
bin/worker.js
@@ -1,7 +1,7 @@
1
-import { reportRequestMetrics as defaultReportRequestMetric } from '../lib/influx.js'
+import { reportRequestMetrics as reportRequestMetricsToInflux } from '../lib/influx.js'
2
3
export default {
4
- async fetch(request, env, ctx, { reportRequestMetrics = defaultReportRequestMetric } = {}) {
+ async fetch(request, env, ctx, { reportRequestMetrics = reportRequestMetricsToInflux } = {}) {
5
const response = await fetch(request)
6
ctx.waitUntil(reportRequestMetrics(request, env))
7
return response
0 commit comments