このページは現在英語版のみで提供されており、日本語版も近日中に提供される予定です。ご利用いただきありがとうございます。

Edge Function Running Logs

Notes:
The edge function running logs feature is in beta test. If needed, please contact us.

Field Description

Field Name
Data Type
Description
EdgeFunctionName
String
Name of the triggered edge function.
RequestHost
String
Host of the client request (the domain name of the main request).
RequestID
String
Unique ID of the client request (UUID of the main request).
EventTimestamp
Integer
Timestamp of the function trigger. Format: UNIX, accurate to ms.
Logs
Array[object]
Specified information printed by Users in the JS code using the console.log() method.
Outcome
String
Whether the function execution is successful, values are:
ok: no exceptions or errors
exception: There are exceptions or errors. For error details, please refer to the Exceptions field.
Exceptions
Array[object]
Details of exceptions and errors encountered during function execution.
CpuTime
Integer
CPU time consumed, unit: microsecond.
WallTime
Integer
Wall clock time, the time elapsed from function trigger to completion, unit: microsecond.

Log Examples

Below is an example of a single edge function runtime log by default. You can customize the EdgeOne log output format according to the specific requirements of the downstream log analysis system. For more details, see Customizing Log Output Format.
{
"WallTime": 125221,
"RequestID": 8254903099116445190,
"EventTimestamp": 1727251229247,
"EdgeFunctionName": "testtracelog-zone-2rdnikn6zjck-251255070",
"Outcome": "ok",
"RequestHost": "www.example.com",
"Exceptions": [],
"Logs": [
{
"level": "INFO",
"message": "test log from function",
"timestamp": 1727251229247
}
],
"CpuTime": 547
}