Skip to content
This repository was archived by the owner on Feb 6, 2026. It is now read-only.
This repository was archived by the owner on Feb 6, 2026. It is now read-only.

Cloud Logging: does not work for Java Cloud Functions #432

@vojkny

Description

@vojkny

Environment details

  • OS type and version: Cloud Logging Java11 environment
  • Java version: Java11

Steps to reproduce

Try to write any LogEntry with Java11 Cloud Function with appropriately set service account.

It will fail with: io.grpc.StatusRuntimeException: DEADLINE_EXCEEDED: deadline exceeded after 49.998533332s. (stacktrace below).

The very same code will work correctly with Cloud Run and the same service account.

Code example

val entry = {any-logging-entry}
val logging = LoggingOptions
        .getDefaultInstance()
        .getService()
logging.write(Collections.singleton(entry))

Stack trace

https://gist.github.com/knyttl/280b465c7ab4135a41f12e77eb07efee

Metadata

Metadata

Assignees

Labels

api: loggingIssues related to the googleapis/java-logging API.priority: p2Moderately-important priority. Fix may not be included in next release.type: docsImprovement to the documentation for an API.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions