OpenTelemetry PHP

ScopeLogs extends Message
in package

A collection of Logs produced by a Scope.

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

Table of Contents

Properties

$schema_url  : mixed
The Schema URL, if known. This is the identifier of the Schema that the log data is recorded in. To learn more about Schema URL see https://opentelemetry.io/docs/specs/otel/schemas/#schema-url This schema_url applies to all logs in the "logs" field.
$scope  : mixed
The instrumentation scope information for the logs in this message.
$log_records  : mixed
A list of log records.

Methods

__construct()  : mixed
Constructor.
clearScope()  : mixed
getLogRecords()  : RepeatedField
A list of log records.
getSchemaUrl()  : string
The Schema URL, if known. This is the identifier of the Schema that the log data is recorded in. To learn more about Schema URL see https://opentelemetry.io/docs/specs/otel/schemas/#schema-url This schema_url applies to all logs in the "logs" field.
getScope()  : InstrumentationScope|null
The instrumentation scope information for the logs in this message.
hasScope()  : mixed
setLogRecords()  : $this
A list of log records.
setSchemaUrl()  : $this
The Schema URL, if known. This is the identifier of the Schema that the log data is recorded in. To learn more about Schema URL see https://opentelemetry.io/docs/specs/otel/schemas/#schema-url This schema_url applies to all logs in the "logs" field.
setScope()  : $this
The instrumentation scope information for the logs in this message.

Properties

$schema_url

The Schema URL, if known. This is the identifier of the Schema that the log data is recorded in. To learn more about Schema URL see https://opentelemetry.io/docs/specs/otel/schemas/#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;

$scope

The instrumentation scope information for the logs in this message.

protected mixed $scope = null

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

Generated from protobuf field .opentelemetry.proto.common.v1.InstrumentationScope scope = 1;

$log_records

A list of log records.

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\InstrumentationScope $scope
      The instrumentation scope information for the logs in this message.
      Semantically when InstrumentationScope isn't set, it is equivalent with
      an empty instrumentation scope name (unknown).
@type \Opentelemetry\Proto\Logs\V1\LogRecord[]|\Google\Protobuf\Internal\RepeatedField $log_records
      A list of log records.
@type string $schema_url
      The Schema URL, if known. This is the identifier of the Schema that the log data
      is recorded in. To learn more about Schema URL see
      https://opentelemetry.io/docs/specs/otel/schemas/#schema-url
      This schema_url applies to all logs in the "logs" field.

}

getLogRecords()

A list of log records.

public getLogRecords() : RepeatedField

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

Return values
RepeatedField

getSchemaUrl()

The Schema URL, if known. This is the identifier of the Schema that the log data is recorded in. To learn more about Schema URL see https://opentelemetry.io/docs/specs/otel/schemas/#schema-url 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

getScope()

The instrumentation scope information for the logs in this message.

public getScope() : InstrumentationScope|null

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

Generated from protobuf field .opentelemetry.proto.common.v1.InstrumentationScope scope = 1;

Return values
InstrumentationScope|null

setLogRecords()

A list of log records.

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()

The Schema URL, if known. This is the identifier of the Schema that the log data is recorded in. To learn more about Schema URL see https://opentelemetry.io/docs/specs/otel/schemas/#schema-url 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

setScope()

The instrumentation scope information for the logs in this message.

public setScope(InstrumentationScope $var) : $this

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

Generated from protobuf field .opentelemetry.proto.common.v1.InstrumentationScope scope = 1;

Parameters
$var : InstrumentationScope
Return values
$this

        
On this page

Search results