ILatencyContext.AddMeasure(MeasureToken, Int64) 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 to a measure.
public:
void AddMeasure(Microsoft::Extensions::Diagnostics::Latency::MeasureToken token, long value);
public void AddMeasure (Microsoft.Extensions.Diagnostics.Latency.MeasureToken token, long value);
abstract member AddMeasure : Microsoft.Extensions.Diagnostics.Latency.MeasureToken * int64 -> unit
Public Sub AddMeasure (token As MeasureToken, value As Long)
Parameters
- token
- MeasureToken
The measure token.
- value
- Int64
The value to add.
Remarks
Adds the value to a measure. Measures are used for tracking total latency or the count for repeating operations. Example: Latency for all database calls, or number of calls to an external service.
Applies to
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.