@fiberplane/hono-otel
Version:
Hono middleware to forward OpenTelemetry traces to a local instance of @fiberplane/studio
26 lines (25 loc) • 669 B
TypeScript
export declare function errorToJson(error: Error): {
name: string;
message: string;
stack: string | undefined;
};
type LikelyNeonDbError = {
name: string;
message: string;
sourceError?: Error;
};
/**
* Quick and dirty type guard to check if an error is *likely* a NeonDbError
*/
export declare function isLikelyNeonDbError(error: unknown): error is LikelyNeonDbError;
export declare function neonDbErrorToJson(error: LikelyNeonDbError): {
name: string;
message: string;
sourceError: {
name: string;
message: string;
stack: string | undefined;
} | undefined;
stack: string | undefined;
};
export {};