AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Interface for accessing XRay Amazon Web Services X-Ray provides APIs for managing debug traces and retrieving service maps and other data created by processing those traces.
Namespace: Amazon.XRay
Assembly: AWSSDK.XRay.dll
Version: 3.x.y.z
public interface IAmazonXRay IAmazonService, IDisposable
The IAmazonXRay type exposes the following members
Name | Type | Description | |
---|---|---|---|
![]() |
Paginators | Amazon.XRay.Model.IXRayPaginatorFactory |
Paginators for the service |
Name | Description | |
---|---|---|
![]() |
BatchGetTraces(BatchGetTracesRequest) |
Retrieves a list of traces specified by ID. Each trace is a collection of segment
documents that originates from a single request. Use |
![]() |
BatchGetTracesAsync(BatchGetTracesRequest, CancellationToken) |
Retrieves a list of traces specified by ID. Each trace is a collection of segment
documents that originates from a single request. Use |
![]() |
CreateGroup(CreateGroupRequest) |
Creates a group resource with a name and a filter expression. |
![]() |
CreateGroupAsync(CreateGroupRequest, CancellationToken) |
Creates a group resource with a name and a filter expression. |
![]() |
CreateSamplingRule(CreateSamplingRuleRequest) |
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. |
![]() |
CreateSamplingRuleAsync(CreateSamplingRuleRequest, CancellationToken) |
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. |
![]() |
DeleteGroup(DeleteGroupRequest) |
Deletes a group resource. |
![]() |
DeleteGroupAsync(DeleteGroupRequest, CancellationToken) |
Deletes a group resource. |
![]() |
DeleteResourcePolicy(DeleteResourcePolicyRequest) |
Deletes a resource policy from the target Amazon Web Services account. |
![]() |
DeleteResourcePolicyAsync(DeleteResourcePolicyRequest, CancellationToken) |
Deletes a resource policy from the target Amazon Web Services account. |
![]() |
DeleteSamplingRule(DeleteSamplingRuleRequest) |
Deletes a sampling rule. |
![]() |
DeleteSamplingRuleAsync(DeleteSamplingRuleRequest, CancellationToken) |
Deletes a sampling rule. |
![]() |
GetEncryptionConfig(GetEncryptionConfigRequest) |
Retrieves the current encryption configuration for X-Ray data. |
![]() |
GetEncryptionConfigAsync(GetEncryptionConfigRequest, CancellationToken) |
Retrieves the current encryption configuration for X-Ray data. |
![]() |
GetGroup(GetGroupRequest) |
Retrieves group resource details. |
![]() |
GetGroupAsync(GetGroupRequest, CancellationToken) |
Retrieves group resource details. |
![]() |
GetGroups(GetGroupsRequest) |
Retrieves all active group details. |
![]() |
GetGroupsAsync(GetGroupsRequest, CancellationToken) |
Retrieves all active group details. |
![]() |
GetInsight(GetInsightRequest) |
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. |
![]() |
GetInsightAsync(GetInsightRequest, CancellationToken) |
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. |
![]() |
GetInsightEvents(GetInsightEventsRequest) |
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. |
![]() |
GetInsightEventsAsync(GetInsightEventsRequest, CancellationToken) |
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. |
![]() |
GetInsightImpactGraph(GetInsightImpactGraphRequest) |
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. |
![]() |
GetInsightImpactGraphAsync(GetInsightImpactGraphRequest, CancellationToken) |
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. |
![]() |
GetInsightSummaries(GetInsightSummariesRequest) |
Retrieves the summaries of all insights in the specified group matching the provided filter values. |
![]() |
GetInsightSummariesAsync(GetInsightSummariesRequest, CancellationToken) |
Retrieves the summaries of all insights in the specified group matching the provided filter values. |
![]() |
GetSamplingRules(GetSamplingRulesRequest) |
Retrieves all sampling rules. |
![]() |
GetSamplingRulesAsync(GetSamplingRulesRequest, CancellationToken) |
Retrieves all sampling rules. |
![]() |
GetSamplingStatisticSummaries(GetSamplingStatisticSummariesRequest) |
Retrieves information about recent sampling results for all sampling rules. |
![]() |
GetSamplingStatisticSummariesAsync(GetSamplingStatisticSummariesRequest, CancellationToken) |
Retrieves information about recent sampling results for all sampling rules. |
![]() |
GetSamplingTargets(GetSamplingTargetsRequest) |
Requests a sampling quota for rules that the service is using to sample requests. |
![]() |
GetSamplingTargetsAsync(GetSamplingTargetsRequest, CancellationToken) |
Requests a sampling quota for rules that the service is using to sample requests. |
![]() |
GetServiceGraph(GetServiceGraphRequest) |
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. |
![]() |
GetServiceGraphAsync(GetServiceGraphRequest, CancellationToken) |
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. |
![]() |
GetTimeSeriesServiceStatistics(GetTimeSeriesServiceStatisticsRequest) |
Get an aggregation of service statistics defined by a specific time range. |
![]() |
GetTimeSeriesServiceStatisticsAsync(GetTimeSeriesServiceStatisticsRequest, CancellationToken) |
Get an aggregation of service statistics defined by a specific time range. |
![]() |
GetTraceGraph(GetTraceGraphRequest) |
Retrieves a service graph for one or more specific trace IDs. |
![]() |
GetTraceGraphAsync(GetTraceGraphRequest, CancellationToken) |
Retrieves a service graph for one or more specific trace IDs. |
![]() |
GetTraceSummaries(GetTraceSummariesRequest) |
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
A filter expression can target traced requests that hit specific service nodes or
edges, have errors, or come from a known user. For example, the following filter expression
targets traces that pass through
This filter expression finds traces that have an annotation named
For a full list of indexed fields and keywords that you can use in filter expressions, see Using Filter Expressions in the Amazon Web Services X-Ray Developer Guide. |
![]() |
GetTraceSummariesAsync(GetTraceSummariesRequest, CancellationToken) |
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
A filter expression can target traced requests that hit specific service nodes or
edges, have errors, or come from a known user. For example, the following filter expression
targets traces that pass through
This filter expression finds traces that have an annotation named
For a full list of indexed fields and keywords that you can use in filter expressions, see Using Filter Expressions in the Amazon Web Services X-Ray Developer Guide. |
![]() |
ListResourcePolicies(ListResourcePoliciesRequest) |
Returns the list of resource policies in the target Amazon Web Services account. |
![]() |
ListResourcePoliciesAsync(ListResourcePoliciesRequest, CancellationToken) |
Returns the list of resource policies in the target Amazon Web Services account. |
![]() |
ListTagsForResource(ListTagsForResourceRequest) |
Returns a list of tags that are applied to the specified Amazon Web Services X-Ray group or sampling rule. |
![]() |
ListTagsForResourceAsync(ListTagsForResourceRequest, CancellationToken) |
Returns a list of tags that are applied to the specified Amazon Web Services X-Ray group or sampling rule. |
![]() |
PutEncryptionConfig(PutEncryptionConfigRequest) |
Updates the encryption configuration for X-Ray data. |
![]() |
PutEncryptionConfigAsync(PutEncryptionConfigRequest, CancellationToken) |
Updates the encryption configuration for X-Ray data. |
![]() |
PutResourcePolicy(PutResourcePolicyRequest) |
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. |
![]() |
PutResourcePolicyAsync(PutResourcePolicyRequest, CancellationToken) |
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. |
![]() |
PutTelemetryRecords(PutTelemetryRecordsRequest) |
Used by the Amazon Web Services X-Ray daemon to upload telemetry. |
![]() |
PutTelemetryRecordsAsync(PutTelemetryRecordsRequest, CancellationToken) |
Used by the Amazon Web Services X-Ray daemon to upload telemetry. |
![]() |
PutTraceSegments(PutTraceSegmentsRequest) | |
![]() |
PutTraceSegmentsAsync(PutTraceSegmentsRequest, CancellationToken) | |
![]() |
TagResource(TagResourceRequest) |
Applies tags to an existing Amazon Web Services X-Ray group or sampling rule. |
![]() |
TagResourceAsync(TagResourceRequest, CancellationToken) |
Applies tags to an existing Amazon Web Services X-Ray group or sampling rule. |
![]() |
UntagResource(UntagResourceRequest) |
Removes tags from an Amazon Web Services X-Ray group or sampling rule. You cannot
edit or delete system tags (those with an |
![]() |
UntagResourceAsync(UntagResourceRequest, CancellationToken) |
Removes tags from an Amazon Web Services X-Ray group or sampling rule. You cannot
edit or delete system tags (those with an |
![]() |
UpdateGroup(UpdateGroupRequest) |
Updates a group resource. |
![]() |
UpdateGroupAsync(UpdateGroupRequest, CancellationToken) |
Updates a group resource. |
![]() |
UpdateSamplingRule(UpdateSamplingRuleRequest) |
Modifies a sampling rule's configuration. |
![]() |
UpdateSamplingRuleAsync(UpdateSamplingRuleRequest, CancellationToken) |
Modifies a sampling rule's configuration. |
.NET Core App:
Supported in: 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5, 4.0, 3.5