newrelic / newrelic-azure-functions

Functions to collect and forward logs from Microsoft Azure to New Relic Logs
Apache License 2.0
7 stars 14 forks source link

feat: Code unified for Blob forwarder and EventHub forwarder functions #90

Closed Sivakumar3695 closed 6 months ago

Sivakumar3695 commented 6 months ago

Description: The code between Blob Forwarder function and Event Hub message forwarder function is almost completely duplicated. This work tries to move the functionality common for both of these two functions. To clarify, the code will be common hereafter, however, like previously, there will be two azure functions - Blob Forwarder and Event Hub Message Forwarder.

Technical Description:

  1. index.js is same for both of the two functions. Hence, a new folder -> LogForwarder is introduced and index.js is moved into it.
  2. The two folders -> BlobForwarder and EventHubForwarder are moved into LogForwarder folder. The index.js file in them were removed.
  3. package.json is updated with right paths to package appropriately.