Class: XRay::LambdaStreamer

Inherits:
DefaultStreamer show all
Defined in:
lib/aws-xray-sdk/lambda/lambda_streamer.rb

Overview

LambdaStreamer extends DefaultStreamer so that subsegments are sent to the XRay endpoint as they are available.

Instance Attribute Summary

Attributes inherited from DefaultStreamer

#stream_threshold

Instance Method Summary collapse

Methods inherited from DefaultStreamer

#eligible?, #stream_subsegments

Methods included from Logging

#logger, logger, logger=

Methods included from Streamer

#eligible?, #stream_threshold=, #subsegments_to_stream

Constructor Details

#initializeLambdaStreamer

Returns a new instance of LambdaStreamer.



5
6
7
# File 'lib/aws-xray-sdk/lambda/lambda_streamer.rb', line 5

def initialize
  @stream_threshold = 1 #Stream every subsegment as it is available
end