Same here 👍 I have endup to enable logs manually in UI dasboard after deploying workers through ter
Same here
I have endup to enable logs manually in UI dasboard after deploying workers through terraform..


console.log statements make it a bit weird to use.runtime.env instead of hijacking console.log or at least be able to set the logging level at which logs should be captured (e.g only for console.error). This way we can have logging for important things and if we need normal debugging then the live stream logs should include all console.logs.
EdgeResponseBytes is high for both entries. Any ideas? I've chopped some attributes out of the JSON object for brevityParentRayID like you already mentioneddebug logs unless there is an error. Or i don't want to persist any logs if its for a well known static content endpoint.tail worker to check for the presence of an error log to decide what to send over to worker logs?console.log from there w/ a 100% sample rate on that tail worker do you think that would accomplish the same thing?invocation_logs through wrangler.toml but it's doesn't seem to be taking effect, and resets to being enabled on each deploy - anyone hit anything similar?[env.dev.observability]
enabled = true
head_sampling_rate = 1
[env.dev.observability.logs]
enabled = true
invocation_logs = false
[env.prod.observability]
enabled = true
head_sampling_rate = 0.2
[env.prod.observability.logs]
enabled = true
invocation_logs = falseconsole.log runtime.envconsole.logconsole.logconsole.errorconsole.logs[observability.logs]
invocation_logs = falseEdgeResponseBytes {
"BotScore":2,
"CacheCacheStatus":"dynamic",
"ClientIP":"66.249.77.39",
"ClientIPClass":"searchEngine",
"EdgeResponseBytes":308840,
"EdgeResponseContentType":"text/html; charset=UTF-8",
"EdgeResponseStatus":200,
"EdgeStartTimestamp":"2024-11-07T14:54:53Z",
"EdgeTimeToFirstByteMs":1037,
"ClientRequestURI":"/123",
"ParentRayID":"1234",
"RayID":"5678"
}{
"BotScore":1,
"CacheCacheStatus":"dynamic",
"ClientIP":"66.249.77.39",
"ClientIPClass":"searchEngine",
"EdgeResponseBytes":113263,
"EdgeResponseContentType":"text/html; charset=UTF-8",
"EdgeResponseStatus":200,
"EdgeStartTimestamp":"2024-11-07T14:54:53Z",
"EdgeTimeToFirstByteMs":1083,
"ClientRequestURI":"/123",
"BotDetectionTags":[
"seo_imitator",
"googlebot"
],
"ParentRayID":"00",
"RayID":"1234"
}ParentRayIDdebugerrorerrortailinvocation_logswrangler.toml[env.dev.observability]
enabled = true
head_sampling_rate = 1
[env.prod.observability]
enabled = true
head_sampling_rate = 0.2
[observability.logs]
enabled = true
invocation_logs = false