Is your feature request related to a problem? Please describe.
When an activity returns a payload that exceeds 4MB, a console log is written:
2026-07-13T09:48:03.195462Z WARN temporalio_sdk_core::worker::activities: Network error while completing activity error=Status { code: ResourceExhausted, message: "grpc: received message larger than max (4194546 vs. 4194304)", metadata: MetadataMap { headers: {"content-type": "application/grpc", "message-too-large": "0"} }, source: None }
Describe the solution you'd like
It would be helpful if this error could be logged to ILogger too. Since as described here the default behavior is that the activity gets stuck, we've seen users wonder why their workflow doesn't progress.
They have looked at the sent telemetry, but since the console logs aren't sent to the OTEL collector in our case, they didn't see the error.
Giving those logs (and perhaps others) to ILogger could help spotting the issue.
Additional context
I'm also wondering how this is dealt with in other SDKs.
Is your feature request related to a problem? Please describe.
When an activity returns a payload that exceeds 4MB, a console log is written:
Describe the solution you'd like
It would be helpful if this error could be logged to ILogger too. Since as described here the default behavior is that the activity gets stuck, we've seen users wonder why their workflow doesn't progress.
They have looked at the sent telemetry, but since the console logs aren't sent to the OTEL collector in our case, they didn't see the error.
Giving those logs (and perhaps others) to ILogger could help spotting the issue.
Additional context
I'm also wondering how this is dealt with in other SDKs.