@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class ApmTraceApi extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ApmTraceApi.GetPrunedTraceByIDOptionalParameters
Manage optional parameters to getPrunedTraceByID.
|
static class |
ApmTraceApi.GetTraceByIDOptionalParameters
Manage optional parameters to getTraceByID.
|
| Constructor and Description |
|---|
ApmTraceApi() |
ApmTraceApi(ApiClient apiClient) |
public ApmTraceApi()
public ApmTraceApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
apiClient - an instance of API clientpublic PrunedTraceResponse getPrunedTraceByID(String traceId) throws ApiException
traceId - The trace ID. Accepts either a 32-character hexadecimal string (128-bit trace
ID) or a decimal string of up to 39 digits. (required)ApiException - if fails to make API callpublic CompletableFuture<PrunedTraceResponse> getPrunedTraceByIDAsync(String traceId)
traceId - The trace ID. Accepts either a 32-character hexadecimal string (128-bit trace
ID) or a decimal string of up to 39 digits. (required)public PrunedTraceResponse getPrunedTraceByID(String traceId, ApmTraceApi.GetPrunedTraceByIDOptionalParameters parameters) throws ApiException
traceId - The trace ID. Accepts either a 32-character hexadecimal string (128-bit trace
ID) or a decimal string of up to 39 digits. (required)parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<PrunedTraceResponse> getPrunedTraceByIDAsync(String traceId, ApmTraceApi.GetPrunedTraceByIDOptionalParameters parameters)
traceId - The trace ID. Accepts either a 32-character hexadecimal string (128-bit trace
ID) or a decimal string of up to 39 digits. (required)parameters - Optional parameters for the request.public ApiResponse<PrunedTraceResponse> getPrunedTraceByIDWithHttpInfo(String traceId, ApmTraceApi.GetPrunedTraceByIDOptionalParameters parameters) throws ApiException
60 requests per minute per
organization.traceId - The trace ID. Accepts either a 32-character hexadecimal string (128-bit trace
ID) or a decimal string of up to 39 digits. (required)parameters - Optional parameters for the request.ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
| 504 | Gateway Timeout | - |
public CompletableFuture<ApiResponse<PrunedTraceResponse>> getPrunedTraceByIDWithHttpInfoAsync(String traceId, ApmTraceApi.GetPrunedTraceByIDOptionalParameters parameters)
traceId - The trace ID. Accepts either a 32-character hexadecimal string (128-bit trace
ID) or a decimal string of up to 39 digits. (required)parameters - Optional parameters for the request.public TraceResponse getTraceByID(String traceId) throws ApiException
traceId - The trace ID. Accepts either a 32-character hexadecimal string (128-bit trace
ID) or a decimal string of up to 39 digits. (required)ApiException - if fails to make API callpublic CompletableFuture<TraceResponse> getTraceByIDAsync(String traceId)
traceId - The trace ID. Accepts either a 32-character hexadecimal string (128-bit trace
ID) or a decimal string of up to 39 digits. (required)public TraceResponse getTraceByID(String traceId, ApmTraceApi.GetTraceByIDOptionalParameters parameters) throws ApiException
traceId - The trace ID. Accepts either a 32-character hexadecimal string (128-bit trace
ID) or a decimal string of up to 39 digits. (required)parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<TraceResponse> getTraceByIDAsync(String traceId, ApmTraceApi.GetTraceByIDOptionalParameters parameters)
traceId - The trace ID. Accepts either a 32-character hexadecimal string (128-bit trace
ID) or a decimal string of up to 39 digits. (required)parameters - Optional parameters for the request.public ApiResponse<TraceResponse> getTraceByIDWithHttpInfo(String traceId, ApmTraceApi.GetTraceByIDOptionalParameters parameters) throws ApiException
60 requests per minute per organization.traceId - The trace ID. Accepts either a 32-character hexadecimal string (128-bit trace
ID) or a decimal string of up to 39 digits. (required)parameters - Optional parameters for the request.ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 413 | Payload Too Large | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<TraceResponse>> getTraceByIDWithHttpInfoAsync(String traceId, ApmTraceApi.GetTraceByIDOptionalParameters parameters)
traceId - The trace ID. Accepts either a 32-character hexadecimal string (128-bit trace
ID) or a decimal string of up to 39 digits. (required)parameters - Optional parameters for the request.Copyright © 2026. All rights reserved.