ILatencyContext.SetTag(TagToken, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds a tag to the context.
public:
void SetTag(Microsoft::Extensions::Diagnostics::Latency::TagToken token, System::String ^ value);
public void SetTag (Microsoft.Extensions.Diagnostics.Latency.TagToken token, string value);
abstract member SetTag : Microsoft.Extensions.Diagnostics.Latency.TagToken * string -> unit
Public Sub SetTag (token As TagToken, value As String)
Parameters
- token
- TagToken
The tag token.
- value
- String
The value of the tag.
Exceptions
value
is null
.
Remarks
Tags are used to provide metadata to the context. These are pivots that are useful to slice and dice the data for analysis. Examples include API, Client, and UserType. Setting a tag with the same name overrides its prior value, that is, the last call wins.
Applies to
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.