When publishing a message allow setting Cloudevent attributes / Pub-Sub routing
See original GitHub issueProposal
Hi,
As we have the Pub/Sub routing feature, it’ll be very useful to be able to set specific Cloudevent attributes when publishing the message.
At this point, the Publish
implementation accepts only the message data, and there seems to be no other way to override the event.type
or another attribute, other than making a direct HTTP request to the sidecar with the application/cloudevents+json
raw data.
Another useful feature would be to specify tracing headers for scenarios like the outbox pattern where a separate process publishes the messages, in order to preserve correct tracing
Issue Analytics
- State:
- Created 2 years ago
- Reactions:7
- Comments:19 (5 by maintainers)
Top Results From Across the Web
Publishing & subscribing messages with Cloudevents
To enable message routing and provide additional context with each message, Dapr uses the CloudEvents 1.0 specification as its message format.
Read more >How-To: Route messages to different event handlers
With pub/sub routing, you use expressions to route CloudEvents (based on their contents) to different URIs/paths and event handlers in your application.
Read more >Publish messages to topics | Cloud Pub/Sub
In the Topic details page under Messages, click Publish message. In the Message body field, enter the message data. Optional: Add message attributes....
Read more >CloudEvents format - HTTP protocol binding | Eventarc
Target services receive events from event routers as HTTP POST requests formatted to the CloudEvents version 1.0 HTTP protocol binding ...
Read more >CloudEvents Basics
In this post, let's explore CloudEvents in more depth. ... CloudEvents, at its core, defines a set of metadata, called “context attributes”.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @ChristianWeyer
Something along these lines:
Hi @ChristianWeyer I haven’t had yet the chance to try it out.