OpenTelemetry PHP

InstrumentationLibrary extends Message
in package

InstrumentationLibrary is a message representing the instrumentation library information such as the fully qualified name and version.

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

Generated from protobuf message opentelemetry.proto.common.v1.InstrumentationLibrary

Table of Contents

Properties

$name  : mixed
An empty instrumentation library name means the name is unknown.
$version  : mixed
Generated from protobuf field <code>string version = 2;</code>

Methods

__construct()  : mixed
Constructor.
getName()  : string
An empty instrumentation library name means the name is unknown.
getVersion()  : string
Generated from protobuf field <code>string version = 2;</code>
setName()  : $this
An empty instrumentation library name means the name is unknown.
setVersion()  : $this
Generated from protobuf field <code>string version = 2;</code>

Properties

$name

An empty instrumentation library name means the name is unknown.

protected mixed $name = ''

Generated from protobuf field string name = 1;

$version

Generated from protobuf field <code>string version = 2;</code>

protected mixed $version = ''

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 string $name
      An empty instrumentation library name means the name is unknown.
@type string $version

}

getName()

An empty instrumentation library name means the name is unknown.

public getName() : string

Generated from protobuf field string name = 1;

Return values
string

getVersion()

Generated from protobuf field <code>string version = 2;</code>

public getVersion() : string
Return values
string

setName()

An empty instrumentation library name means the name is unknown.

public setName(string $var) : $this

Generated from protobuf field string name = 1;

Parameters
$var : string
Return values
$this

setVersion()

Generated from protobuf field <code>string version = 2;</code>

public setVersion(string $var) : $this
Parameters
$var : string
Return values
$this

        
On this page

Search results