Service Bus OutputBinding doesn't support ServiceBusMessage type with Metadata
@shreyas-gopalakrishna がすでに取り組んでいます。
2023年2月24日 から。
評価
この issue はまだ評価されていません。
説明
There doesn't appear to be equivalent functionality for setting ServiceBusMessage Metadata in the Java worker. Compare with the C# documentation: https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-service-bus-output?tabs=in-process%2Cextensionv5&pivots=programming-language-csharp#usage
Use the ServiceBusMessage type when sending messages with metadata. Parameters are defined as return type attributes. Use an ICollector or IAsyncCollector to write multiple messages. A message is created when you call the Add method.
Is there no equivalent in Java?
Repro steps
Provide the steps required to reproduce the problem:
- Create an Azure Function.
- Add azure-messaging-servicebus dependency to project.
- Add a
@ServiceBusTopicOutput bindingof typeOutputBinding<ServiceBusMessage>. - Create a
ServiceBusMessage msg = new ServiceBusMessage("message body")object. - Set some metadata via
sbMessage.getApplicationProperties().put("foo","bar"). - call
.setValue(msg)on the output binding. - Run the function.
Expected behavior
A message is added to the Service Bus topic with a body of "message body" and custom metadata of "foo": "bar".
Actual behavior
The resulting message body on the topic is a ServiceBusMessage serialized as a POJO object. Custom metadata is missing.
Known workarounds
Use a ServiceBusSenderClient instead of output bindings.
Related information
- 主要言語
- Java
- スター
- 103
- フォーク
- 74
- 平均マージ
- 12時間 49分
- マージ済み PR(30日)
- 2
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Azure/azure-functions-java-worker のほかの issue
-
[Feature] Support raw Kafka record (KafkaRecord) binding with Protobuf deserialization対応中かも @TsuyoshiUshio が 172 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 50/100
-
[Feature] Support for reverse propagation of request telemetry tags対応中かも @arnabnandy7 が 66 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
-
[Feature] Support OpenTelemetry Baggage対応中かも @arnabnandy7 が 66 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
-
mcp-extension
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
-
Add advanced MCP tool samples再び着手できるかも @ahmedmuhsin が 182 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンmcp-extension
Azure/azure-functions-java-worker#863 · 担当者 1 名 ·
Azure/azure-functions-java-worker の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
objectionary/lints#1556 ·
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
wildfly/wildfly-launcher#99 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
apache/rocketmq#11427 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
A failed JNA download is reported as a corrupt zip, because `curl` in `Makefile` lacks `--fail`オープン
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
objectionary/phino#1884 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信