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;
