Class SamplingRequest
java.lang.Object
com.amazonaws.xray.strategy.sampling.SamplingRequest
Represents the input request to the sampler. Contains attributes relevant to
making sampling decisions.
-
Constructor Summary
ConstructorsConstructorDescriptionSamplingRequest
(@Nullable String service, @Nullable String host, @Nullable String url, @Nullable String method, @Nullable String serviceType) SamplingRequest
(String roleArn, @Nullable String resourceArn, @Nullable String service, @Nullable String host, @Nullable String method, @Nullable String url, @Nullable String serviceType, @Nullable Map<String, String> attributes) -
Method Summary
-
Constructor Details
-
SamplingRequest
public SamplingRequest(String roleArn, @Nullable String resourceArn, @Nullable String service, @Nullable String host, @Nullable String method, @Nullable String url, @Nullable String serviceType, @Nullable Map<String, String> attributes) - Parameters:
roleArn
- the role of the customer requesting a sampling decision. Must not be null.resourceArn
- the resource for which a sampling decision is being requested. Ex. "arn:aws:execute-api:us-east-1:1234566789012:qsxrty/test/GET/foo/bar/*".service
- the service name for which a sampling decision is being requested. Ex. "www.foo.com".host
- the host name extracted from the incoming request Host header.method
- the Http Method extracted from the Request-Line.url
- the URL extracted from the Request-Line.serviceType
- the service type.attributes
- list of key-value pairs generated on a per-request basis.
-
SamplingRequest
-
-
Method Details
-
getAccountId
-
getRoleARN
-
getResourceARN
-
getService
-
getMethod
-
getUrl
-
getHost
-
getServiceType
-
getAttributes
-
setServiceType
-