You've already forked opentelemetry-go
mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2026-06-03 18:35:08 +02:00
fix(semconv): clear pooled slices to enable GC (#8352)
Fixes #8320 Credits to ash2k
This commit is contained in:
@@ -129,6 +129,7 @@ func (m CosmosDBClientActiveInstanceCount) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -155,6 +156,7 @@ func (m CosmosDBClientActiveInstanceCount) AddSet(ctx context.Context, incr int6
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -332,6 +334,7 @@ func (m CosmosDBClientOperationRequestCharge) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -361,6 +364,7 @@ func (m CosmosDBClientOperationRequestCharge) RecordSet(ctx context.Context, val
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
|
||||
@@ -175,6 +175,7 @@ func (m PipelineRunActive) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -205,6 +206,7 @@ func (m PipelineRunActive) AddSet(ctx context.Context, incr int64, set attribute
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -360,6 +362,7 @@ func (m PipelineRunDuration) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -390,6 +393,7 @@ func (m PipelineRunDuration) RecordSet(ctx context.Context, val float64, set att
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -501,6 +505,7 @@ func (m PipelineRunErrors) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -536,6 +541,7 @@ func (m PipelineRunErrors) AddSet(ctx context.Context, incr int64, set attribute
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -690,6 +696,7 @@ func (m SystemErrors) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -723,6 +730,7 @@ func (m SystemErrors) AddSet(ctx context.Context, incr int64, set attribute.Set)
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -869,6 +877,7 @@ func (m WorkerCount) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -898,6 +907,7 @@ func (m WorkerCount) AddSet(ctx context.Context, incr int64, set attribute.Set)
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
|
||||
@@ -163,6 +163,7 @@ func (m CPUTime) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -191,6 +192,7 @@ func (m CPUTime) AddSet(ctx context.Context, incr float64, set attribute.Set) {
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -352,6 +354,7 @@ func (m CPUUsage) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -381,6 +384,7 @@ func (m CPUUsage) RecordSet(ctx context.Context, val int64, set attribute.Set) {
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -542,6 +546,7 @@ func (m DiskIO) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -571,6 +576,7 @@ func (m DiskIO) AddSet(ctx context.Context, incr int64, set attribute.Set) {
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -739,6 +745,7 @@ func (m FilesystemAvailable) Add(ctx context.Context, incr int64, attrs ...attri
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -767,6 +774,7 @@ func (m FilesystemAvailable) AddSet(ctx context.Context, incr int64, set attribu
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -912,6 +920,7 @@ func (m FilesystemCapacity) Add(ctx context.Context, incr int64, attrs ...attrib
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -940,6 +949,7 @@ func (m FilesystemCapacity) AddSet(ctx context.Context, incr int64, set attribut
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1087,6 +1097,7 @@ func (m FilesystemUsage) Add(ctx context.Context, incr int64, attrs ...attribute
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1117,6 +1128,7 @@ func (m FilesystemUsage) AddSet(ctx context.Context, incr int64, set attribute.S
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1266,6 +1278,7 @@ func (m MemoryAvailable) Add(ctx context.Context, incr int64, attrs ...attribute
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1298,6 +1311,7 @@ func (m MemoryAvailable) AddSet(ctx context.Context, incr int64, set attribute.S
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1454,6 +1468,7 @@ func (m MemoryPagingFaults) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1493,6 +1508,7 @@ func (m MemoryPagingFaults) AddSet(ctx context.Context, incr int64, set attribut
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1653,6 +1669,7 @@ func (m MemoryRss) Add(ctx context.Context, incr int64, attrs ...attribute.KeyVa
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1682,6 +1699,7 @@ func (m MemoryRss) AddSet(ctx context.Context, incr int64, set attribute.Set) {
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1820,6 +1838,7 @@ func (m MemoryUsage) Add(ctx context.Context, incr int64, attrs ...attribute.Key
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1842,6 +1861,7 @@ func (m MemoryUsage) AddSet(ctx context.Context, incr int64, set attribute.Set)
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1987,6 +2007,7 @@ func (m MemoryWorkingSet) Add(ctx context.Context, incr int64, attrs ...attribut
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -2016,6 +2037,7 @@ func (m MemoryWorkingSet) AddSet(ctx context.Context, incr int64, set attribute.
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -2161,6 +2183,7 @@ func (m NetworkIO) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -2189,6 +2212,7 @@ func (m NetworkIO) AddSet(ctx context.Context, incr int64, set attribute.Set) {
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -2357,6 +2381,7 @@ func (m Uptime) Record(ctx context.Context, val float64, attrs ...attribute.KeyV
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -2381,6 +2406,7 @@ func (m Uptime) RecordSet(ctx context.Context, val float64, set attribute.Set) {
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
|
||||
@@ -306,6 +306,7 @@ func (m ClientConnectionCount) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -336,6 +337,7 @@ func (m ClientConnectionCount) AddSet(ctx context.Context, incr int64, set attri
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -490,6 +492,7 @@ func (m ClientConnectionCreateTime) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -519,6 +522,7 @@ func (m ClientConnectionCreateTime) RecordSet(ctx context.Context, val float64,
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -612,6 +616,7 @@ func (m ClientConnectionIdleMax) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -641,6 +646,7 @@ func (m ClientConnectionIdleMax) AddSet(ctx context.Context, incr int64, set att
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -793,6 +799,7 @@ func (m ClientConnectionIdleMin) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -822,6 +829,7 @@ func (m ClientConnectionIdleMin) AddSet(ctx context.Context, incr int64, set att
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -974,6 +982,7 @@ func (m ClientConnectionMax) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1003,6 +1012,7 @@ func (m ClientConnectionMax) AddSet(ctx context.Context, incr int64, set attribu
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1157,6 +1167,7 @@ func (m ClientConnectionPendingRequests) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1186,6 +1197,7 @@ func (m ClientConnectionPendingRequests) AddSet(ctx context.Context, incr int64,
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1340,6 +1352,7 @@ func (m ClientConnectionTimeouts) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1369,6 +1382,7 @@ func (m ClientConnectionTimeouts) AddSet(ctx context.Context, incr int64, set at
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1523,6 +1537,7 @@ func (m ClientConnectionUseTime) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -1552,6 +1567,7 @@ func (m ClientConnectionUseTime) RecordSet(ctx context.Context, val float64, set
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -1645,6 +1661,7 @@ func (m ClientConnectionWaitTime) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -1674,6 +1691,7 @@ func (m ClientConnectionWaitTime) RecordSet(ctx context.Context, val float64, se
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -1766,6 +1784,7 @@ func (m ClientOperationDuration) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -1797,6 +1816,7 @@ func (m ClientOperationDuration) RecordSet(ctx context.Context, val float64, set
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -1969,6 +1989,7 @@ func (m ClientResponseReturnedRows) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -1998,6 +2019,7 @@ func (m ClientResponseReturnedRows) RecordSet(ctx context.Context, val int64, se
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
|
||||
@@ -112,6 +112,7 @@ func (m LookupDuration) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -141,6 +142,7 @@ func (m LookupDuration) RecordSet(ctx context.Context, val float64, set attribut
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
|
||||
@@ -117,6 +117,7 @@ func (m Coldstarts) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -143,6 +144,7 @@ func (m Coldstarts) AddSet(ctx context.Context, incr int64, set attribute.Set) {
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -299,6 +301,7 @@ func (m CPUUsage) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -325,6 +328,7 @@ func (m CPUUsage) RecordSet(ctx context.Context, val float64, set attribute.Set)
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -416,6 +420,7 @@ func (m Errors) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -442,6 +447,7 @@ func (m Errors) AddSet(ctx context.Context, incr int64, set attribute.Set) {
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -598,6 +604,7 @@ func (m InitDuration) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -624,6 +631,7 @@ func (m InitDuration) RecordSet(ctx context.Context, val float64, set attribute.
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -715,6 +723,7 @@ func (m Invocations) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -741,6 +750,7 @@ func (m Invocations) AddSet(ctx context.Context, incr int64, set attribute.Set)
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -897,6 +907,7 @@ func (m InvokeDuration) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -923,6 +934,7 @@ func (m InvokeDuration) RecordSet(ctx context.Context, val float64, set attribut
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -1014,6 +1026,7 @@ func (m MemUsage) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -1040,6 +1053,7 @@ func (m MemUsage) RecordSet(ctx context.Context, val int64, set attribute.Set) {
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -1131,6 +1145,7 @@ func (m NetIO) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -1157,6 +1172,7 @@ func (m NetIO) RecordSet(ctx context.Context, val int64, set attribute.Set) {
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -1248,6 +1264,7 @@ func (m Timeouts) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1274,6 +1291,7 @@ func (m Timeouts) AddSet(ctx context.Context, incr int64, set attribute.Set) {
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
|
||||
@@ -233,6 +233,7 @@ func (m ClientOperationDuration) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -263,6 +264,7 @@ func (m ClientOperationDuration) RecordSet(ctx context.Context, val float64, set
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -396,6 +398,7 @@ func (m ClientOperationTimePerOutputChunk) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -429,6 +432,7 @@ func (m ClientOperationTimePerOutputChunk) RecordSet(ctx context.Context, val fl
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -555,6 +559,7 @@ func (m ClientOperationTimeToFirstChunk) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -588,6 +593,7 @@ func (m ClientOperationTimeToFirstChunk) RecordSet(ctx context.Context, val floa
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -712,6 +718,7 @@ func (m ClientTokenUsage) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -743,6 +750,7 @@ func (m ClientTokenUsage) RecordSet(ctx context.Context, val int64, set attribut
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -864,6 +872,7 @@ func (m ServerRequestDuration) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -894,6 +903,7 @@ func (m ServerRequestDuration) RecordSet(ctx context.Context, val float64, set a
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -1022,6 +1032,7 @@ func (m ServerTimePerOutputToken) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -1052,6 +1063,7 @@ func (m ServerTimePerOutputToken) RecordSet(ctx context.Context, val float64, se
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -1172,6 +1184,7 @@ func (m ServerTimeToFirstToken) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -1202,6 +1215,7 @@ func (m ServerTimeToFirstToken) RecordSet(ctx context.Context, val float64, set
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
|
||||
@@ -194,6 +194,7 @@ func (m CPUTime) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -227,6 +228,7 @@ func (m CPUTime) AddSet(ctx context.Context, incr float64, set attribute.Set) {
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -553,6 +555,7 @@ func (m MemoryGCCycles) Add(ctx context.Context, incr int64, attrs ...attribute.
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -575,6 +578,7 @@ func (m MemoryGCCycles) AddSet(ctx context.Context, incr int64, set attribute.Se
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -773,6 +777,7 @@ func (m MemoryGCPauseDuration) Record(ctx context.Context, val float64, attrs ..
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -796,6 +801,7 @@ func (m MemoryGCPauseDuration) RecordSet(ctx context.Context, val float64, set a
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -1065,6 +1071,7 @@ func (m ScheduleDuration) Record(ctx context.Context, val float64, attrs ...attr
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -1088,6 +1095,7 @@ func (m ScheduleDuration) RecordSet(ctx context.Context, val float64, set attrib
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
|
||||
@@ -172,6 +172,7 @@ func (m ClientActiveRequests) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -202,6 +203,7 @@ func (m ClientActiveRequests) AddSet(ctx context.Context, incr int64, set attrib
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -404,6 +406,7 @@ func (m ClientConnectionDuration) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -434,6 +437,7 @@ func (m ClientConnectionDuration) RecordSet(ctx context.Context, val float64, se
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -557,6 +561,7 @@ func (m ClientOpenConnections) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -588,6 +593,7 @@ func (m ClientOpenConnections) AddSet(ctx context.Context, incr int64, set attri
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -799,6 +805,7 @@ func (m ClientRequestBodySize) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -837,6 +844,7 @@ func (m ClientRequestBodySize) RecordSet(ctx context.Context, val int64, set att
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -986,6 +994,7 @@ func (m ClientRequestDuration) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -1017,6 +1026,7 @@ func (m ClientRequestDuration) RecordSet(ctx context.Context, val float64, set a
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -1172,6 +1182,7 @@ func (m ClientResponseBodySize) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -1210,6 +1221,7 @@ func (m ClientResponseBodySize) RecordSet(ctx context.Context, val int64, set at
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -1355,6 +1367,7 @@ func (m ServerActiveRequests) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1385,6 +1398,7 @@ func (m ServerActiveRequests) AddSet(ctx context.Context, incr int64, set attrib
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1574,6 +1588,7 @@ func (m ServerRequestBodySize) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -1611,6 +1626,7 @@ func (m ServerRequestBodySize) RecordSet(ctx context.Context, val int64, set att
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -1768,6 +1784,7 @@ func (m ServerRequestDuration) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -1798,6 +1815,7 @@ func (m ServerRequestDuration) RecordSet(ctx context.Context, val float64, set a
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -1961,6 +1979,7 @@ func (m ServerResponseBodySize) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -1998,6 +2017,7 @@ func (m ServerResponseBodySize) RecordSet(ctx context.Context, val int64, set at
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
|
||||
@@ -267,6 +267,7 @@ func (m BatteryCharge) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -296,6 +297,7 @@ func (m BatteryCharge) RecordSet(ctx context.Context, val int64, set attribute.S
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -528,6 +530,7 @@ func (m BatteryChargeLimit) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -557,6 +560,7 @@ func (m BatteryChargeLimit) RecordSet(ctx context.Context, val int64, set attrib
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -815,6 +819,7 @@ func (m BatteryTimeLeft) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -845,6 +850,7 @@ func (m BatteryTimeLeft) RecordSet(ctx context.Context, val float64, set attribu
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -1089,6 +1095,7 @@ func (m CPUSpeed) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -1118,6 +1125,7 @@ func (m CPUSpeed) RecordSet(ctx context.Context, val int64, set attribute.Set) {
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -1318,6 +1326,7 @@ func (m CPUSpeedLimit) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -1347,6 +1356,7 @@ func (m CPUSpeedLimit) RecordSet(ctx context.Context, val int64, set attribute.S
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -1563,6 +1573,7 @@ func (m Energy) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1593,6 +1604,7 @@ func (m Energy) AddSet(ctx context.Context, incr int64, set attribute.Set) {
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1771,6 +1783,7 @@ func (m Errors) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1801,6 +1814,7 @@ func (m Errors) AddSet(ctx context.Context, incr int64, set attribute.Set) {
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -2001,6 +2015,7 @@ func (m FanSpeed) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -2030,6 +2045,7 @@ func (m FanSpeed) RecordSet(ctx context.Context, val int64, set attribute.Set) {
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -2216,6 +2232,7 @@ func (m FanSpeedLimit) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -2245,6 +2262,7 @@ func (m FanSpeedLimit) RecordSet(ctx context.Context, val int64, set attribute.S
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -2443,6 +2461,7 @@ func (m FanSpeedRatio) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -2472,6 +2491,7 @@ func (m FanSpeedRatio) RecordSet(ctx context.Context, val int64, set attribute.S
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -2662,6 +2682,7 @@ func (m GpuIO) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -2692,6 +2713,7 @@ func (m GpuIO) AddSet(ctx context.Context, incr int64, set attribute.Set) {
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -2934,6 +2956,7 @@ func (m GpuMemoryLimit) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -2963,6 +2986,7 @@ func (m GpuMemoryLimit) AddSet(ctx context.Context, incr int64, set attribute.Se
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -3204,6 +3228,7 @@ func (m GpuMemoryUsage) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -3233,6 +3258,7 @@ func (m GpuMemoryUsage) AddSet(ctx context.Context, incr int64, set attribute.Se
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -3475,6 +3501,7 @@ func (m GpuMemoryUtilization) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -3504,6 +3531,7 @@ func (m GpuMemoryUtilization) RecordSet(ctx context.Context, val int64, set attr
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -3747,6 +3775,7 @@ func (m GpuUtilization) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -3776,6 +3805,7 @@ func (m GpuUtilization) RecordSet(ctx context.Context, val int64, set attribute.
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -4030,6 +4060,7 @@ func (m HostAmbientTemperature) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -4059,6 +4090,7 @@ func (m HostAmbientTemperature) RecordSet(ctx context.Context, val int64, set at
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -4239,6 +4271,7 @@ func (m HostEnergy) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -4273,6 +4306,7 @@ func (m HostEnergy) AddSet(ctx context.Context, incr int64, set attribute.Set) {
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -4448,6 +4482,7 @@ func (m HostHeatingMargin) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -4477,6 +4512,7 @@ func (m HostHeatingMargin) RecordSet(ctx context.Context, val int64, set attribu
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -4658,6 +4694,7 @@ func (m HostPower) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -4692,6 +4729,7 @@ func (m HostPower) RecordSet(ctx context.Context, val int64, set attribute.Set)
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -4867,6 +4905,7 @@ func (m LogicalDiskLimit) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -4896,6 +4935,7 @@ func (m LogicalDiskLimit) AddSet(ctx context.Context, incr int64, set attribute.
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -5089,6 +5129,7 @@ func (m LogicalDiskUsage) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -5119,6 +5160,7 @@ func (m LogicalDiskUsage) AddSet(ctx context.Context, incr int64, set attribute.
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -5312,6 +5354,7 @@ func (m LogicalDiskUtilization) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -5342,6 +5385,7 @@ func (m LogicalDiskUtilization) RecordSet(ctx context.Context, val int64, set at
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -5531,6 +5575,7 @@ func (m MemorySize) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -5560,6 +5605,7 @@ func (m MemorySize) AddSet(ctx context.Context, incr int64, set attribute.Set) {
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -5786,6 +5832,7 @@ func (m NetworkBandwidthLimit) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -5815,6 +5862,7 @@ func (m NetworkBandwidthLimit) AddSet(ctx context.Context, incr int64, set attri
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -6059,6 +6107,7 @@ func (m NetworkBandwidthUtilization) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -6088,6 +6137,7 @@ func (m NetworkBandwidthUtilization) RecordSet(ctx context.Context, val int64, s
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -6336,6 +6386,7 @@ func (m NetworkIO) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -6366,6 +6417,7 @@ func (m NetworkIO) AddSet(ctx context.Context, incr int64, set attribute.Set) {
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -6612,6 +6664,7 @@ func (m NetworkPackets) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -6642,6 +6695,7 @@ func (m NetworkPackets) AddSet(ctx context.Context, incr int64, set attribute.Se
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -6884,6 +6938,7 @@ func (m NetworkUp) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -6913,6 +6968,7 @@ func (m NetworkUp) AddSet(ctx context.Context, incr int64, set attribute.Set) {
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -7160,6 +7216,7 @@ func (m PhysicalDiskEnduranceUtilization) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -7190,6 +7247,7 @@ func (m PhysicalDiskEnduranceUtilization) RecordSet(ctx context.Context, val int
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -7433,6 +7491,7 @@ func (m PhysicalDiskSize) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -7462,6 +7521,7 @@ func (m PhysicalDiskSize) AddSet(ctx context.Context, incr int64, set attribute.
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -7708,6 +7768,7 @@ func (m PhysicalDiskSmart) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -7737,6 +7798,7 @@ func (m PhysicalDiskSmart) RecordSet(ctx context.Context, val int64, set attribu
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -8009,6 +8071,7 @@ func (m Power) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -8041,6 +8104,7 @@ func (m Power) RecordSet(ctx context.Context, val int64, set attribute.Set) {
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -8215,6 +8279,7 @@ func (m PowerSupplyLimit) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -8244,6 +8309,7 @@ func (m PowerSupplyLimit) AddSet(ctx context.Context, incr int64, set attribute.
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -8471,6 +8537,7 @@ func (m PowerSupplyUsage) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -8500,6 +8567,7 @@ func (m PowerSupplyUsage) AddSet(ctx context.Context, incr int64, set attribute.
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -8716,6 +8784,7 @@ func (m PowerSupplyUtilization) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -8745,6 +8814,7 @@ func (m PowerSupplyUtilization) RecordSet(ctx context.Context, val int64, set at
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -8977,6 +9047,7 @@ func (m Status) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -9016,6 +9087,7 @@ func (m Status) AddSet(ctx context.Context, incr int64, set attribute.Set) {
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -9190,6 +9262,7 @@ func (m TapeDriveOperations) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -9219,6 +9292,7 @@ func (m TapeDriveOperations) AddSet(ctx context.Context, incr int64, set attribu
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -9448,6 +9522,7 @@ func (m Temperature) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -9477,6 +9552,7 @@ func (m Temperature) RecordSet(ctx context.Context, val int64, set attribute.Set
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -9663,6 +9739,7 @@ func (m TemperatureLimit) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -9692,6 +9769,7 @@ func (m TemperatureLimit) RecordSet(ctx context.Context, val int64, set attribut
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -9891,6 +9969,7 @@ func (m Voltage) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -9920,6 +9999,7 @@ func (m Voltage) RecordSet(ctx context.Context, val int64, set attribute.Set) {
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -10106,6 +10186,7 @@ func (m VoltageLimit) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -10135,6 +10216,7 @@ func (m VoltageLimit) RecordSet(ctx context.Context, val int64, set attribute.Se
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -10333,6 +10415,7 @@ func (m VoltageNominal) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -10362,6 +10445,7 @@ func (m VoltageNominal) RecordSet(ctx context.Context, val int64, set attribute.
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -242,6 +242,7 @@ func (m ClientOperationDuration) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -271,6 +272,7 @@ func (m ClientOperationDuration) RecordSet(ctx context.Context, val float64, set
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -448,6 +450,7 @@ func (m ClientSessionDuration) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -474,6 +477,7 @@ func (m ClientSessionDuration) RecordSet(ctx context.Context, val float64, set a
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -624,6 +628,7 @@ func (m ServerOperationDuration) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -653,6 +658,7 @@ func (m ServerOperationDuration) RecordSet(ctx context.Context, val float64, set
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -817,6 +823,7 @@ func (m ServerSessionDuration) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -843,6 +850,7 @@ func (m ServerSessionDuration) RecordSet(ctx context.Context, val float64, set a
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
|
||||
@@ -181,6 +181,7 @@ func (m ClientConsumedMessages) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -218,6 +219,7 @@ func (m ClientConsumedMessages) AddSet(ctx context.Context, incr int64, set attr
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -487,6 +489,7 @@ func (m ClientOperationDuration) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -520,6 +523,7 @@ func (m ClientOperationDuration) RecordSet(ctx context.Context, val float64, set
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -680,6 +684,7 @@ func (m ClientSentMessages) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -713,6 +718,7 @@ func (m ClientSentMessages) AddSet(ctx context.Context, incr int64, set attribut
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -953,6 +959,7 @@ func (m ProcessDuration) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -986,6 +993,7 @@ func (m ProcessDuration) RecordSet(ctx context.Context, val float64, set attribu
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
|
||||
@@ -145,6 +145,7 @@ func (m ClientNetCount) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -174,6 +175,7 @@ func (m ClientNetCount) AddSet(ctx context.Context, incr int64, set attribute.Se
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -335,6 +337,7 @@ func (m ClientNetTCPConnectionAccepted) Add(ctx context.Context, incr int64, att
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -357,6 +360,7 @@ func (m ClientNetTCPConnectionAccepted) AddSet(ctx context.Context, incr int64,
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -501,6 +505,7 @@ func (m ClientOperationCount) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -527,6 +532,7 @@ func (m ClientOperationCount) AddSet(ctx context.Context, incr int64, set attrib
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -694,6 +700,7 @@ func (m ClientProcedureCount) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -720,6 +727,7 @@ func (m ClientProcedureCount) AddSet(ctx context.Context, incr int64, set attrib
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -887,6 +895,7 @@ func (m ClientRPCAuthrefreshCount) Add(ctx context.Context, incr int64, attrs ..
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -909,6 +918,7 @@ func (m ClientRPCAuthrefreshCount) AddSet(ctx context.Context, incr int64, set a
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1050,6 +1060,7 @@ func (m ClientRPCCount) Add(ctx context.Context, incr int64, attrs ...attribute.
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1072,6 +1083,7 @@ func (m ClientRPCCount) AddSet(ctx context.Context, incr int64, set attribute.Se
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1211,6 +1223,7 @@ func (m ClientRPCRetransmitCount) Add(ctx context.Context, incr int64, attrs ...
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1233,6 +1246,7 @@ func (m ClientRPCRetransmitCount) AddSet(ctx context.Context, incr int64, set at
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1374,6 +1388,7 @@ func (m ServerFhStaleCount) Add(ctx context.Context, incr int64, attrs ...attrib
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1397,6 +1412,7 @@ func (m ServerFhStaleCount) AddSet(ctx context.Context, incr int64, set attribut
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1544,6 +1560,7 @@ func (m ServerIO) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1573,6 +1590,7 @@ func (m ServerIO) AddSet(ctx context.Context, incr int64, set attribute.Set) {
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1733,6 +1751,7 @@ func (m ServerNetCount) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1762,6 +1781,7 @@ func (m ServerNetCount) AddSet(ctx context.Context, incr int64, set attribute.Se
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1923,6 +1943,7 @@ func (m ServerNetTCPConnectionAccepted) Add(ctx context.Context, incr int64, att
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1945,6 +1966,7 @@ func (m ServerNetTCPConnectionAccepted) AddSet(ctx context.Context, incr int64,
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -2089,6 +2111,7 @@ func (m ServerOperationCount) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -2115,6 +2138,7 @@ func (m ServerOperationCount) AddSet(ctx context.Context, incr int64, set attrib
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -2282,6 +2306,7 @@ func (m ServerProcedureCount) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -2308,6 +2333,7 @@ func (m ServerProcedureCount) AddSet(ctx context.Context, incr int64, set attrib
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -2478,6 +2504,7 @@ func (m ServerRepcacheRequests) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -2504,6 +2531,7 @@ func (m ServerRepcacheRequests) AddSet(ctx context.Context, incr int64, set attr
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -2669,6 +2697,7 @@ func (m ServerRPCCount) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -2700,6 +2729,7 @@ func (m ServerRPCCount) AddSet(ctx context.Context, incr int64, set attribute.Se
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -2852,6 +2882,7 @@ func (m ServerThreadCount) Add(ctx context.Context, incr int64, attrs ...attribu
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -2874,6 +2905,7 @@ func (m ServerThreadCount) AddSet(ctx context.Context, incr int64, set attribute
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
|
||||
@@ -100,6 +100,7 @@ func (m ClusterquotaCPULimitHard) Add(ctx context.Context, incr int64, attrs ...
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -128,6 +129,7 @@ func (m ClusterquotaCPULimitHard) AddSet(ctx context.Context, incr int64, set at
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -275,6 +277,7 @@ func (m ClusterquotaCPULimitUsed) Add(ctx context.Context, incr int64, attrs ...
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -303,6 +306,7 @@ func (m ClusterquotaCPULimitUsed) AddSet(ctx context.Context, incr int64, set at
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -451,6 +455,7 @@ func (m ClusterquotaCPURequestHard) Add(ctx context.Context, incr int64, attrs .
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -479,6 +484,7 @@ func (m ClusterquotaCPURequestHard) AddSet(ctx context.Context, incr int64, set
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -627,6 +633,7 @@ func (m ClusterquotaCPURequestUsed) Add(ctx context.Context, incr int64, attrs .
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -655,6 +662,7 @@ func (m ClusterquotaCPURequestUsed) AddSet(ctx context.Context, incr int64, set
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -803,6 +811,7 @@ func (m ClusterquotaEphemeralStorageLimitHard) Add(ctx context.Context, incr int
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -831,6 +840,7 @@ func (m ClusterquotaEphemeralStorageLimitHard) AddSet(ctx context.Context, incr
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -979,6 +989,7 @@ func (m ClusterquotaEphemeralStorageLimitUsed) Add(ctx context.Context, incr int
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1007,6 +1018,7 @@ func (m ClusterquotaEphemeralStorageLimitUsed) AddSet(ctx context.Context, incr
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1156,6 +1168,7 @@ func (m ClusterquotaEphemeralStorageRequestHard) Add(ctx context.Context, incr i
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1184,6 +1197,7 @@ func (m ClusterquotaEphemeralStorageRequestHard) AddSet(ctx context.Context, inc
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1333,6 +1347,7 @@ func (m ClusterquotaEphemeralStorageRequestUsed) Add(ctx context.Context, incr i
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1361,6 +1376,7 @@ func (m ClusterquotaEphemeralStorageRequestUsed) AddSet(ctx context.Context, inc
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1519,6 +1535,7 @@ func (m ClusterquotaHugepageCountRequestHard) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1556,6 +1573,7 @@ func (m ClusterquotaHugepageCountRequestHard) AddSet(ctx context.Context, incr i
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1713,6 +1731,7 @@ func (m ClusterquotaHugepageCountRequestUsed) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1750,6 +1769,7 @@ func (m ClusterquotaHugepageCountRequestUsed) AddSet(ctx context.Context, incr i
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1899,6 +1919,7 @@ func (m ClusterquotaMemoryLimitHard) Add(ctx context.Context, incr int64, attrs
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1927,6 +1948,7 @@ func (m ClusterquotaMemoryLimitHard) AddSet(ctx context.Context, incr int64, set
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -2075,6 +2097,7 @@ func (m ClusterquotaMemoryLimitUsed) Add(ctx context.Context, incr int64, attrs
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -2103,6 +2126,7 @@ func (m ClusterquotaMemoryLimitUsed) AddSet(ctx context.Context, incr int64, set
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -2251,6 +2275,7 @@ func (m ClusterquotaMemoryRequestHard) Add(ctx context.Context, incr int64, attr
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -2279,6 +2304,7 @@ func (m ClusterquotaMemoryRequestHard) AddSet(ctx context.Context, incr int64, s
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -2427,6 +2453,7 @@ func (m ClusterquotaMemoryRequestUsed) Add(ctx context.Context, incr int64, attr
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -2455,6 +2482,7 @@ func (m ClusterquotaMemoryRequestUsed) AddSet(ctx context.Context, incr int64, s
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -2613,6 +2641,7 @@ func (m ClusterquotaObjectCountHard) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -2650,6 +2679,7 @@ func (m ClusterquotaObjectCountHard) AddSet(ctx context.Context, incr int64, set
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -2808,6 +2838,7 @@ func (m ClusterquotaObjectCountUsed) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -2845,6 +2876,7 @@ func (m ClusterquotaObjectCountUsed) AddSet(ctx context.Context, incr int64, set
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -3004,6 +3036,7 @@ func (m ClusterquotaPersistentvolumeclaimCountHard) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -3042,6 +3075,7 @@ func (m ClusterquotaPersistentvolumeclaimCountHard) AddSet(ctx context.Context,
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -3220,6 +3254,7 @@ func (m ClusterquotaPersistentvolumeclaimCountUsed) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -3258,6 +3293,7 @@ func (m ClusterquotaPersistentvolumeclaimCountUsed) AddSet(ctx context.Context,
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -3435,6 +3471,7 @@ func (m ClusterquotaStorageRequestHard) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -3473,6 +3510,7 @@ func (m ClusterquotaStorageRequestHard) AddSet(ctx context.Context, incr int64,
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -3649,6 +3687,7 @@ func (m ClusterquotaStorageRequestUsed) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -3687,6 +3726,7 @@ func (m ClusterquotaStorageRequestUsed) AddSet(ctx context.Context, incr int64,
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
|
||||
@@ -207,6 +207,7 @@ func (m SDKExporterLogExported) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -241,6 +242,7 @@ func (m SDKExporterLogExported) AddSet(ctx context.Context, incr int64, set attr
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -457,6 +459,7 @@ func (m SDKExporterLogInflight) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -486,6 +489,7 @@ func (m SDKExporterLogInflight) AddSet(ctx context.Context, incr int64, set attr
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -694,6 +698,7 @@ func (m SDKExporterMetricDataPointExported) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -728,6 +733,7 @@ func (m SDKExporterMetricDataPointExported) AddSet(ctx context.Context, incr int
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -946,6 +952,7 @@ func (m SDKExporterMetricDataPointInflight) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -975,6 +982,7 @@ func (m SDKExporterMetricDataPointInflight) AddSet(ctx context.Context, incr int
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1185,6 +1193,7 @@ func (m SDKExporterOperationDuration) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -1221,6 +1230,7 @@ func (m SDKExporterOperationDuration) RecordSet(ctx context.Context, val float64
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -1362,6 +1372,7 @@ func (m SDKExporterSpanExported) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1396,6 +1407,7 @@ func (m SDKExporterSpanExported) AddSet(ctx context.Context, incr int64, set att
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1612,6 +1624,7 @@ func (m SDKExporterSpanInflight) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1641,6 +1654,7 @@ func (m SDKExporterSpanInflight) AddSet(ctx context.Context, incr int64, set att
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1834,6 +1848,7 @@ func (m SDKLogCreated) Add(ctx context.Context, incr int64, attrs ...attribute.K
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1854,6 +1869,7 @@ func (m SDKLogCreated) AddSet(ctx context.Context, incr int64, set attribute.Set
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -2004,6 +2020,7 @@ func (m SDKMetricReaderCollectionDuration) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -2036,6 +2053,7 @@ func (m SDKMetricReaderCollectionDuration) RecordSet(ctx context.Context, val fl
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -2148,6 +2166,7 @@ func (m SDKProcessorLogProcessed) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -2180,6 +2199,7 @@ func (m SDKProcessorLogProcessed) AddSet(ctx context.Context, incr int64, set at
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -2523,6 +2543,7 @@ func (m SDKProcessorSpanProcessed) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -2555,6 +2576,7 @@ func (m SDKProcessorSpanProcessed) AddSet(ctx context.Context, incr int64, set a
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -2892,6 +2914,7 @@ func (m SDKSpanLive) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -2918,6 +2941,7 @@ func (m SDKSpanLive) AddSet(ctx context.Context, incr int64, set attribute.Set)
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -3078,6 +3102,7 @@ func (m SDKSpanStarted) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -3107,6 +3132,7 @@ func (m SDKSpanStarted) AddSet(ctx context.Context, incr int64, set attribute.Se
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
|
||||
@@ -180,6 +180,7 @@ func (m ContextSwitches) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -209,6 +210,7 @@ func (m ContextSwitches) AddSet(ctx context.Context, incr int64, set attribute.S
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -414,6 +416,7 @@ func (m CPUUtilization) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -443,6 +446,7 @@ func (m CPUUtilization) RecordSet(ctx context.Context, val int64, set attribute.
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -589,6 +593,7 @@ func (m DiskIO) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -618,6 +623,7 @@ func (m DiskIO) AddSet(ctx context.Context, incr int64, set attribute.Set) {
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -754,6 +760,7 @@ func (m MemoryUsage) Add(ctx context.Context, incr int64, attrs ...attribute.Key
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -774,6 +781,7 @@ func (m MemoryUsage) AddSet(ctx context.Context, incr int64, set attribute.Set)
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -910,6 +918,7 @@ func (m MemoryVirtual) Add(ctx context.Context, incr int64, attrs ...attribute.K
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -930,6 +939,7 @@ func (m MemoryVirtual) AddSet(ctx context.Context, incr int64, set attribute.Set
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1075,6 +1085,7 @@ func (m NetworkIO) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1104,6 +1115,7 @@ func (m NetworkIO) AddSet(ctx context.Context, incr int64, set attribute.Set) {
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1246,6 +1258,7 @@ func (m PagingFaults) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1272,6 +1285,7 @@ func (m PagingFaults) AddSet(ctx context.Context, incr int64, set attribute.Set)
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1426,6 +1440,7 @@ func (m ThreadCount) Add(ctx context.Context, incr int64, attrs ...attribute.Key
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1446,6 +1461,7 @@ func (m ThreadCount) AddSet(ctx context.Context, incr int64, set attribute.Set)
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1582,6 +1598,7 @@ func (m UnixFileDescriptorCount) Add(ctx context.Context, incr int64, attrs ...a
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1602,6 +1619,7 @@ func (m UnixFileDescriptorCount) AddSet(ctx context.Context, incr int64, set att
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1744,6 +1762,7 @@ func (m Uptime) Record(ctx context.Context, val float64, attrs ...attribute.KeyV
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -1768,6 +1787,7 @@ func (m Uptime) RecordSet(ctx context.Context, val float64, set attribute.Set) {
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -1904,6 +1924,7 @@ func (m WindowsHandleCount) Add(ctx context.Context, incr int64, attrs ...attrib
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1924,6 +1945,7 @@ func (m WindowsHandleCount) AddSet(ctx context.Context, incr int64, set attribut
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
|
||||
@@ -140,6 +140,7 @@ func (m ClientCallDuration) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -172,6 +173,7 @@ func (m ClientCallDuration) RecordSet(ctx context.Context, val float64, set attr
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -299,6 +301,7 @@ func (m ServerCallDuration) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -331,6 +334,7 @@ func (m ServerCallDuration) RecordSet(ctx context.Context, val float64, set attr
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
|
||||
@@ -130,6 +130,7 @@ func (m ServerActiveConnections) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -159,6 +160,7 @@ func (m ServerActiveConnections) AddSet(ctx context.Context, incr int64, set att
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -336,6 +338,7 @@ func (m ServerConnectionDuration) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -365,6 +368,7 @@ func (m ServerConnectionDuration) RecordSet(ctx context.Context, val float64, se
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
|
||||
@@ -338,6 +338,7 @@ func (m CPUFrequency) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -364,6 +365,7 @@ func (m CPUFrequency) RecordSet(ctx context.Context, val int64, set attribute.Se
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -518,6 +520,7 @@ func (m CPULogicalCount) Add(ctx context.Context, incr int64, attrs ...attribute
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -541,6 +544,7 @@ func (m CPULogicalCount) AddSet(ctx context.Context, incr int64, set attribute.S
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -682,6 +686,7 @@ func (m CPUPhysicalCount) Add(ctx context.Context, incr int64, attrs ...attribut
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -705,6 +710,7 @@ func (m CPUPhysicalCount) AddSet(ctx context.Context, incr int64, set attribute.
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -921,6 +927,7 @@ func (m CPUUtilization) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -947,6 +954,7 @@ func (m CPUUtilization) RecordSet(ctx context.Context, val int64, set attribute.
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -1117,6 +1125,7 @@ func (m DiskIO) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1143,6 +1152,7 @@ func (m DiskIO) AddSet(ctx context.Context, incr int64, set attribute.Set) {
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1321,6 +1331,7 @@ func (m DiskIOTime) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1359,6 +1370,7 @@ func (m DiskIOTime) AddSet(ctx context.Context, incr float64, set attribute.Set)
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1513,6 +1525,7 @@ func (m DiskLimit) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1539,6 +1552,7 @@ func (m DiskLimit) AddSet(ctx context.Context, incr int64, set attribute.Set) {
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1693,6 +1707,7 @@ func (m DiskMerged) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1719,6 +1734,7 @@ func (m DiskMerged) AddSet(ctx context.Context, incr int64, set attribute.Set) {
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1895,6 +1911,7 @@ func (m DiskOperationTime) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1931,6 +1948,7 @@ func (m DiskOperationTime) AddSet(ctx context.Context, incr float64, set attribu
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -2098,6 +2116,7 @@ func (m DiskOperations) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -2124,6 +2143,7 @@ func (m DiskOperations) AddSet(ctx context.Context, incr int64, set attribute.Se
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -2290,6 +2310,7 @@ func (m FilesystemLimit) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -2316,6 +2337,7 @@ func (m FilesystemLimit) AddSet(ctx context.Context, incr int64, set attribute.S
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -2520,6 +2542,7 @@ func (m FilesystemUsage) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -2551,6 +2574,7 @@ func (m FilesystemUsage) AddSet(ctx context.Context, incr int64, set attribute.S
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -2764,6 +2788,7 @@ func (m FilesystemUtilization) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -2790,6 +2815,7 @@ func (m FilesystemUtilization) RecordSet(ctx context.Context, val int64, set att
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -2997,6 +3023,7 @@ func (m MemoryLimit) Add(ctx context.Context, incr int64, attrs ...attribute.Key
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -3017,6 +3044,7 @@ func (m MemoryLimit) AddSet(ctx context.Context, incr int64, set attribute.Set)
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -3164,6 +3192,7 @@ func (m MemoryLinuxAvailable) Add(ctx context.Context, incr int64, attrs ...attr
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -3194,6 +3223,7 @@ func (m MemoryLinuxAvailable) AddSet(ctx context.Context, incr int64, set attrib
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -3333,6 +3363,7 @@ func (m MemoryLinuxHugepagesLimit) Add(ctx context.Context, incr int64, attrs ..
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -3353,6 +3384,7 @@ func (m MemoryLinuxHugepagesLimit) AddSet(ctx context.Context, incr int64, set a
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -3491,6 +3523,7 @@ func (m MemoryLinuxHugepagesPageSize) Add(ctx context.Context, incr int64, attrs
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -3511,6 +3544,7 @@ func (m MemoryLinuxHugepagesPageSize) AddSet(ctx context.Context, incr int64, se
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -3656,6 +3690,7 @@ func (m MemoryLinuxHugepagesReserved) Add(ctx context.Context, incr int64, attrs
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -3683,6 +3718,7 @@ func (m MemoryLinuxHugepagesReserved) AddSet(ctx context.Context, incr int64, se
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -3827,6 +3863,7 @@ func (m MemoryLinuxHugepagesSurplus) Add(ctx context.Context, incr int64, attrs
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -3853,6 +3890,7 @@ func (m MemoryLinuxHugepagesSurplus) AddSet(ctx context.Context, incr int64, set
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -3997,6 +4035,7 @@ func (m MemoryLinuxHugepagesUsage) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -4023,6 +4062,7 @@ func (m MemoryLinuxHugepagesUsage) AddSet(ctx context.Context, incr int64, set a
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -4181,6 +4221,7 @@ func (m MemoryLinuxHugepagesUtilization) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -4207,6 +4248,7 @@ func (m MemoryLinuxHugepagesUtilization) RecordSet(ctx context.Context, val int6
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -4365,6 +4407,7 @@ func (m MemoryLinuxShared) Add(ctx context.Context, incr int64, attrs ...attribu
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -4391,6 +4434,7 @@ func (m MemoryLinuxShared) AddSet(ctx context.Context, incr int64, set attribute
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -4544,6 +4588,7 @@ func (m MemoryLinuxSlabUsage) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -4579,6 +4624,7 @@ func (m MemoryLinuxSlabUsage) AddSet(ctx context.Context, incr int64, set attrib
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -4865,6 +4911,7 @@ func (m NetworkConnectionCount) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -4891,6 +4938,7 @@ func (m NetworkConnectionCount) AddSet(ctx context.Context, incr int64, set attr
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -5093,6 +5141,7 @@ func (m NetworkErrors) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -5130,6 +5179,7 @@ func (m NetworkErrors) AddSet(ctx context.Context, incr int64, set attribute.Set
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -5372,6 +5422,7 @@ func (m NetworkPacketCount) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -5398,6 +5449,7 @@ func (m NetworkPacketCount) AddSet(ctx context.Context, incr int64, set attribut
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -5578,6 +5630,7 @@ func (m NetworkPacketDropped) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -5615,6 +5668,7 @@ func (m NetworkPacketDropped) AddSet(ctx context.Context, incr int64, set attrib
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -5787,6 +5841,7 @@ func (m PagingFaults) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -5813,6 +5868,7 @@ func (m PagingFaults) AddSet(ctx context.Context, incr int64, set attribute.Set)
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -5969,6 +6025,7 @@ func (m PagingOperations) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -5995,6 +6052,7 @@ func (m PagingOperations) AddSet(ctx context.Context, incr int64, set attribute.
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -6166,6 +6224,7 @@ func (m PagingUsage) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -6192,6 +6251,7 @@ func (m PagingUsage) AddSet(ctx context.Context, incr int64, set attribute.Set)
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -6360,6 +6420,7 @@ func (m PagingUtilization) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -6386,6 +6447,7 @@ func (m PagingUtilization) RecordSet(ctx context.Context, val int64, set attribu
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -6555,6 +6617,7 @@ func (m ProcessCount) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -6581,6 +6644,7 @@ func (m ProcessCount) AddSet(ctx context.Context, incr int64, set attribute.Set)
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -6735,6 +6799,7 @@ func (m ProcessCreated) Add(ctx context.Context, incr int64, attrs ...attribute.
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -6755,6 +6820,7 @@ func (m ProcessCreated) AddSet(ctx context.Context, incr int64, set attribute.Se
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -6895,6 +6961,7 @@ func (m Uptime) Record(ctx context.Context, val float64, attrs ...attribute.KeyV
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -6919,6 +6986,7 @@ func (m Uptime) RecordSet(ctx context.Context, val float64, set attribute.Set) {
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
|
||||
@@ -236,6 +236,7 @@ func (m ChangeCount) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -266,6 +267,7 @@ func (m ChangeCount) AddSet(ctx context.Context, incr int64, set attribute.Set)
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -471,6 +473,7 @@ func (m ChangeDuration) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -502,6 +505,7 @@ func (m ChangeDuration) RecordSet(ctx context.Context, val float64, set attribut
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -703,6 +707,7 @@ func (m ChangeTimeToApproval) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -733,6 +738,7 @@ func (m ChangeTimeToApproval) RecordSet(ctx context.Context, val float64, set at
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -993,6 +999,7 @@ func (m ChangeTimeToMerge) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -1023,6 +1030,7 @@ func (m ChangeTimeToMerge) RecordSet(ctx context.Context, val float64, set attri
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -1276,6 +1284,7 @@ func (m ContributorCount) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -1305,6 +1314,7 @@ func (m ContributorCount) RecordSet(ctx context.Context, val int64, set attribut
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -1504,6 +1514,7 @@ func (m RefCount) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1534,6 +1545,7 @@ func (m RefCount) AddSet(ctx context.Context, incr int64, set attribute.Set) {
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -1762,6 +1774,7 @@ func (m RefLinesDelta) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -1803,6 +1816,7 @@ func (m RefLinesDelta) RecordSet(ctx context.Context, val int64, set attribute.S
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -2045,6 +2059,7 @@ func (m RefRevisionsDelta) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -2084,6 +2099,7 @@ func (m RefRevisionsDelta) RecordSet(ctx context.Context, val int64, set attribu
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -2307,6 +2323,7 @@ func (m RefTime) Record(
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -2338,6 +2355,7 @@ func (m RefTime) RecordSet(ctx context.Context, val float64, set attribute.Set)
|
||||
|
||||
o := recOptPool.Get().(*[]metric.RecordOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
recOptPool.Put(o)
|
||||
}()
|
||||
@@ -2523,6 +2541,7 @@ func (m RepositoryCount) Add(
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
@@ -2549,6 +2568,7 @@ func (m RepositoryCount) AddSet(ctx context.Context, incr int64, set attribute.S
|
||||
|
||||
o := addOptPool.Get().(*[]metric.AddOption)
|
||||
defer func() {
|
||||
clear(*o)
|
||||
*o = (*o)[:0]
|
||||
addOptPool.Put(o)
|
||||
}()
|
||||
|
||||
Reference in New Issue
Block a user