Closed
Description
Component(s)
exporter/googlecloudpubsub
Is your feature request related to a problem? Please describe.
Allow for ordered messages to be published to pubsub
Describe the solution you'd like
Add new support for field ordering key
in exporter
Ordering keys can be used like this in pubsub. I propose we configure an attribute to contain the key used for the exporter.
Messages: []*pubsubpb.PubsubMessage{
{
Attributes: attributes,
Data: data,
OrderingKey: attributes["OrderingKey"],
},
},
The name of the attribute would be configured in the exporter like so.
exporters:
googlecloudpubsub:
project: abc
endpoint: mytestendpoint
user_agent: projects/abc/topics/requests
ordering_key_attribute: OderingKey
Describe alternatives you've considered
na
Additional context
https://cloud.google.com/pubsub/docs/ordering
https://medium.com/google-cloud/google-cloud-pub-sub-ordered-delivery-1e4181f60bc8