Workers Trace Events
The descriptions below detail the fields available for workers_trace_events
.
CPUTimeMs
Section titled “CPUTimeMs”Type: int
The amount of CPU time used by the Worker script, in milliseconds.
DispatchNamespace
Section titled “DispatchNamespace”Type: string
The Cloudflare Worker dispatch namespace.
Entrypoint
Section titled “Entrypoint”Type: string
The name of the entrypoint class in which the Worker began execution.
Type: object
Details about the source event.
EventTimestampMs
Section titled “EventTimestampMs”Type: int
The timestamp of when the event was received, in milliseconds.
EventType
Section titled “EventType”Type: string
The event type that triggered the invocation.
Possible values are fetch.
Exceptions
Section titled “Exceptions”Type: array[object]
List of uncaught exceptions during the invocation.
Type: array[object]
List of console messages emitted during the invocation.
Outcome
Section titled “Outcome”Type: string
The outcome of the Worker script invocation.
Possible values are ok | exception.
ScriptName
Section titled “ScriptName”Type: string
The Cloudflare Worker script name.
ScriptTags
Section titled “ScriptTags”Type: array[string]
A list of user-defined tags used to categorize the Worker.
ScriptVersion
Section titled “ScriptVersion”Type: object
The version of the script that was invoked.
WallTimeMs
Section titled “WallTimeMs”Type: int
The elapsed time in milliseconds between the start of a Worker invocation, and when the Workers Runtime determines that no more JavaScript needs to run. Specifically, this measures the wall-clock time that the JavaScript context remained open. For example, when returning a response with a large body, the Workers runtime can, in some cases, determine that no more JavaScript needs to run, and closes the JS context before all the bytes have passed through and been sent. Alternatively, if you use the waitUntil()
API to perform work without blocking the return of a response, this work may continue executing after the response has been returned, and will be included in WallTimeMs
.
Was this helpful?
- Resources
- API
- New to Cloudflare?
- Products
- Sponsorships
- Open Source
- Support
- Help Center
- System Status
- Compliance
- GDPR
- Company
- cloudflare.com
- Our team
- Careers
- 2025 Cloudflare, Inc.
- Privacy Policy
- Terms of Use
- Report Security Issues
- Trademark