[GH-ISSUE #1987] Google Cloud Pub/Sub Handler #854

Closed
opened 2026-03-04 03:01:33 +03:00 by kerem · 2 comments
Owner

Originally created by @HelioDantas on GitHub (Sep 3, 2025).
Original GitHub issue: https://github.com/Seldaek/monolog/issues/1987

Feature Request: Google Cloud Pub/Sub Handler

Description

Request the implementation of a GooglePubSubHandler to send Monolog logs to Google Cloud Pub/Sub topics.

Proposed Features

  • Send formatted log records to Google Cloud Pub/Sub topics
  • Automatic message attributes (log_level, channel, datetime, context, extra)
  • Message truncation for large payloads (10MB limit)
  • Custom topic attributes support
  • Error handling without breaking application flow

Requirements

  • Dependencies: google/cloud-pubsub package
  • Authentication: Support for service account keys and application default credentials
  • Message size: Handle Pub/Sub 10MB message limit with intelligent truncation
Originally created by @HelioDantas on GitHub (Sep 3, 2025). Original GitHub issue: https://github.com/Seldaek/monolog/issues/1987 ## Feature Request: Google Cloud Pub/Sub Handler ### Description Request the implementation of a `GooglePubSubHandler` to send Monolog logs to Google Cloud Pub/Sub topics. ### Proposed Features - Send formatted log records to Google Cloud Pub/Sub topics - Automatic message attributes (log_level, channel, datetime, context, extra) - Message truncation for large payloads (10MB limit) - Custom topic attributes support - Error handling without breaking application flow ### Requirements - Dependencies: `google/cloud-pubsub` package - Authentication: Support for service account keys and application default credentials - Message size: Handle Pub/Sub 10MB message limit with intelligent truncation
kerem 2026-03-04 03:01:33 +03:00
  • closed this issue
  • added the
    Feature
    label
Author
Owner

@HelioDantas commented on GitHub (Sep 3, 2025):

https://github.com/Seldaek/monolog/pull/1988

<!-- gh-comment-id:3249490403 --> @HelioDantas commented on GitHub (Sep 3, 2025): https://github.com/Seldaek/monolog/pull/1988
Author
Owner

@Seldaek commented on GitHub (Oct 24, 2025):

See https://github.com/Seldaek/monolog/pull/1988#issuecomment-3441705705

<!-- gh-comment-id:3441707972 --> @Seldaek commented on GitHub (Oct 24, 2025): See https://github.com/Seldaek/monolog/pull/1988#issuecomment-3441705705
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/monolog#854
No description provided.