Azure / Azure/azure-functions-dotnet-worker

Allow Middleware to alter Functions output for ServiceBus Message Binding

Open
#2,327 3 comments 2 reactions 0 assignees View on GitHub
enhancement extensions: service-bus
Dominant language
C#
Stars
466
Forks
215
Avg merge
3d 10h
Merged PRs (30d)
7

Description

### Description

Similar to the issue reported here - https://github.com/Azure/azure-functions-dotnet-worker/issues/340

I have a requirement to use Middleware in Isolated Functions to add metadata to Service Bus messages on all Functions that are publishing messages. Such as Subject/Label, Correlation ID, etc.

In Middleware you can seemingly access the Binding and see the value of the Body of the message you will send, but there is no ability to set the Message Headers.

Is it possible to expose this functionality similar to how you can alter an HTTP Response?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the related issue #340 and the middleware and Service Bus message-binding behavior described here. Determine where outgoing message metadata is represented and what extension point would allow middleware to alter it; done means middleware can set Service Bus metadata such as Subject/Label and Correlation ID before publishing.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, csharp
Domain
backend, cloud
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.