Package-level declarations

Types

Link copied to clipboard
interface XRayClient : SdkClient

Amazon Web Services X-Ray provides APIs for managing debug traces and retrieving service maps and other data created by processing those traces.

Properties

Link copied to clipboard
const val SdkVersion: String
Link copied to clipboard
Link copied to clipboard
const val ServiceId: String

Inherited functions

Link copied to clipboard

You cannot find traces through this API if Transaction Search is enabled since trace is not indexed in X-Ray.

Link copied to clipboard

Cancels an ongoing trace retrieval job initiated by StartTraceRetrieval using the provided RetrievalToken. A successful cancellation will return an HTTP 200 response.

Link copied to clipboard
inline suspend fun XRayClient.createGroup(crossinline block: CreateGroupRequest.Builder.() -> Unit): CreateGroupResponse

Creates a group resource with a name and a filter expression.

Link copied to clipboard

Creates a rule to control sampling behavior for instrumented applications. Services retrieve rules with GetSamplingRules, and evaluate each rule in ascending order of priority for each request. If a rule matches, the service records a trace, borrowing it from the reservoir size. After 10 seconds, the service reports back to X-Ray with GetSamplingTargets to get updated versions of each in-use rule. The updated rule contains a trace quota that the service can use instead of borrowing from the reservoir.

Link copied to clipboard
inline suspend fun XRayClient.deleteGroup(crossinline block: DeleteGroupRequest.Builder.() -> Unit): DeleteGroupResponse

Deletes a group resource.

Link copied to clipboard

Deletes a resource policy from the target Amazon Web Services account.

Link copied to clipboard

Deletes a sampling rule.

Link copied to clipboard

Retrieves the current encryption configuration for X-Ray data.

Link copied to clipboard
inline suspend fun XRayClient.getGroup(crossinline block: GetGroupRequest.Builder.() -> Unit): GetGroupResponse

Retrieves group resource details.

Link copied to clipboard
inline suspend fun XRayClient.getGroups(crossinline block: GetGroupsRequest.Builder.() -> Unit): GetGroupsResponse

Retrieves all active group details.

Link copied to clipboard

Retrieves all indexing rules.

Link copied to clipboard
inline suspend fun XRayClient.getInsight(crossinline block: GetInsightRequest.Builder.() -> Unit): GetInsightResponse

Retrieves the summary information of an insight. This includes impact to clients and root cause services, the top anomalous services, the category, the state of the insight, and the start and end time of the insight.

Link copied to clipboard

X-Ray reevaluates insights periodically until they're resolved, and records each intermediate state as an event. You can review an insight's events in the Impact Timeline on the Inspect page in the X-Ray console.

Link copied to clipboard

Retrieves a service graph structure filtered by the specified insight. The service graph is limited to only structural information. For a complete service graph, use this API with the GetServiceGraph API.

Link copied to clipboard

Retrieves the summaries of all insights in the specified group matching the provided filter values.

Link copied to clipboard

Retrieves a service graph for traces based on the specified RetrievalToken from the CloudWatch log group generated by Transaction Search. This API does not initiate a retrieval job. You must first execute StartTraceRetrieval to obtain the required RetrievalToken.

Link copied to clipboard

Retrieves all sampling rules.

Link copied to clipboard

Retrieves information about recent sampling results for all sampling rules.

Link copied to clipboard

Requests a sampling quota for rules that the service is using to sample requests.

Link copied to clipboard

Retrieves a document that describes services that process incoming requests, and downstream services that they call as a result. Root services process incoming requests and make calls to downstream services. Root services are applications that use the Amazon Web Services X-Ray SDK. Downstream services can be other applications, Amazon Web Services resources, HTTP web APIs, or SQL databases.

Link copied to clipboard

Get an aggregation of service statistics defined by a specific time range.

Link copied to clipboard

Retrieves a service graph for one or more specific trace IDs.

Link copied to clipboard

Retrieves the current destination of data sent to PutTraceSegments and OpenTelemetry API. The Transaction Search feature requires a CloudWatchLogs destination. For more information, see Transaction Search and OpenTelemetry.

Link copied to clipboard

Retrieves IDs and annotations for traces available for a specified time frame using an optional filter. To get the full traces, pass the trace IDs to BatchGetTraces.

Link copied to clipboard

Returns the list of resource policies in the target Amazon Web Services account.

Link copied to clipboard

Retrieves a list of traces for a given RetrievalToken from the CloudWatch log group generated by Transaction Search. For information on what each trace returns, see BatchGetTraces.

Link copied to clipboard

Returns a list of tags that are applied to the specified Amazon Web Services X-Ray group or sampling rule.

Link copied to clipboard

Updates the encryption configuration for X-Ray data.

Link copied to clipboard

Sets the resource policy to grant one or more Amazon Web Services services and accounts permissions to access X-Ray. Each resource policy will be associated with a specific Amazon Web Services account. Each Amazon Web Services account can have a maximum of 5 resource policies, and each policy name must be unique within that account. The maximum size of each resource policy is 5KB.

Link copied to clipboard

Used by the Amazon Web Services X-Ray daemon to upload telemetry.

Link copied to clipboard

Uploads segment documents to Amazon Web Services X-Ray. A segment document can be a completed segment, an in-progress segment, or an array of subsegments.

Link copied to clipboard

Initiates a trace retrieval process using the specified time range and for the give trace IDs on Transaction Search generated by the CloudWatch log group. For more information, see Transaction Search.

Link copied to clipboard
inline suspend fun XRayClient.tagResource(crossinline block: TagResourceRequest.Builder.() -> Unit): TagResourceResponse

Applies tags to an existing Amazon Web Services X-Ray group or sampling rule.

Link copied to clipboard

Removes tags from an Amazon Web Services X-Ray group or sampling rule. You cannot edit or delete system tags (those with an aws: prefix).

Link copied to clipboard
inline suspend fun XRayClient.updateGroup(crossinline block: UpdateGroupRequest.Builder.() -> Unit): UpdateGroupResponse

Updates a group resource.

Link copied to clipboard

Modifies an indexing rule’s configuration.

Link copied to clipboard

Modifies a sampling rule's configuration.

Link copied to clipboard

Modifies the destination of data sent to PutTraceSegments. The Transaction Search feature requires the CloudWatchLogs destination. For more information, see Transaction Search.

Link copied to clipboard

Create a copy of the client with one or more configuration values overridden. This method allows the caller to perform scoped config overrides for one or more client operations.