Event Hub Azure Stream Analytics size of record

Sara, VK 1 Reputation point
2021-05-13T10:07:41.487+00:00

I have some messages in Event Hub, and I want to determine the size of the message in bytes

Thought I can do it in Azure Stream Analytics query

SELECT
t.metadata, t.payload, datalength(???? ) As SizeInBytes
INTO
[OutputAlias]
FROM
"my-e-h" t

the datatype of column is Record or RecordN. key value pairs
https://learn.microsoft.com/en-us/stream-analytics-query/data-types-azure-stream-analytics

How can I find the size, as the expected datatype for datalength is varbinary(max)'

Is there a OOTB way to find my event hub message size ?

Azure Event Hubs
Azure Event Hubs
An Azure real-time data ingestion service.
563 questions
Azure Stream Analytics
Azure Stream Analytics
An Azure real-time analytics service designed for mission-critical workloads.
333 questions
{count} votes