Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue
While building our Azure Function apps our team attempted to use the wrapper on the Microsoft Azure Java Function Tutorial referenced in the README.md of this repository.
We followed the README.md instructions as described to wrap the function in the wrapper.
Expected behavior:
On mvn clean, install the function will compile and generate a jar file.
Actual behavior:
Change
While investigating this issue, it was discovered taht Microsoft depricated (or removed) a previous package class "com.microsoft.azure.serverles.functions". This package is used by the class MetricWrapper.java in this repo (alogn with the example function and the test class).
src
The following files have been updated in the src folder to use the new package "com.microsoft.azure.functions" and the associated updated methods (also minor formatting updates):
-TestCustomHandler.java
pom.xml
The pom.xml file has been updated to reference the newer Microsoft dependency in both main dependencies and the test dependencies. The pom project version was not updated as it appears there is a py script to handle this
README.md
The readme has been updated to reflect the new invocation of the new package classes.
Test
This change was tested locally by building the maven project and creating a 0.0.2 version in the local .m2 repository. That version was then packaged into a test function and deployed to Azure through VS Code. The function was then invoked and it was verified that MTS data from the function was visible in the (SignalFX) Azure Function dashboard.