question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

EventHubs EventData.getProperties() documentation

See original GitHub issue

Is your feature request related to a problem? Please describe.

In the EventHubs client, it is unclear which data types are supported for the properties of EventData class.

https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/eventhubs/azure-messaging-eventhubs/src/main/java/com/azure/messaging/eventhubs/EventData.java#L173-L196

Describe the solution you’d like

Could we have an annotation/documentation that describes what data types are supported, as is the case for the .NET client.

https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventhub/Azure.Messaging.EventHubs/src/EventData.cs#L214-L260

Describe alternatives you’ve considered

It would be even nicer to have this included in the type system, rather than using a Map<String, Object>.

Additional context

n/a

Information Checklist Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

  • Description Added
  • Expected solution specified

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
connieycommented, Nov 2, 2022

The set documented is one supported across other languages. For example, .NET library does not support serializing a map within a map even though proton-j does.

1reaction
connieycommented, Sep 27, 2022

Ahh, yeah. Ity should be easy enough to add documentation. thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

EventData Class | Microsoft Learn
Gets the set of free-form event properties which may be used for passing metadata associated with the event with the event body during...
Read more >
EventData (Azure SDK for Java Reference Documentation)
Gets the set of free-form event properties which may be used for passing metadata associated with the event with the event body during...
Read more >
com.microsoft.azure.eventhubs.EventData.getProperties java ...
Best Java code snippets using com.microsoft.azure.eventhubs.EventData. ... @Override public Map<String, Object> getProperties() { return eventData.
Read more >
EventData (azure-eventhubs 0.13.0 API) - javadoc.io
The data structure encapsulating the Event being sent-to and received-from EventHubs. Each EventHubs partition can be visualized as a Stream of EventData ....
Read more >
azure-sdk-for-java/EventData.java at main - GitHub
This repository is for active development of the Azure SDK for Java. For consumers of the SDK we recommend visiting our public developer...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found