@jeffhollan it looks like the length of a topic / subscription is not available through an API yet. The only way to get the number of messages in a subscription is to call the stackdriver API and fetch the external metric pubsub.googleapis.com/subscription/num_undelivered_messages.
Maybe that's a good workaround until they support it in the Google Pub/Sub API?
@jeffhollan I'm happy to pick this one up next
@jeffhollan @tomkerkhove @yaron2 I've submitted a pull request for this now
Merged
Most helpful comment
Maybe that's a good workaround until they support it in the Google Pub/Sub API?