Class: Datadog::Trace::LambdaEmitter
- Inherits:
-
XRay::DefaultEmitter
- Object
- XRay::DefaultEmitter
- Datadog::Trace::LambdaEmitter
- Defined in:
- lib/datadog/lambda/trace/xray_lambda.rb
Overview
LambdaEmitter filters out spans generated from the lambda daemon
Instance Method Summary collapse
Instance Method Details
#send_entity(entity:) ⇒ Object
29 30 31 32 33 |
# File 'lib/datadog/lambda/trace/xray_lambda.rb', line 29 def send_entity(entity:) return nil unless should_send?(entity: entity) super end |
#should_send?(entity:) ⇒ Boolean
25 26 27 |
# File 'lib/datadog/lambda/trace/xray_lambda.rb', line 25 def should_send?(entity:) entity.name != '127.0.0.1' # Do not send localhost entities. end |