Skip to content

Instantly share code, notes, and snippets.

@schack
Created January 25, 2024 16:02
Show Gist options
  • Save schack/0849e20b258b6ba6ef54b5ceb1d1424b to your computer and use it in GitHub Desktop.
Save schack/0849e20b258b6ba6ef54b5ceb1d1424b to your computer and use it in GitHub Desktop.
Google BigQuery schema for Cloudflare Workers trace events
[
{
"name": "Event",
"mode": "NULLABLE",
"type": "RECORD",
"description": null,
"fields": [
{
"name": "RayID",
"mode": "NULLABLE",
"type": "STRING",
"description": null,
"fields": []
},
{
"name": "Request",
"mode": "NULLABLE",
"type": "RECORD",
"description": null,
"fields": [
{
"name": "URL",
"mode": "NULLABLE",
"type": "STRING",
"description": null,
"fields": []
},
{
"name": "Method",
"mode": "NULLABLE",
"type": "STRING",
"description": null,
"fields": []
}
]
},
{
"name": "Response",
"mode": "NULLABLE",
"type": "RECORD",
"description": null,
"fields": [
{
"name": "Status",
"mode": "NULLABLE",
"type": "INTEGER",
"description": null,
"fields": []
}
]
}
]
},
{
"name": "EventTimestampMs",
"mode": "NULLABLE",
"type": "INTEGER",
"description": null,
"fields": []
},
{
"name": "EventType",
"mode": "NULLABLE",
"type": "STRING",
"description": null,
"fields": []
},
{
"name": "Exceptions",
"mode": "REPEATED",
"type": "RECORD",
"description": null,
"fields": [
{
"name": "Name",
"mode": "NULLABLE",
"type": "STRING",
"description": null,
"fields": []
},
{
"name": "reason",
"mode": "NULLABLE",
"type": "STRING",
"description": null,
"fields": []
},
{
"name": "location",
"mode": "NULLABLE",
"type": "STRING",
"description": null,
"fields": []
},
{
"name": "debugInfo",
"mode": "NULLABLE",
"type": "STRING",
"description": null,
"fields": []
},
{
"name": "message",
"mode": "NULLABLE",
"type": "STRING",
"description": null,
"fields": []
},
{
"name": "TimestampMs",
"mode": "NULLABLE",
"type": "INTEGER",
"description": null,
"fields": []
}
]
},
{
"name": "Logs",
"mode": "REPEATED",
"type": "RECORD",
"description": null,
"fields": [
{
"name": "Level",
"mode": "NULLABLE",
"type": "STRING",
"description": null,
"fields": []
},
{
"name": "Message",
"mode": "REPEATED",
"type": "STRING",
"description": null,
"fields": []
},
{
"name": "TimestampMs",
"mode": "NULLABLE",
"type": "INTEGER",
"description": null,
"fields": []
}
]
},
{
"name": "Outcome",
"mode": "NULLABLE",
"type": "STRING",
"description": null,
"fields": []
},
{
"name": "ScriptName",
"mode": "NULLABLE",
"type": "STRING",
"description": null,
"fields": []
},
{
"name": "ScriptTags",
"mode": "REPEATED",
"type": "STRING",
"description": null,
"fields": []
},
{
"name": "DispatchNamespace",
"mode": "NULLABLE",
"type": "STRING",
"description": null,
"fields": []
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment