You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 26, 2026. It is now read-only.
I am not sure if this is a bug or a misconfiguration issue but we are unable to get the execution-id in our logs. GCP's own function logs like startup/teardown/timeout contain it however our own logs don't. This makes it impossible to correlate all logs from an instance.
We also tried setting a custom label in CloudLoggingHandler with a trace-id however GCP's own logs don't reflect the custom trace-id. This makes me think that GCP is using a separate logger which attaches the execution-id and our logs are isolated from that logger.
Environment details
OS type and version: N/A
Python version: 3.7.9
pip version: 21.1.2
google-cloud-logging version: 2.3.1
Steps to reproduce
Create and attach CloudLoggingHandler to a logger in a GCP function
Log an INFO message
Verify the log does not contain execution-id inside labels
Code example
A simplified version of our logging setup and a basic event-trigger function.
I am not sure if this is a bug or a misconfiguration issue but we are unable to get the
execution-idin our logs. GCP's own function logs like startup/teardown/timeout contain it however our own logs don't. This makes it impossible to correlate all logs from an instance.Example (GCP function startup log)
We also tried setting a custom label in
CloudLoggingHandlerwith atrace-idhowever GCP's own logs don't reflect the customtrace-id. This makes me think that GCP is using a separate logger which attaches theexecution-idand our logs are isolated from that logger.Environment details
google-cloud-loggingversion: 2.3.1Steps to reproduce
CloudLoggingHandlerto a logger in a GCP functionINFOmessageexecution-idinsidelabelsCode example
A simplified version of our logging setup and a basic event-trigger function.
Thanks!!