Can I access the content of Workers Log via API the same way as they are displayed in the dashboard?
Can I access the content of Workers Log via API the same way as they are displayed in the dashboard?
const rayId = request.headers.get('cf-ray');

wrangler tail sees them, so not sure what's up
observability? But not sure how or even if they alert on errors.

try {
throw new Error("test-error");
} catch (e) {
console.error({
message: e.message,
exception: {
stack: e.stack,
name: e.name,
message: e.message,
timestamp: new Date().getTime(),
},
});
}
throw new Error("test-exception");import type { APIGatewayProxyHandlerV2 } from "aws-lambda";
export const handler: APIGatewayProxyHandlerV2 = async (event) => {
console.log("Hello World");
return {
statusCode: 200,
body: "Hello World",
};
};