azure-eventhub

Client hangs when calling Azure Event Hub and facing connection error

a 夏天 提交于 2020-08-10 19:35:32
问题 I want to send event messages to Azure Event Hub. I noticed if I misconfigured something then my app hangs and not terminates. I wrote a very simple Java class that tries to send event message to the Event Hub. If I mistype the endpoint of the Event Hub then the app hangs. Which is pretty disappointing. There is a chance that I misunderstand something but what I want to do is to send a simple message and that's all. How can I do that? ConnectionStringBuilder connectionStringBuilder = new

EPOCH Error while communicating with Azure Event Hub

与世无争的帅哥 提交于 2020-08-05 06:11:22
问题 I am using Azure Event Hub for listening to real-time data in my application. Most of the times, it works fine but sometimes it throws the following error - New receiver with higher epoch of '3109' is created hence current receiver with epoch '3108' is getting disconnected. If you are recreating the receiver, make sure a higher epoch is used. TrackingId:eb2a6f970000494500f379f85b484a9f_C-1553490498_B22, SystemTracker:xxxxxxxxxx:eventhub:xxxxxxx~2730|$default, Timestamp:7/13/2018 6:48:54 AM.

Output JSON in Azure Function Logs

匆匆过客 提交于 2020-07-23 06:32:26
问题 We'd like to send structured log data from our Azure Functions to Event Hub. So I set up Serilog to log to the console and include all the info I wanted. But now I come to try this in Azure, all of my nice Json formatted data from Serilog is being ignored - and only the standard ILogger output is being shown :( Here's the config I'm using in Startup.ConfigureServices . services.AddLogging(loggingBuilder => loggingBuilder.AddSerilog(CreateLogger())); private static Logger CreateLogger() { var

Output JSON in Azure Function Logs

空扰寡人 提交于 2020-07-23 06:31:05
问题 We'd like to send structured log data from our Azure Functions to Event Hub. So I set up Serilog to log to the console and include all the info I wanted. But now I come to try this in Azure, all of my nice Json formatted data from Serilog is being ignored - and only the standard ILogger output is being shown :( Here's the config I'm using in Startup.ConfigureServices . services.AddLogging(loggingBuilder => loggingBuilder.AddSerilog(CreateLogger())); private static Logger CreateLogger() { var