You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Parameter whitelist file is available: [here](https://github.com/functionalone/aws-xray-parameter-whitelist-java/blob/master/src/main/resources/com/github/functionalone/xray/handlers/ExtendedOperationParameterWhitelist.json).
14
+
13
15
# Installation
14
16
15
-
Project provides a drop-in replacement jar which should be used instead of the AWS X-Ray SDK jar of: `aws-xray-recorder-sdk-aws-sdk-instrumentor`. The project jar includes the alternate configuration for the X-Ray tracing request handler.
17
+
Project provides a drop-in replacement jar which should be used instead of the AWS X-Ray SDK jar of: `aws-xray-recorder-sdk-aws-sdk-instrumentor`. The project jar includes the alternate configuration for the X-Ray tracing request handler. This means that you can simply use the provided jar without any source code modifications, same way as the original `aws-xray-recorder-sdk-aws-sdk-instrumentor` is used.
16
18
17
19
## Adding the Jar as a Dependency
18
20
19
-
Stay tuned. We are still in the process of publishing the project to JCenter.
21
+
Build artifacts are available via Bintray's JCenter. Project binary distributions are available at: https://bintray.com/functionalone/maven/aws-xray-parameter-whitelist-instrumentor. To add the jar as a dependency, you will need to use the jcenter repository. For example, if you are using Gradle you will need to add the following section to the repositories closure:
22
+
23
+
```
24
+
repositories {
25
+
jcenter()
26
+
}
27
+
```
28
+
29
+
And then add the following compilation dependency:
Make sure to remove the `aws-xray-recorder-sdk-aws-sdk-instrumentor` compile dependency.
20
35
21
36
## Compiling from Source
22
37
@@ -27,4 +42,9 @@ Clone (or download) the project. Then run:
27
42
```
28
43
Target jar will be created at: `build/lib`. Jar will be named: `aws-xray-parameter-whitelist-instrumentor-<version>.jar`. Add the jar to your application classpath and make sure to remove: `aws-xray-recorder-sdk-aws-sdk-instrumentor`.
29
44
45
+
# Parameter Whitelist Configuration
46
+
47
+
It is possible to configure a custom parameter whitelist file instead of the default one provided with the package. This can be done either via a the environment variable: `AWS_XRAY_WHITELIST_URL` or the System property: `alt.aws.xray.whitelist.url`. The System property takes precedence over the environment variable. Value should be set to a resource path as specified by [Class.getResource()](https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html#getResource-java.lang.String-). For example: `/com/myconpany/mypackage/MyParameterWhitelist.json`.
48
+
49
+
**Note**: If setting the System property programmatically, you need to set this before using the AWS SDK. The configuration is evaluated once upon first usage of the AWS SDK.
0 commit comments