Description
Attributes are searchable Name-Value-Pairs with a Type and an optional Unit
- where currently supported Types for the Values are
string and string[]
boolean and boolean[]
integer and integer[] (64-bit signed integral number)
double and double[] (64-bit floating-point number)
- where the optional Units must be supported by Relay
- may be removed or set to
none otherwise
Precedence of Attributes on Logs and Metrics - higher priorities overwrite lower priorities:
- Default Attributes
- Scope Attributes
- SDK-APIs
- Attributes passed via
SentrySdk.Logger.Log{SentryLogLevel} methods
- Attributes passed via
SentrySdk.Experimental.Metrics.Emit{SentryMetricType} methods
- Option-APIs
- Attributes set via
SentryOptions.SetBeforeSendLog(Func<SentryLog, SentryLog?>)
- Attributes set via
SentryOptions.SetBeforeSendMetric<T>(Func<SentryMetric<T>, SentryMetric<T>?>)
Add Attributes APIs for
See related docs
In the longer term, this (may) act as a replacement / unification of Tags and Extras.
Description
Attributes are searchable Name-Value-Pairs with a Type and an optional Unit
stringandstring[]booleanandboolean[]integerandinteger[](64-bit signed integral number)doubleanddouble[](64-bit floating-point number)noneotherwisePrecedence of Attributes on Logs and Metrics - higher priorities overwrite lower priorities:
SentrySdk.Logger.Log{SentryLogLevel}methodsSentrySdk.Experimental.Metrics.Emit{SentryMetricType}methodsSentryOptions.SetBeforeSendLog(Func<SentryLog, SentryLog?>)SentryOptions.SetBeforeSendMetric<T>(Func<SentryMetric<T>, SentryMetric<T>?>)Add
AttributesAPIs forSee related docs
In the longer term, this (may) act as a replacement / unification of Tags and Extras.