sourcegraph/internal/pubsub
Robert Lin f8ca00dd11
pubsub: add narrower TopicPublisher interface, ensure Stop in telemetry-gateway (#58974)
We currently don't call `Stop` on the pub/sub client, which is pretty important because I think it actually does buffering by default: https://sourcegraph.com/github.com/googleapis/google-cloud-go@6eb769621618a965abeabf11e6315bdb8be9b050/-/blob/pubsub/topic.go?L122-137

This change adds a `TopicPublisher` interface with write-only methods so that we don't accidentally Stop the client at callsites, and adds a Stop to telemetry-gateway. I'll follow up with another change to update Pings to the MSP runtime and apply a Stop there as well
2023-12-14 12:32:48 -08:00
..
pubsubtest telemetry-gateway: add attributes to pubsub events (#58837) 2023-12-07 15:18:45 -08:00
BUILD.bazel telemetrygateway: add exporter and service (#56699) 2023-09-20 05:20:15 +00:00
topic.go pubsub: add narrower TopicPublisher interface, ensure Stop in telemetry-gateway (#58974) 2023-12-14 12:32:48 -08:00