TracesSourceTracesBackendConsoleSpan

class Span

A span which validates tag assignment.

Definitions

def initialize(context, name)

Initialize a new span.

Signature

parameter context Context

The context in which the span is recorded.

parameter name String

A useful name/annotation for the recorded span.

Implementation

def initialize(context, name)
	@context = context
	@name = name
end

attr :context

Signature

attribute Context

The context in which the span is recorded.

def []= key, value

Assign some metadata to the span.

Signature

parameter key String

The metadata key.

parameter value Object

The metadata value. Should be coercable to a string.

Implementation

def []= key, value
	::Console.logger.info(@context, @name, "#{key} = #{value}")
end