1 // Copyright The OpenTelemetry Authors
2 // SPDX-License-Identifier: Apache-2.0
9 #include "opentelemetry/version.h"
11 using std::chrono::microseconds
;
12 using std::chrono::milliseconds
;
13 using std::chrono::nanoseconds
;
14 using std::chrono::seconds
;
16 OPENTELEMETRY_BEGIN_NAMESPACE
22 * kLatencyBoundaries is a constant array that contains the 9 latency
23 * boundaries. Each value in the array represents the lower limit(inclusive) of
24 * the boundary(in nano seconds) and the upper limit(exclusive) of the boundary
25 * is the lower limit of the next one. The upper limit of the last boundary is
28 const std::array
<nanoseconds
, 9> kLatencyBoundaries
= {
30 nanoseconds(microseconds(10)),
31 nanoseconds(microseconds(100)),
32 nanoseconds(milliseconds(1)),
33 nanoseconds(milliseconds(10)),
34 nanoseconds(milliseconds(100)),
35 nanoseconds(seconds(1)),
36 nanoseconds(seconds(10)),
37 nanoseconds(seconds(100)),
41 * LatencyBoundary enum is used to index into the kLatencyBoundaries container.
42 * Using this enum lets you access the latency boundary at each index without
60 OPENTELEMETRY_END_NAMESPACE