Class UDPEmitter

java.lang.Object
com.amazonaws.xray.emitters.Emitter
com.amazonaws.xray.emitters.UDPEmitter
Direct Known Subclasses:
DefaultEmitter

@Deprecated public class UDPEmitter extends Emitter
Deprecated.
  • Constructor Details

    • UDPEmitter

      public UDPEmitter() throws SocketException
      Deprecated.
      Constructs a UDPEmitter. Sets the daemon address to the value of the AWS_XRAY_DAEMON_ADDRESS environment variable or com.amazonaws.xray.emitters.daemonAddress system property, if either are set to a non-empty value. Otherwise, points to InetAddress.getLoopbackAddress() at port 2000.
      Throws:
      SocketException - if an error occurs while instantiating a DatagramSocket.
    • UDPEmitter

      public UDPEmitter(DaemonConfiguration config) throws SocketException
      Deprecated.
      Constructs a UDPEmitter. This overload allows you to specify the configuration.
      Parameters:
      config - The DaemonConfiguration for the Emitter.
      Throws:
      SocketException - if an error occurs while instantiating a DatagramSocket.
  • Method Details

    • getUDPAddress

      public String getUDPAddress()
      Deprecated.
    • sendSegment

      public boolean sendSegment(Segment segment)
      Deprecated.
      Sends a segment to the X-Ray daemon.
      Specified by:
      sendSegment in class Emitter
      Parameters:
      segment - the segment to send
      Returns:
      true if the send operation was successful
      See Also:
    • sendSubsegment

      public boolean sendSubsegment(Subsegment subsegment)
      Deprecated.
      Sends a subsegment to the X-Ray daemon.
      Specified by:
      sendSubsegment in class Emitter
      Parameters:
      subsegment - the subsegment to send
      Returns:
      true if the send operation was successful
      See Also: