[APPSEC]: fix Lambda not appearing on the Appsec API Security Endpoint Catalog #654
 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.    
 
What does this PR do?
This PR adds the
span.kindtag with the valueserverfor all events that represent an HTTP Request. The api security backend expects it to be present and omits endpoints that do not have this tag. (documentation for this attribute can be found here)Additionally API Security should be enabled by default, there is no need to intentionally disable it for Appsec in lambda.
Motivation
The goal of this PR is to make Lambda services with Appsec API Security enabled show up on the API Security Catalog.
Testing Guidelines
Updated existing tests
Additional Notes
This issue also impacts API Security when it is enabled through the extension.
As of today, the API Security Endpoint Catalog uses the
resource_nameto display the endpoint and expects it to be in the formatGET /path/to/resourcebut lambda sets it to the function name instead. This should maybe be solved in the backend and will be done at a later time.Types of Changes
Check all that apply