Class LogAttributeNames
Defines attributes names used when emitting log records.
Namespace: Neon.Diagnostics
Assembly: Neon.Common.dll
Syntax
public class LogAttributeNames
Fields
CategoryName
Identifies the MSFT logger implementation's attribute that holds the category name.
Declaration
public const string CategoryName = "dotnet.ilogger.category"
Field Value
Type | Description |
---|---|
string |
Exception
Identifies a related exception.
Declaration
public const string Exception = "exception"
Field Value
Type | Description |
---|---|
string |
InternalBody
Identifies our internal message body.
Declaration
public const string InternalBody = "{Body}"
Field Value
Type | Description |
---|---|
string |
InternalOriginalFormat
Identifies the MSFT logger implementation's attribute that holds the message format string.
Declaration
public const string InternalOriginalFormat = "{OriginalFormat}"
Field Value
Type | Description |
---|---|
string |
Labels
Identifies the event labels (also know as tags or attributes).
Declaration
public const string Labels = "labels"
Field Value
Type | Description |
---|---|
string |
NeonIndex
Indicates the position of the log event in the stream of logs emitted by the application. The first event emitted by the application will have a zero index, and then this is incremented after every logged event.
This attribute is useful for listing events in the order they were actually logged. Timestamps often don't have enough resolution to distinguish between to events logged logged very quickly in sequence.
Declaration
public const string NeonIndex = "neon.index"
Field Value
Type | Description |
---|---|
string |
NeonTransient
bool: Indicates that the log event is related to a transient error.
Declaration
public const string NeonTransient = "neon.transient"
Field Value
Type | Description |
---|---|
string |
Resources
Identifies resources related to the event.
Declaration
public const string Resources = "resources"
Field Value
Type | Description |
---|---|
string |
Severity
Identifies the event severity by OpenTelemetry secerity name.
Declaration
public const string Severity = "severity"
Field Value
Type | Description |
---|---|
string |
SeverityNumber
Identifies the event severity by OpenTelemetry severity number.
Declaration
public const string SeverityNumber = "severityNumber"
Field Value
Type | Description |
---|---|
string |
SpanId
Identifies the current span.
Declaration
public const string SpanId = "spanid"
Field Value
Type | Description |
---|---|
string |
TraceId
Identifies the current trace.
Declaration
public const string TraceId = "traceid"
Field Value
Type | Description |
---|---|
string |
TsNs
Identifies the event timetamp formatted as Unix Epoc nanoseconds.
Declaration
public const string TsNs = "tsNs"
Field Value
Type | Description |
---|---|
string |