Service Bus OutputBinding doesn't support ServiceBusMessage type with Metadata
@shreyas-gopalakrishna ya está trabajando en esto.
Desde el 24/2/2023.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
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
- Lenguaje dominante
- Java
- Estrellas
- 103
- Forks
- 74
- Merge medio
- 1 d 11 h
- PR fusionados (30 d)
- 3
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Azure/azure-functions-java-worker
-
[Feature] Support raw Kafka record (KafkaRecord) binding with Protobuf deserializationPosiblemente ocupada @TsuyoshiUshio la tomó hace 166 días. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 50/100
-
[Feature] Support for reverse propagation of request telemetry tagsPosiblemente ocupada @arnabnandy7 la tomó hace 60 días. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
-
[Feature] Support OpenTelemetry BaggagePosiblemente ocupada @arnabnandy7 la tomó hace 60 días. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
-
mcp-extension
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
-
Add advanced MCP tool samplesQuizá libre de nuevo @ahmedmuhsin la tomó hace 175 días y no hay ningún pull request abierto. Abiertomcp-extension
Azure/azure-functions-java-worker#863 · 1 asignado ·
Todos los issues de Azure/azure-functions-java-worker
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
portfolio-performance/portfolio#6119 ·
Los mantenedores suelen responder en 8 días
-
Bump up AWS SDK to 2.54.3Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
jenkinsci/ec2-plugin#2041 ·
-
L: github:actions L: php:composer
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
dependabot/dependabot-core#16493 ·
Los mantenedores suelen responder en 1 día
-
SHOW EDIT of a subclass for an object of its superclass: the form fails to open with AssertionErrorAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100