Skip to content

Commit

Permalink
Pass observe to handler
Browse files Browse the repository at this point in the history
Signed-off-by: Marcos Candeia <marrcooos@gmail.com>
  • Loading branch information
mcandeia committed Sep 11, 2023
1 parent df3ce5d commit d17139c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion website/handlers/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
import { isAwaitable } from "deco/engine/core/utils.ts";
import { FreshContext } from "deco/engine/manifest/manifest.ts";
import { isFreshCtx } from "deco/handlers/fresh.ts";
import { observe } from "deco/observability/observe.ts";
import { Flag, LiveState, RouterContext } from "deco/types.ts";
import { ConnInfo, Handler } from "std/http/server.ts";
import { Route, Routes } from "../flags/audience.ts";
Expand Down Expand Up @@ -193,7 +194,7 @@ export default function RoutesSelection(
hrefRoutes,
ctx.get,
{
monitoring: t ? { t } : undefined,
monitoring: t ? { t, observe } : undefined,
},
);

Expand Down

0 comments on commit d17139c

Please sign in to comment.