Class: Datadog::DI::CaptureExpressionEvaluator::Result Private

Inherits:
Object
  • Object
show all
Defined in:
lib/datadog/di/capture_expression_evaluator/result.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

The result of evaluating a probe's capture expressions: the serialized values and the evaluation errors.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(serialized_values:, errors:) ⇒ void

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Initializes the result.

Parameters:

  • serialized_values (Hash{String => untyped}) —

    serialized values keyed by capture expression name

  • errors (Array<EvaluationFailure>) —

    evaluation errors of the expressions that failed to evaluate or serialize



14
15
16
17
# File 'lib/datadog/di/capture_expression_evaluator/result.rb', line 14

def initialize(serialized_values:, errors:)
  @serialized_values = serialized_values
  @errors = errors
end

Instance Attribute Details

#errors ⇒ Array<EvaluationFailure> (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

The evaluation errors; one entry per expression that failed to evaluate or serialize.

Returns:



26
27
28
# File 'lib/datadog/di/capture_expression_evaluator/result.rb', line 26

def errors
  @errors
end

#serialized_values ⇒ Hash{String => untyped} (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

The serialized values keyed by capture expression name.

Returns:

  • (Hash{String => untyped})


21
22
23
# File 'lib/datadog/di/capture_expression_evaluator/result.rb', line 21

def serialized_values
  @serialized_values
end