SpanConverter
in package
FinalYes
Table of Contents
Properties
- $serializer : ProtobufSerializer
Methods
- __construct() : mixed
- convert() : ExportTraceServiceRequest
- convertResourceSpans() : ResourceSpans
- convertScopeSpans() : ScopeSpans
- convertSpan() : Span
- convertSpanKind() : int
- convertStatusCode() : int
- setAttributes() : void
- traceFlags() : int
Properties
$serializer read-only
private
ProtobufSerializer
$serializer
Methods
__construct()
public
__construct([ProtobufSerializer|null $serializer = null ]) : mixed
Parameters
- $serializer : ProtobufSerializer|null = null
convert()
public
convert(iterable<string|int, mixed> $spans) : ExportTraceServiceRequest
Parameters
- $spans : iterable<string|int, mixed>
Return values
ExportTraceServiceRequestconvertResourceSpans()
private
convertResourceSpans(ResourceInfo $resource) : ResourceSpans
Parameters
- $resource : ResourceInfo
Return values
ResourceSpansconvertScopeSpans()
private
convertScopeSpans(InstrumentationScopeInterface $instrumentationScope) : ScopeSpans
Parameters
- $instrumentationScope : InstrumentationScopeInterface
Return values
ScopeSpansconvertSpan()
private
convertSpan(SpanDataInterface $span) : Span
Parameters
- $span : SpanDataInterface
Return values
SpanconvertSpanKind()
private
convertSpanKind(int $kind) : int
Parameters
- $kind : int
Return values
intconvertStatusCode()
private
convertStatusCode(string $status) : int
Parameters
- $status : string
Return values
intsetAttributes()
private
setAttributes(Resource|Span|Event|Link|InstrumentationScope $pElement, AttributesInterface $attributes) : void
Parameters
- $pElement : Resource|Span|Event|Link|InstrumentationScope
- $attributes : AttributesInterface
traceFlags()
private
static traceFlags(SpanContextInterface $spanContext) : int
Parameters
- $spanContext : SpanContextInterface