14 lines
298 B
TypeScript
14 lines
298 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;
|