We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d364650 commit 16dfdd1Copy full SHA for 16dfdd1
sdk/eventhub/Microsoft.Azure.EventHubs/src/EventDataBatch.cs
@@ -14,7 +14,11 @@ namespace Microsoft.Azure.EventHubs
14
public class EventDataBatch : IDisposable
15
{
16
const int MaxSizeLimit = 4 * 1024 * 1024;
17
- const int DiagnosticsIdOverhead = 64;
+
18
+ // System.Diagnostics.Activity.Id is 1024 bytes or shorter.
19
+ // However we will keep overhead at 128 bytes which should be enough for most scenarios.
20
+ // Any client in need of longer Ids should create batch with an appropriate mac-batch-size.
21
+ const int DiagnosticsIdOverhead = 128;
22
23
readonly List<EventData> eventDataList;
24
readonly long maxSize;
0 commit comments