LogsConverter
in package
Table of Contents
Properties
- $serializer : ProtobufSerializer
Methods
- __construct() : mixed
- convert() : ExportLogsServiceRequest
- convertInstrumentationScope() : ScopeLogs
- convertLogRecord() : LogRecord
- convertResourceLogs() : ResourceLogs
- setAttributes() : void
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, ReadableLogRecord> $logs) : ExportLogsServiceRequest
Parameters
- $logs : iterable<string|int, ReadableLogRecord>
Tags
Return values
ExportLogsServiceRequestconvertInstrumentationScope()
private
convertInstrumentationScope(InstrumentationScopeInterface $instrumentationScope) : ScopeLogs
Parameters
- $instrumentationScope : InstrumentationScopeInterface
Return values
ScopeLogsconvertLogRecord()
private
convertLogRecord(ReadableLogRecord $record) : LogRecord
Parameters
- $record : ReadableLogRecord
Return values
LogRecordconvertResourceLogs()
private
convertResourceLogs(ResourceInfo $resource) : ResourceLogs
Parameters
- $resource : ResourceInfo
Return values
ResourceLogssetAttributes()
private
setAttributes(Resource|LogRecord|InstrumentationScope $pElement, AttributesInterface $attributes) : void
Parameters
- $pElement : Resource|LogRecord|InstrumentationScope
- $attributes : AttributesInterface