* chore: squash commit * fix: tweak some mentioned issues --------- Co-authored-by: incubator4 <aries0robin@gmail.com>
13 lines
297 B
TypeScript
13 lines
297 B
TypeScript
import type { Handler } from 'hono';
|
|
import { getContext } from '@/utils/otel';
|
|
|
|
const handler: Handler = (ctx) =>
|
|
getContext()
|
|
.then((val) => ctx.text(val))
|
|
.catch((error) => {
|
|
ctx.status(500);
|
|
ctx.json({ error });
|
|
});
|
|
|
|
export default handler;
|