Skip to content

get_trace_segment_destination

get_trace_segment_destination(
    *, config_overrides: Optional[XRayClientConfig] = None
) -> GetTraceSegmentDestinationResult

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/x_ray.py
def get_trace_segment_destination(
    self, *, config_overrides: Optional[XRayClientConfig] = 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.
    """

    def _handler(
        req: "OperationRequest[capo_xray.types.get_trace_segment_destination_request.GetTraceSegmentDestinationRequest]",
    ) -> OperationResponse[
        "capo_xray.types.get_trace_segment_destination_result.GetTraceSegmentDestinationResult"
    ]:
        import capo_xray._operations.awsx_ray.get_trace_segment_destination

        output, http_response = (
            capo_xray._operations.awsx_ray.get_trace_segment_destination.get_trace_segment_destination(
                req.options, req.input
            )
        )
        return OperationResponse(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 = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output