OpenTelemetry PHP

InstrumentationLibraryLogs extends Message
in package

A collection of Logs produced by an InstrumentationLibrary.

InstrumentationLibraryLogs is wire-compatible with ScopeLogs for binary Protobuf format. This message is deprecated and will be removed on June 15, 2022.

Generated from protobuf message opentelemetry.proto.logs.v1.InstrumentationLibraryLogs

Table of Contents

Properties

$instrumentation_library  : mixed
The instrumentation library information for the logs in this message.
$schema_url  : mixed
This schema_url applies to all logs in the "logs" field.
$log_records  : mixed
A list of logs that originate from an instrumentation library.

Methods

__construct()  : mixed
Constructor.
clearInstrumentationLibrary()  : mixed
getInstrumentationLibrary()  : InstrumentationLibrary|null
The instrumentation library information for the logs in this message.
getLogRecords()  : RepeatedField
A list of logs that originate from an instrumentation library.
getSchemaUrl()  : string
This schema_url applies to all logs in the "logs" field.
hasInstrumentationLibrary()  : mixed
setInstrumentationLibrary()  : $this
The instrumentation library information for the logs in this message.
setLogRecords()  : $this
A list of logs that originate from an instrumentation library.
setSchemaUrl()  : $this
This schema_url applies to all logs in the "logs" field.

Properties

$instrumentation_library

The instrumentation library information for the logs in this message.

protected mixed $instrumentation_library = null

Semantically when InstrumentationLibrary isn't set, it is equivalent with an empty instrumentation library name (unknown).

Generated from protobuf field .opentelemetry.proto.common.v1.InstrumentationLibrary instrumentation_library = 1;

$schema_url

This schema_url applies to all logs in the "logs" field.

protected mixed $schema_url = ''

Generated from protobuf field string schema_url = 3;

$log_records

A list of logs that originate from an instrumentation library.

private mixed $log_records

Generated from protobuf field repeated .opentelemetry.proto.logs.v1.LogRecord log_records = 2;

Methods

__construct()

Constructor.

public __construct([array<string|int, mixed> $data = NULL ]) : mixed
Parameters
$data : array<string|int, mixed> = NULL

{ Optional. Data for populating the Message object.

@type \Opentelemetry\Proto\Common\V1\InstrumentationLibrary $instrumentation_library
      The instrumentation library information for the logs in this message.
      Semantically when InstrumentationLibrary isn't set, it is equivalent with
      an empty instrumentation library name (unknown).
@type \Opentelemetry\Proto\Logs\V1\LogRecord[]|\Google\Protobuf\Internal\RepeatedField $log_records
      A list of logs that originate from an instrumentation library.
@type string $schema_url
      This schema_url applies to all logs in the "logs" field.

}

getInstrumentationLibrary()

The instrumentation library information for the logs in this message.

public getInstrumentationLibrary() : InstrumentationLibrary|null

Semantically when InstrumentationLibrary isn't set, it is equivalent with an empty instrumentation library name (unknown).

Generated from protobuf field .opentelemetry.proto.common.v1.InstrumentationLibrary instrumentation_library = 1;

Return values
InstrumentationLibrary|null

getLogRecords()

A list of logs that originate from an instrumentation library.

public getLogRecords() : RepeatedField

Generated from protobuf field repeated .opentelemetry.proto.logs.v1.LogRecord log_records = 2;

Return values
RepeatedField

getSchemaUrl()

This schema_url applies to all logs in the "logs" field.

public getSchemaUrl() : string

Generated from protobuf field string schema_url = 3;

Return values
string

setInstrumentationLibrary()

The instrumentation library information for the logs in this message.

public setInstrumentationLibrary(InstrumentationLibrary $var) : $this

Semantically when InstrumentationLibrary isn't set, it is equivalent with an empty instrumentation library name (unknown).

Generated from protobuf field .opentelemetry.proto.common.v1.InstrumentationLibrary instrumentation_library = 1;

Parameters
$var : InstrumentationLibrary
Return values
$this

setLogRecords()

A list of logs that originate from an instrumentation library.

public setLogRecords(array<string|int, LogRecord>|RepeatedField $var) : $this

Generated from protobuf field repeated .opentelemetry.proto.logs.v1.LogRecord log_records = 2;

Parameters
$var : array<string|int, LogRecord>|RepeatedField
Return values
$this

setSchemaUrl()

This schema_url applies to all logs in the "logs" field.

public setSchemaUrl(string $var) : $this

Generated from protobuf field string schema_url = 3;

Parameters
$var : string
Return values
$this

        
On this page

Search results