:doc:`XRay <../../xray>` / Client / get_trace_segment_destination

*****************************
get_trace_segment_destination
*****************************



.. py:method:: XRay.Client.get_trace_segment_destination()

  

  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 <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Transaction-Search.html>`__ and `OpenTelemetry <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-OpenTelemetry-Sections.html>`__.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/GetTraceSegmentDestination>`_  


  **Request Syntax**
  ::

    response = client.get_trace_segment_destination()
    
    
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'Destination': 'XRay'|'CloudWatchLogs',
          'Status': 'PENDING'|'ACTIVE'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Destination** *(string) --* 

        Retrieves the current destination.

        
      

      - **Status** *(string) --* 

        Status of the retrieval.

        
  
  **Exceptions**
  
  *   :py:class:`XRay.Client.exceptions.InvalidRequestException`

  
  *   :py:class:`XRay.Client.exceptions.ThrottledException`

  