LogRecordFlags
in package
LogRecordFlags represents constants used to interpret the LogRecord.flags field, which is protobuf 'fixed32' type and is to be used as bit-fields. Each non-zero value defined in this enum is a bit-mask. To extract the bit-field, for example, use an expression like: (logRecord.flags & LOG_RECORD_FLAGS_TRACE_FLAGS_MASK)
Protobuf type opentelemetry.proto.logs.v1.LogRecordFlags
Table of Contents
Constants
- LOG_RECORD_FLAGS_DO_NOT_USE = 0
- The zero value for the enum. Should not be used for comparisons.
- LOG_RECORD_FLAGS_TRACE_FLAGS_MASK = 255
- Bits 0-7 are used for trace flags.
Properties
- $valueToName : mixed
Methods
Constants
LOG_RECORD_FLAGS_DO_NOT_USE
The zero value for the enum. Should not be used for comparisons.
public
mixed
LOG_RECORD_FLAGS_DO_NOT_USE
= 0
Instead use bitwise "and" with the appropriate mask as shown above.
Generated from protobuf enum LOG_RECORD_FLAGS_DO_NOT_USE = 0;
LOG_RECORD_FLAGS_TRACE_FLAGS_MASK
Bits 0-7 are used for trace flags.
public
mixed
LOG_RECORD_FLAGS_TRACE_FLAGS_MASK
= 255
Generated from protobuf enum LOG_RECORD_FLAGS_TRACE_FLAGS_MASK = 255;
Properties
$valueToName
private
static mixed
$valueToName
= [self::LOG_RECORD_FLAGS_DO_NOT_USE => 'LOG_RECORD_FLAGS_DO_NOT_USE', self::LOG_RECORD_FLAGS_TRACE_FLAGS_MASK => 'LOG_RECORD_FLAGS_TRACE_FLAGS_MASK']
Methods
name()
public
static name(mixed $value) : mixed
Parameters
- $value : mixed
value()
public
static value(mixed $name) : mixed
Parameters
- $name : mixed