The Wayback Machine - https://web.archive.org/web/20210805091827/https://github.com/Azure/azure-sdk-for-net/issues/11763
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sample for demonstrating the use of AzureEventSourceListener with Event Hubs logging #11763

Open
jsquire opened this issue May 4, 2020 · 1 comment

Comments

@jsquire
Copy link
Member

@jsquire jsquire commented May 4, 2020

Summary

The Event Hubs client library is instrumented using the .NET EventSource mechanism for logging. When instrumenting or diagnosing issues with applications that consume the library, it is often helpful to have access to the Event Hubs logs.

Though EventSource instrumentation is a common building block for .NET, many applications choose to make use of other logging frameworks which operate differently. As a result, the approach needed for capturing EventSource-based information is not a well-understood sequence of events and would benefit from illustration.

Because all of the Azure client libraries for .NET are built to the same logging standard, the Azure.Core library offers an AzureEventSourceListener to assist with isolating, capturing, and processing logs from the Azure client libraries. It would be helpful to demonstrate use of the AzureEventSourceListener with the Event Hubs client library to assist those interested in capturing logged information.

Scope of Work

  • Create a sample that illustrates use of the AzureEventSourceListener with the Event Hubs client library, capturing and using the Event Hubs logs.

  • Ensure that the sample demonstrates filtering the captured information to just that of Event Hubs while discussing that the default is to hook all of the Azure client libraries.

Success Criteria

  • The sample odetailed by the scope has been created and integrated with the existing Event Hubs client samples.

  • Any refactoring or adjustments required for the sample have been made to infrastructure code.

  • The sample is recognized by the existing test suite's smoke test and the tests continue to produce deterministic results and pass reliably.

@h0s
Copy link

@h0s h0s commented Oct 14, 2020

@jsquire i will be happy to help in this ,
i started a sample based on the information you provided(thank you).
can i please get your feedback for this draft pull request #15971 ? i will add readme file otherwise are there any comments ?
did i need to add more event filtering to show the event we can catch using AzureEventSourceListener ?
or i need to do more actions with the EventHubs ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment