-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMetricNames.cs
More file actions
45 lines (43 loc) · 1.78 KB
/
MetricNames.cs
File metadata and controls
45 lines (43 loc) · 1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
namespace DynamoDb.DistributedLock.Metrics;
/// <summary>
/// Names of metrics that are published by DynamoDb.DistributedLock
/// </summary>
public static class MetricNames
{
/// <summary>
/// Name of the Meter used for publishing metrics.
/// </summary>
public const string MeterName = "DynamoDb.DistributedLock";
/// <summary>
/// A lock is successfully released.
/// </summary>
public const string LockRelease = "dynamodb.distributedlock.lock_release";
/// <summary>
/// A lock release operation failed.
/// </summary>
public const string LockReleaseFailed = "dynamodb.distributedlock.lock_release.failed";
/// <summary>
/// A lock is successfully acquired.
/// </summary>
public const string LockAcquire = "dynamodb.distributedlock.lock_acquire";
/// <summary>
/// A lock acquisition operation failed.
/// </summary>
public const string LockAcquireFailed = "dynamodb.distributedlock.lock_acquire.failed";
/// <summary>
/// Retries where attempted, but the maximum number of retries was reached without success.
/// </summary>
public const string RetriesExhausted = "dynamodb.distributedlock.retries_exhausted";
/// <summary>
/// A lock acquisition retry was attempted after a failure. When retrying an operation, the first attempt is not counted.
/// </summary>
public const string RetryAttempt = "dynamodb.distributedlock.retry_attempt";
/// <summary>
/// Measures the time taken to acquire a lock.
/// </summary>
public const string LockAcquireTimer = "dynamodb.distributedlock.lock_acquire.timer";
/// <summary>
/// Measures the time taken to release a lock.
/// </summary>
public const string LockReleaseTimer = "dynamodb.distributedlock.lock_release.timer";
}