Skip to content

EventHubs bindings and pubsub need to document IoT Hub SystemProperties returned in metadata #1639

@CodeMonkeyLeet

Description

@CodeMonkeyLeet

What content needs to be created or modified?
As part of the fix for issue dapr/components-contrib#227, the Azure Event Hubs bindings and pubsub components will return the Event SystemProperties as part of the Read response or Subscribe message header metadata.

Describe the solution you'd like

The existing docs should have an additional section discussing the use of the Event Hubs components with Azure IoT Hub and include an example of how the IoT Hub properties are returned as metadata in the headers, e.g.

{
  'user-agent': 'fasthttp',
  host: '127.0.0.1:3000',
  'content-type': 'application/json',
  'content-length': '120',
  'iothub-connection-device-id': 'my-test-device',
  'iothub-connection-auth-generation-id': '637618061680407492',
  'iothub-connection-auth-method': '{"scope":"module","type":"sas","issuer":"iothub","acceptingIpFilterRule":null}',
  'iothub-connection-module-id': 'my-test-module-a',
  'iothub-enqueuedtime': '2021-07-13T22:08:09Z',
  'x-opt-sequence-number': '35',
  'x-opt-enqueued-time': '2021-07-13T22:08:09Z',
  'x-opt-offset': '21560',
  traceparent: '00-4655608164bc48b985b42d39865f3834-ed6cf3697c86e7bd-01'
}

Where should the new material be placed?

Update the component references:
https://v1-3.docs.dapr.io/reference/components-reference/supported-pubsub/setup-azure-eventhubs/
https://v1-3.docs.dapr.io/reference/components-reference/supported-bindings/eventhubs/

The associated pull request from dapr/dapr, dapr/components-contrib, or other Dapr code repos

PR: dapr/components-contrib#1009

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions