-
Notifications
You must be signed in to change notification settings - Fork 873
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AWS Lambda Runtime legacy internal handlers need to be ignored from b…
…eing instrumented and so traced … (#10942) Co-authored-by: Trask Stalnaker <[email protected]>
- Loading branch information
1 parent
8c5b630
commit 9d94b4f
Showing
3 changed files
with
47 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
...ore-1.0/javaagent/src/test/java/lambdainternal/AwsLambdaLegacyInternalRequestHandler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* | ||
* Copyright The OpenTelemetry Authors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package lambdainternal; | ||
|
||
import com.amazonaws.services.lambda.runtime.Context; | ||
import com.amazonaws.services.lambda.runtime.RequestHandler; | ||
|
||
public class AwsLambdaLegacyInternalRequestHandler implements RequestHandler<String, String> { | ||
|
||
private final RequestHandler<String, String> requestHandler; | ||
|
||
public AwsLambdaLegacyInternalRequestHandler(RequestHandler<String, String> requestHandler) { | ||
this.requestHandler = requestHandler; | ||
} | ||
|
||
@Override | ||
public String handleRequest(String input, Context context) { | ||
return requestHandler.handleRequest(input, context); | ||
} | ||
} |