Retrieves the current destination of data sent to PutTraceSegments and OpenTelemetry protocol (OTLP) endpoint. The Transaction Search feature requires a CloudWatchLogs destination. For more information, see Transaction Search and OpenTelemetry.
Raises:
Source code in docs_src/capo_xray/_services/async_x_ray.py
| async def get_trace_segment_destination(
self, *, config_overrides: Optional[AsyncXRayClientConfig] = None
) -> "capo_xray.types.get_trace_segment_destination_result.GetTraceSegmentDestinationResult":
"""<p> Retrieves the current destination of data sent to <code>PutTraceSegments</code> and <i>OpenTelemetry protocol (OTLP)</i> endpoint. The Transaction Search feature requires a CloudWatchLogs destination. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Transaction-Search.html">Transaction Search</a> and <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-OpenTelemetry-Sections.html">OpenTelemetry</a>. </p>
Raises:
capo_xray.errors.invalid_request_exception.InvalidRequestException: <p>The request is missing required parameters or has invalid parameters.</p>
capo_xray.errors.throttled_exception.ThrottledException: <p>The request exceeds the maximum number of requests per second.</p>
capo_xray.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_xray.types.get_trace_segment_destination_request.GetTraceSegmentDestinationRequest]",
) -> AsyncOperationResponse[
"capo_xray.types.get_trace_segment_destination_result.GetTraceSegmentDestinationResult"
]:
import capo_xray._operations.awsx_ray.get_trace_segment_destination
(
output,
http_response,
) = await capo_xray._operations.awsx_ray.get_trace_segment_destination.async_get_trace_segment_destination(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetTraceSegmentDestination")
)
input_: capo_xray.types.get_trace_segment_destination_request.GetTraceSegmentDestinationRequest = {}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|