-
Notifications
You must be signed in to change notification settings - Fork 763
/
MetricType.cs
75 lines (64 loc) · 1.63 KB
/
MetricType.cs
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0
namespace OpenTelemetry.Metrics;
/// <summary>
/// Enumeration used to define the type of a <see cref="Metric"/>.
/// </summary>
[Flags]
public enum MetricType : byte
{
/*
Type:
0x10: Sum
0x20: Gauge
0x30: Summary (reserved)
0x40: Histogram
0x50: ExponentialHistogram
0x60: (unused)
0x70: (unused)
0x80: SumNonMonotonic
Point kind:
0x04: I1 (signed 1-byte integer)
0x05: U1 (unsigned 1-byte integer)
0x06: I2 (signed 2-byte integer)
0x07: U2 (unsigned 2-byte integer)
0x08: I4 (signed 4-byte integer)
0x09: U4 (unsigned 4-byte integer)
0x0a: I8 (signed 8-byte integer)
0x0b: U8 (unsigned 8-byte integer)
0x0c: R4 (4-byte floating point)
0x0d: R8 (8-byte floating point)
*/
/// <summary>
/// Sum of Long type.
/// </summary>
LongSum = 0x1a,
/// <summary>
/// Sum of Double type.
/// </summary>
DoubleSum = 0x1d,
/// <summary>
/// Gauge of Long type.
/// </summary>
LongGauge = 0x2a,
/// <summary>
/// Gauge of Double type.
/// </summary>
DoubleGauge = 0x2d,
/// <summary>
/// Histogram.
/// </summary>
Histogram = 0x40,
/// <summary>
/// Exponential Histogram.
/// </summary>
ExponentialHistogram = 0x50,
/// <summary>
/// Non-monotonic Sum of Long type.
/// </summary>
LongSumNonMonotonic = 0x8a,
/// <summary>
/// Non-monotonic Sum of Double type.
/// </summary>
DoubleSumNonMonotonic = 0x8d,
}