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 whitespace in semconv/v1.32.0 (#7666)
Replace spaces with tabs Include a newline at the end of the file
This commit is contained in:
@@ -78,7 +78,7 @@ func NewCosmosDBClientActiveInstanceCount(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return CosmosDBClientActiveInstanceCount{noop.Int64UpDownCounter{}}, err
|
||||
return CosmosDBClientActiveInstanceCount{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return CosmosDBClientActiveInstanceCount{i}, nil
|
||||
}
|
||||
@@ -168,7 +168,7 @@ func NewCosmosDBClientOperationRequestCharge(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return CosmosDBClientOperationRequestCharge{noop.Int64Histogram{}}, err
|
||||
return CosmosDBClientOperationRequestCharge{noop.Int64Histogram{}}, err
|
||||
}
|
||||
return CosmosDBClientOperationRequestCharge{i}, nil
|
||||
}
|
||||
@@ -287,4 +287,4 @@ func (CosmosDBClientOperationRequestCharge) AttrCosmosDBOperationContactedRegion
|
||||
// semantic convention. It represents the name of the database host.
|
||||
func (CosmosDBClientOperationRequestCharge) AttrServerAddress(val string) attribute.KeyValue {
|
||||
return attribute.String("server.address", val)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -115,7 +115,7 @@ func NewPipelineRunActive(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return PipelineRunActive{noop.Int64UpDownCounter{}}, err
|
||||
return PipelineRunActive{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return PipelineRunActive{i}, nil
|
||||
}
|
||||
@@ -199,7 +199,7 @@ func NewPipelineRunDuration(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return PipelineRunDuration{noop.Float64Histogram{}}, err
|
||||
return PipelineRunDuration{noop.Float64Histogram{}}, err
|
||||
}
|
||||
return PipelineRunDuration{i}, nil
|
||||
}
|
||||
@@ -299,7 +299,7 @@ func NewPipelineRunErrors(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return PipelineRunErrors{noop.Int64Counter{}}, err
|
||||
return PipelineRunErrors{noop.Int64Counter{}}, err
|
||||
}
|
||||
return PipelineRunErrors{i}, nil
|
||||
}
|
||||
@@ -387,7 +387,7 @@ func NewSystemErrors(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return SystemErrors{noop.Int64Counter{}}, err
|
||||
return SystemErrors{noop.Int64Counter{}}, err
|
||||
}
|
||||
return SystemErrors{i}, nil
|
||||
}
|
||||
@@ -472,7 +472,7 @@ func NewWorkerCount(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return WorkerCount{noop.Int64UpDownCounter{}}, err
|
||||
return WorkerCount{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return WorkerCount{i}, nil
|
||||
}
|
||||
@@ -523,4 +523,4 @@ func (m WorkerCount) Add(
|
||||
)
|
||||
|
||||
m.Int64UpDownCounter.Add(ctx, incr, *o...)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -93,7 +93,7 @@ func NewCPUTime(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return CPUTime{noop.Float64Counter{}}, err
|
||||
return CPUTime{noop.Float64Counter{}}, err
|
||||
}
|
||||
return CPUTime{i}, nil
|
||||
}
|
||||
@@ -177,7 +177,7 @@ func NewCPUUsage(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return CPUUsage{noop.Int64Gauge{}}, err
|
||||
return CPUUsage{noop.Int64Gauge{}}, err
|
||||
}
|
||||
return CPUUsage{i}, nil
|
||||
}
|
||||
@@ -262,7 +262,7 @@ func NewDiskIO(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return DiskIO{noop.Int64Counter{}}, err
|
||||
return DiskIO{noop.Int64Counter{}}, err
|
||||
}
|
||||
return DiskIO{i}, nil
|
||||
}
|
||||
@@ -351,7 +351,7 @@ func NewMemoryUsage(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return MemoryUsage{noop.Int64Counter{}}, err
|
||||
return MemoryUsage{noop.Int64Counter{}}, err
|
||||
}
|
||||
return MemoryUsage{i}, nil
|
||||
}
|
||||
@@ -420,7 +420,7 @@ func NewNetworkIO(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return NetworkIO{noop.Int64Counter{}}, err
|
||||
return NetworkIO{noop.Int64Counter{}}, err
|
||||
}
|
||||
return NetworkIO{i}, nil
|
||||
}
|
||||
@@ -510,7 +510,7 @@ func NewUptime(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return Uptime{noop.Float64Gauge{}}, err
|
||||
return Uptime{noop.Float64Gauge{}}, err
|
||||
}
|
||||
return Uptime{i}, nil
|
||||
}
|
||||
@@ -553,4 +553,4 @@ func (m Uptime) Record(ctx context.Context, val float64, attrs ...attribute.KeyV
|
||||
|
||||
*o = append(*o, metric.WithAttributes(attrs...))
|
||||
m.Float64Gauge.Record(ctx, val, *o...)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -69,7 +69,7 @@ func NewFrequency(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return Frequency{noop.Int64Gauge{}}, err
|
||||
return Frequency{noop.Int64Gauge{}}, err
|
||||
}
|
||||
return Frequency{i}, nil
|
||||
}
|
||||
@@ -149,7 +149,7 @@ func NewTime(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return Time{noop.Float64ObservableCounter{}}, err
|
||||
return Time{noop.Float64ObservableCounter{}}, err
|
||||
}
|
||||
return Time{i}, nil
|
||||
}
|
||||
@@ -212,7 +212,7 @@ func NewUtilization(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return Utilization{noop.Int64Gauge{}}, err
|
||||
return Utilization{noop.Int64Gauge{}}, err
|
||||
}
|
||||
return Utilization{i}, nil
|
||||
}
|
||||
@@ -271,4 +271,4 @@ func (Utilization) AttrLogicalNumber(val int) attribute.KeyValue {
|
||||
// It represents the mode of the CPU.
|
||||
func (Utilization) AttrMode(val ModeAttr) attribute.KeyValue {
|
||||
return attribute.String("cpu.mode", string(val))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -270,7 +270,7 @@ func NewClientConnectionCount(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ClientConnectionCount{noop.Int64UpDownCounter{}}, err
|
||||
return ClientConnectionCount{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return ClientConnectionCount{i}, nil
|
||||
}
|
||||
@@ -359,7 +359,7 @@ func NewClientConnectionCreateTime(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ClientConnectionCreateTime{noop.Float64Histogram{}}, err
|
||||
return ClientConnectionCreateTime{noop.Float64Histogram{}}, err
|
||||
}
|
||||
return ClientConnectionCreateTime{i}, nil
|
||||
}
|
||||
@@ -443,7 +443,7 @@ func NewClientConnectionIdleMax(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ClientConnectionIdleMax{noop.Int64UpDownCounter{}}, err
|
||||
return ClientConnectionIdleMax{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return ClientConnectionIdleMax{i}, nil
|
||||
}
|
||||
@@ -527,7 +527,7 @@ func NewClientConnectionIdleMin(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ClientConnectionIdleMin{noop.Int64UpDownCounter{}}, err
|
||||
return ClientConnectionIdleMin{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return ClientConnectionIdleMin{i}, nil
|
||||
}
|
||||
@@ -611,7 +611,7 @@ func NewClientConnectionMax(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ClientConnectionMax{noop.Int64UpDownCounter{}}, err
|
||||
return ClientConnectionMax{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return ClientConnectionMax{i}, nil
|
||||
}
|
||||
@@ -697,7 +697,7 @@ func NewClientConnectionPendingRequests(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ClientConnectionPendingRequests{noop.Int64UpDownCounter{}}, err
|
||||
return ClientConnectionPendingRequests{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return ClientConnectionPendingRequests{i}, nil
|
||||
}
|
||||
@@ -782,7 +782,7 @@ func NewClientConnectionTimeouts(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ClientConnectionTimeouts{noop.Int64Counter{}}, err
|
||||
return ClientConnectionTimeouts{noop.Int64Counter{}}, err
|
||||
}
|
||||
return ClientConnectionTimeouts{i}, nil
|
||||
}
|
||||
@@ -867,7 +867,7 @@ func NewClientConnectionUseTime(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ClientConnectionUseTime{noop.Float64Histogram{}}, err
|
||||
return ClientConnectionUseTime{noop.Float64Histogram{}}, err
|
||||
}
|
||||
return ClientConnectionUseTime{i}, nil
|
||||
}
|
||||
@@ -951,7 +951,7 @@ func NewClientConnectionWaitTime(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ClientConnectionWaitTime{noop.Float64Histogram{}}, err
|
||||
return ClientConnectionWaitTime{noop.Float64Histogram{}}, err
|
||||
}
|
||||
return ClientConnectionWaitTime{i}, nil
|
||||
}
|
||||
@@ -1035,7 +1035,7 @@ func NewClientOperationDuration(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ClientOperationDuration{noop.Float64Histogram{}}, err
|
||||
return ClientOperationDuration{noop.Float64Histogram{}}, err
|
||||
}
|
||||
return ClientOperationDuration{i}, nil
|
||||
}
|
||||
@@ -1200,7 +1200,7 @@ func NewClientResponseReturnedRows(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ClientResponseReturnedRows{noop.Int64Histogram{}}, err
|
||||
return ClientResponseReturnedRows{noop.Int64Histogram{}}, err
|
||||
}
|
||||
return ClientResponseReturnedRows{i}, nil
|
||||
}
|
||||
@@ -1328,4 +1328,4 @@ func (ClientResponseReturnedRows) AttrServerAddress(val string) attribute.KeyVal
|
||||
// convention. It represents the database query being executed.
|
||||
func (ClientResponseReturnedRows) AttrQueryText(val string) attribute.KeyValue {
|
||||
return attribute.String("db.query.text", val)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ func NewLookupDuration(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return LookupDuration{noop.Float64Histogram{}}, err
|
||||
return LookupDuration{noop.Float64Histogram{}}, err
|
||||
}
|
||||
return LookupDuration{i}, nil
|
||||
}
|
||||
@@ -115,4 +115,4 @@ func (m LookupDuration) Record(
|
||||
// convention. It represents the describes the error the DNS lookup failed with.
|
||||
func (LookupDuration) AttrErrorType(val ErrorTypeAttr) attribute.KeyValue {
|
||||
return attribute.String("error.type", string(val))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -66,7 +66,7 @@ func NewColdstarts(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return Coldstarts{noop.Int64Counter{}}, err
|
||||
return Coldstarts{noop.Int64Counter{}}, err
|
||||
}
|
||||
return Coldstarts{i}, nil
|
||||
}
|
||||
@@ -147,7 +147,7 @@ func NewCPUUsage(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return CPUUsage{noop.Float64Histogram{}}, err
|
||||
return CPUUsage{noop.Float64Histogram{}}, err
|
||||
}
|
||||
return CPUUsage{i}, nil
|
||||
}
|
||||
@@ -228,7 +228,7 @@ func NewErrors(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return Errors{noop.Int64Counter{}}, err
|
||||
return Errors{noop.Int64Counter{}}, err
|
||||
}
|
||||
return Errors{i}, nil
|
||||
}
|
||||
@@ -309,7 +309,7 @@ func NewInitDuration(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return InitDuration{noop.Float64Histogram{}}, err
|
||||
return InitDuration{noop.Float64Histogram{}}, err
|
||||
}
|
||||
return InitDuration{i}, nil
|
||||
}
|
||||
@@ -390,7 +390,7 @@ func NewInvocations(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return Invocations{noop.Int64Counter{}}, err
|
||||
return Invocations{noop.Int64Counter{}}, err
|
||||
}
|
||||
return Invocations{i}, nil
|
||||
}
|
||||
@@ -471,7 +471,7 @@ func NewInvokeDuration(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return InvokeDuration{noop.Float64Histogram{}}, err
|
||||
return InvokeDuration{noop.Float64Histogram{}}, err
|
||||
}
|
||||
return InvokeDuration{i}, nil
|
||||
}
|
||||
@@ -552,7 +552,7 @@ func NewMemUsage(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return MemUsage{noop.Int64Histogram{}}, err
|
||||
return MemUsage{noop.Int64Histogram{}}, err
|
||||
}
|
||||
return MemUsage{i}, nil
|
||||
}
|
||||
@@ -633,7 +633,7 @@ func NewNetIO(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return NetIO{noop.Int64Histogram{}}, err
|
||||
return NetIO{noop.Int64Histogram{}}, err
|
||||
}
|
||||
return NetIO{i}, nil
|
||||
}
|
||||
@@ -714,7 +714,7 @@ func NewTimeouts(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return Timeouts{noop.Int64Counter{}}, err
|
||||
return Timeouts{noop.Int64Counter{}}, err
|
||||
}
|
||||
return Timeouts{i}, nil
|
||||
}
|
||||
@@ -768,4 +768,4 @@ func (m Timeouts) Add(
|
||||
// invocation.
|
||||
func (Timeouts) AttrTrigger(val TriggerAttr) attribute.KeyValue {
|
||||
return attribute.String("faas.trigger", string(val))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -130,7 +130,7 @@ func NewClientOperationDuration(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ClientOperationDuration{noop.Float64Histogram{}}, err
|
||||
return ClientOperationDuration{noop.Float64Histogram{}}, err
|
||||
}
|
||||
return ClientOperationDuration{i}, nil
|
||||
}
|
||||
@@ -248,7 +248,7 @@ func NewClientTokenUsage(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ClientTokenUsage{noop.Int64Histogram{}}, err
|
||||
return ClientTokenUsage{noop.Int64Histogram{}}, err
|
||||
}
|
||||
return ClientTokenUsage{i}, nil
|
||||
}
|
||||
@@ -364,7 +364,7 @@ func NewServerRequestDuration(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ServerRequestDuration{noop.Float64Histogram{}}, err
|
||||
return ServerRequestDuration{noop.Float64Histogram{}}, err
|
||||
}
|
||||
return ServerRequestDuration{i}, nil
|
||||
}
|
||||
@@ -483,7 +483,7 @@ func NewServerTimePerOutputToken(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ServerTimePerOutputToken{noop.Float64Histogram{}}, err
|
||||
return ServerTimePerOutputToken{noop.Float64Histogram{}}, err
|
||||
}
|
||||
return ServerTimePerOutputToken{i}, nil
|
||||
}
|
||||
@@ -594,7 +594,7 @@ func NewServerTimeToFirstToken(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ServerTimeToFirstToken{noop.Float64Histogram{}}, err
|
||||
return ServerTimeToFirstToken{noop.Float64Histogram{}}, err
|
||||
}
|
||||
return ServerTimeToFirstToken{i}, nil
|
||||
}
|
||||
@@ -678,4 +678,4 @@ func (ServerTimeToFirstToken) AttrResponseModel(val string) attribute.KeyValue {
|
||||
// semantic convention. It represents the genAI server address.
|
||||
func (ServerTimeToFirstToken) AttrServerAddress(val string) attribute.KeyValue {
|
||||
return attribute.String("server.address", val)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ func NewConfigGogc(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ConfigGogc{noop.Int64ObservableUpDownCounter{}}, err
|
||||
return ConfigGogc{noop.Int64ObservableUpDownCounter{}}, err
|
||||
}
|
||||
return ConfigGogc{i}, nil
|
||||
}
|
||||
@@ -109,7 +109,7 @@ func NewGoroutineCount(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return GoroutineCount{noop.Int64ObservableUpDownCounter{}}, err
|
||||
return GoroutineCount{noop.Int64ObservableUpDownCounter{}}, err
|
||||
}
|
||||
return GoroutineCount{i}, nil
|
||||
}
|
||||
@@ -159,7 +159,7 @@ func NewMemoryAllocated(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return MemoryAllocated{noop.Int64ObservableCounter{}}, err
|
||||
return MemoryAllocated{noop.Int64ObservableCounter{}}, err
|
||||
}
|
||||
return MemoryAllocated{i}, nil
|
||||
}
|
||||
@@ -209,7 +209,7 @@ func NewMemoryAllocations(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return MemoryAllocations{noop.Int64ObservableCounter{}}, err
|
||||
return MemoryAllocations{noop.Int64ObservableCounter{}}, err
|
||||
}
|
||||
return MemoryAllocations{i}, nil
|
||||
}
|
||||
@@ -259,7 +259,7 @@ func NewMemoryGCGoal(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return MemoryGCGoal{noop.Int64ObservableUpDownCounter{}}, err
|
||||
return MemoryGCGoal{noop.Int64ObservableUpDownCounter{}}, err
|
||||
}
|
||||
return MemoryGCGoal{i}, nil
|
||||
}
|
||||
@@ -309,7 +309,7 @@ func NewMemoryLimit(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return MemoryLimit{noop.Int64ObservableUpDownCounter{}}, err
|
||||
return MemoryLimit{noop.Int64ObservableUpDownCounter{}}, err
|
||||
}
|
||||
return MemoryLimit{i}, nil
|
||||
}
|
||||
@@ -359,7 +359,7 @@ func NewMemoryUsed(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return MemoryUsed{noop.Int64ObservableCounter{}}, err
|
||||
return MemoryUsed{noop.Int64ObservableCounter{}}, err
|
||||
}
|
||||
return MemoryUsed{i}, nil
|
||||
}
|
||||
@@ -415,7 +415,7 @@ func NewProcessorLimit(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ProcessorLimit{noop.Int64ObservableUpDownCounter{}}, err
|
||||
return ProcessorLimit{noop.Int64ObservableUpDownCounter{}}, err
|
||||
}
|
||||
return ProcessorLimit{i}, nil
|
||||
}
|
||||
@@ -466,7 +466,7 @@ func NewScheduleDuration(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ScheduleDuration{noop.Float64Histogram{}}, err
|
||||
return ScheduleDuration{noop.Float64Histogram{}}, err
|
||||
}
|
||||
return ScheduleDuration{i}, nil
|
||||
}
|
||||
@@ -508,4 +508,4 @@ func (m ScheduleDuration) Record(ctx context.Context, val float64, attrs ...attr
|
||||
|
||||
*o = append(*o, metric.WithAttributes(attrs...))
|
||||
m.Float64Histogram.Record(ctx, val, *o...)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -109,7 +109,7 @@ func NewClientActiveRequests(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ClientActiveRequests{noop.Int64UpDownCounter{}}, err
|
||||
return ClientActiveRequests{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return ClientActiveRequests{i}, nil
|
||||
}
|
||||
@@ -222,7 +222,7 @@ func NewClientConnectionDuration(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ClientConnectionDuration{noop.Float64Histogram{}}, err
|
||||
return ClientConnectionDuration{noop.Float64Histogram{}}, err
|
||||
}
|
||||
return ClientConnectionDuration{i}, nil
|
||||
}
|
||||
@@ -334,7 +334,7 @@ func NewClientOpenConnections(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ClientOpenConnections{noop.Int64UpDownCounter{}}, err
|
||||
return ClientOpenConnections{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return ClientOpenConnections{i}, nil
|
||||
}
|
||||
@@ -450,7 +450,7 @@ func NewClientRequestBodySize(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ClientRequestBodySize{noop.Int64Histogram{}}, err
|
||||
return ClientRequestBodySize{noop.Int64Histogram{}}, err
|
||||
}
|
||||
return ClientRequestBodySize{i}, nil
|
||||
}
|
||||
@@ -600,7 +600,7 @@ func NewClientRequestDuration(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ClientRequestDuration{noop.Float64Histogram{}}, err
|
||||
return ClientRequestDuration{noop.Float64Histogram{}}, err
|
||||
}
|
||||
return ClientRequestDuration{i}, nil
|
||||
}
|
||||
@@ -743,7 +743,7 @@ func NewClientResponseBodySize(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ClientResponseBodySize{noop.Int64Histogram{}}, err
|
||||
return ClientResponseBodySize{noop.Int64Histogram{}}, err
|
||||
}
|
||||
return ClientResponseBodySize{i}, nil
|
||||
}
|
||||
@@ -893,7 +893,7 @@ func NewServerActiveRequests(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ServerActiveRequests{noop.Int64UpDownCounter{}}, err
|
||||
return ServerActiveRequests{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return ServerActiveRequests{i}, nil
|
||||
}
|
||||
@@ -993,7 +993,7 @@ func NewServerRequestBodySize(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ServerRequestBodySize{noop.Int64Histogram{}}, err
|
||||
return ServerRequestBodySize{noop.Int64Histogram{}}, err
|
||||
}
|
||||
return ServerRequestBodySize{i}, nil
|
||||
}
|
||||
@@ -1146,7 +1146,7 @@ func NewServerRequestDuration(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ServerRequestDuration{noop.Float64Histogram{}}, err
|
||||
return ServerRequestDuration{noop.Float64Histogram{}}, err
|
||||
}
|
||||
return ServerRequestDuration{i}, nil
|
||||
}
|
||||
@@ -1292,7 +1292,7 @@ func NewServerResponseBodySize(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ServerResponseBodySize{noop.Int64Histogram{}}, err
|
||||
return ServerResponseBodySize{noop.Int64Histogram{}}, err
|
||||
}
|
||||
return ServerResponseBodySize{i}, nil
|
||||
}
|
||||
@@ -1418,4 +1418,4 @@ func (ServerResponseBodySize) AttrServerPort(val int) attribute.KeyValue {
|
||||
// the category of synthetic traffic, such as tests or bots.
|
||||
func (ServerResponseBodySize) AttrUserAgentSyntheticType(val UserAgentSyntheticTypeAttr) attribute.KeyValue {
|
||||
return attribute.String("user_agent.synthetic.type", string(val))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -104,7 +104,7 @@ func NewEnergy(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return Energy{noop.Int64Counter{}}, err
|
||||
return Energy{noop.Int64Counter{}}, err
|
||||
}
|
||||
return Energy{i}, nil
|
||||
}
|
||||
@@ -202,7 +202,7 @@ func NewErrors(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return Errors{noop.Int64Counter{}}, err
|
||||
return Errors{noop.Int64Counter{}}, err
|
||||
}
|
||||
return Errors{i}, nil
|
||||
}
|
||||
@@ -306,7 +306,7 @@ func NewHostAmbientTemperature(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return HostAmbientTemperature{noop.Int64Gauge{}}, err
|
||||
return HostAmbientTemperature{noop.Int64Gauge{}}, err
|
||||
}
|
||||
return HostAmbientTemperature{i}, nil
|
||||
}
|
||||
@@ -400,7 +400,7 @@ func NewHostEnergy(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return HostEnergy{noop.Int64Counter{}}, err
|
||||
return HostEnergy{noop.Int64Counter{}}, err
|
||||
}
|
||||
return HostEnergy{i}, nil
|
||||
}
|
||||
@@ -500,7 +500,7 @@ func NewHostHeatingMargin(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return HostHeatingMargin{noop.Int64Gauge{}}, err
|
||||
return HostHeatingMargin{noop.Int64Gauge{}}, err
|
||||
}
|
||||
return HostHeatingMargin{i}, nil
|
||||
}
|
||||
@@ -594,7 +594,7 @@ func NewHostPower(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return HostPower{noop.Int64Gauge{}}, err
|
||||
return HostPower{noop.Int64Gauge{}}, err
|
||||
}
|
||||
return HostPower{i}, nil
|
||||
}
|
||||
@@ -693,7 +693,7 @@ func NewPower(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return Power{noop.Int64Gauge{}}, err
|
||||
return Power{noop.Int64Gauge{}}, err
|
||||
}
|
||||
return Power{i}, nil
|
||||
}
|
||||
@@ -793,7 +793,7 @@ func NewStatus(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return Status{noop.Int64UpDownCounter{}}, err
|
||||
return Status{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return Status{i}, nil
|
||||
}
|
||||
@@ -876,4 +876,4 @@ func (Status) AttrName(val string) attribute.KeyValue {
|
||||
// (typically the `hw.id` attribute of the enclosure, or disk controller).
|
||||
func (Status) AttrParent(val string) attribute.KeyValue {
|
||||
return attribute.String("hw.parent", val)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -74,7 +74,7 @@ func NewCronJobActiveJobs(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return CronJobActiveJobs{noop.Int64UpDownCounter{}}, err
|
||||
return CronJobActiveJobs{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return CronJobActiveJobs{i}, nil
|
||||
}
|
||||
@@ -152,7 +152,7 @@ func NewDaemonSetCurrentScheduledNodes(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return DaemonSetCurrentScheduledNodes{noop.Int64UpDownCounter{}}, err
|
||||
return DaemonSetCurrentScheduledNodes{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return DaemonSetCurrentScheduledNodes{i}, nil
|
||||
}
|
||||
@@ -230,7 +230,7 @@ func NewDaemonSetDesiredScheduledNodes(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return DaemonSetDesiredScheduledNodes{noop.Int64UpDownCounter{}}, err
|
||||
return DaemonSetDesiredScheduledNodes{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return DaemonSetDesiredScheduledNodes{i}, nil
|
||||
}
|
||||
@@ -308,7 +308,7 @@ func NewDaemonSetMisscheduledNodes(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return DaemonSetMisscheduledNodes{noop.Int64UpDownCounter{}}, err
|
||||
return DaemonSetMisscheduledNodes{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return DaemonSetMisscheduledNodes{i}, nil
|
||||
}
|
||||
@@ -385,7 +385,7 @@ func NewDaemonSetReadyNodes(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return DaemonSetReadyNodes{noop.Int64UpDownCounter{}}, err
|
||||
return DaemonSetReadyNodes{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return DaemonSetReadyNodes{i}, nil
|
||||
}
|
||||
@@ -462,7 +462,7 @@ func NewDeploymentAvailablePods(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return DeploymentAvailablePods{noop.Int64UpDownCounter{}}, err
|
||||
return DeploymentAvailablePods{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return DeploymentAvailablePods{i}, nil
|
||||
}
|
||||
@@ -538,7 +538,7 @@ func NewDeploymentDesiredPods(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return DeploymentDesiredPods{noop.Int64UpDownCounter{}}, err
|
||||
return DeploymentDesiredPods{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return DeploymentDesiredPods{i}, nil
|
||||
}
|
||||
@@ -615,7 +615,7 @@ func NewHPACurrentPods(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return HPACurrentPods{noop.Int64UpDownCounter{}}, err
|
||||
return HPACurrentPods{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return HPACurrentPods{i}, nil
|
||||
}
|
||||
@@ -692,7 +692,7 @@ func NewHPADesiredPods(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return HPADesiredPods{noop.Int64UpDownCounter{}}, err
|
||||
return HPADesiredPods{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return HPADesiredPods{i}, nil
|
||||
}
|
||||
@@ -768,7 +768,7 @@ func NewHPAMaxPods(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return HPAMaxPods{noop.Int64UpDownCounter{}}, err
|
||||
return HPAMaxPods{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return HPAMaxPods{i}, nil
|
||||
}
|
||||
@@ -844,7 +844,7 @@ func NewHPAMinPods(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return HPAMinPods{noop.Int64UpDownCounter{}}, err
|
||||
return HPAMinPods{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return HPAMinPods{i}, nil
|
||||
}
|
||||
@@ -920,7 +920,7 @@ func NewJobActivePods(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return JobActivePods{noop.Int64UpDownCounter{}}, err
|
||||
return JobActivePods{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return JobActivePods{i}, nil
|
||||
}
|
||||
@@ -997,7 +997,7 @@ func NewJobDesiredSuccessfulPods(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return JobDesiredSuccessfulPods{noop.Int64UpDownCounter{}}, err
|
||||
return JobDesiredSuccessfulPods{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return JobDesiredSuccessfulPods{i}, nil
|
||||
}
|
||||
@@ -1073,7 +1073,7 @@ func NewJobFailedPods(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return JobFailedPods{noop.Int64UpDownCounter{}}, err
|
||||
return JobFailedPods{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return JobFailedPods{i}, nil
|
||||
}
|
||||
@@ -1149,7 +1149,7 @@ func NewJobMaxParallelPods(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return JobMaxParallelPods{noop.Int64UpDownCounter{}}, err
|
||||
return JobMaxParallelPods{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return JobMaxParallelPods{i}, nil
|
||||
}
|
||||
@@ -1225,7 +1225,7 @@ func NewJobSuccessfulPods(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return JobSuccessfulPods{noop.Int64UpDownCounter{}}, err
|
||||
return JobSuccessfulPods{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return JobSuccessfulPods{i}, nil
|
||||
}
|
||||
@@ -1301,7 +1301,7 @@ func NewNamespacePhase(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return NamespacePhase{noop.Int64UpDownCounter{}}, err
|
||||
return NamespacePhase{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return NamespacePhase{i}, nil
|
||||
}
|
||||
@@ -1384,7 +1384,7 @@ func NewNodeCPUTime(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return NodeCPUTime{noop.Float64Counter{}}, err
|
||||
return NodeCPUTime{noop.Float64Counter{}}, err
|
||||
}
|
||||
return NodeCPUTime{i}, nil
|
||||
}
|
||||
@@ -1453,7 +1453,7 @@ func NewNodeCPUUsage(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return NodeCPUUsage{noop.Int64Gauge{}}, err
|
||||
return NodeCPUUsage{noop.Int64Gauge{}}, err
|
||||
}
|
||||
return NodeCPUUsage{i}, nil
|
||||
}
|
||||
@@ -1522,7 +1522,7 @@ func NewNodeMemoryUsage(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return NodeMemoryUsage{noop.Int64Gauge{}}, err
|
||||
return NodeMemoryUsage{noop.Int64Gauge{}}, err
|
||||
}
|
||||
return NodeMemoryUsage{i}, nil
|
||||
}
|
||||
@@ -1590,7 +1590,7 @@ func NewNodeNetworkErrors(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return NodeNetworkErrors{noop.Int64Counter{}}, err
|
||||
return NodeNetworkErrors{noop.Int64Counter{}}, err
|
||||
}
|
||||
return NodeNetworkErrors{i}, nil
|
||||
}
|
||||
@@ -1678,7 +1678,7 @@ func NewNodeNetworkIO(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return NodeNetworkIO{noop.Int64Counter{}}, err
|
||||
return NodeNetworkIO{noop.Int64Counter{}}, err
|
||||
}
|
||||
return NodeNetworkIO{i}, nil
|
||||
}
|
||||
@@ -1766,7 +1766,7 @@ func NewNodeUptime(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return NodeUptime{noop.Float64Gauge{}}, err
|
||||
return NodeUptime{noop.Float64Gauge{}}, err
|
||||
}
|
||||
return NodeUptime{i}, nil
|
||||
}
|
||||
@@ -1836,7 +1836,7 @@ func NewPodCPUTime(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return PodCPUTime{noop.Float64Counter{}}, err
|
||||
return PodCPUTime{noop.Float64Counter{}}, err
|
||||
}
|
||||
return PodCPUTime{i}, nil
|
||||
}
|
||||
@@ -1905,7 +1905,7 @@ func NewPodCPUUsage(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return PodCPUUsage{noop.Int64Gauge{}}, err
|
||||
return PodCPUUsage{noop.Int64Gauge{}}, err
|
||||
}
|
||||
return PodCPUUsage{i}, nil
|
||||
}
|
||||
@@ -1974,7 +1974,7 @@ func NewPodMemoryUsage(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return PodMemoryUsage{noop.Int64Gauge{}}, err
|
||||
return PodMemoryUsage{noop.Int64Gauge{}}, err
|
||||
}
|
||||
return PodMemoryUsage{i}, nil
|
||||
}
|
||||
@@ -2042,7 +2042,7 @@ func NewPodNetworkErrors(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return PodNetworkErrors{noop.Int64Counter{}}, err
|
||||
return PodNetworkErrors{noop.Int64Counter{}}, err
|
||||
}
|
||||
return PodNetworkErrors{i}, nil
|
||||
}
|
||||
@@ -2130,7 +2130,7 @@ func NewPodNetworkIO(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return PodNetworkIO{noop.Int64Counter{}}, err
|
||||
return PodNetworkIO{noop.Int64Counter{}}, err
|
||||
}
|
||||
return PodNetworkIO{i}, nil
|
||||
}
|
||||
@@ -2218,7 +2218,7 @@ func NewPodUptime(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return PodUptime{noop.Float64Gauge{}}, err
|
||||
return PodUptime{noop.Float64Gauge{}}, err
|
||||
}
|
||||
return PodUptime{i}, nil
|
||||
}
|
||||
@@ -2289,7 +2289,7 @@ func NewReplicaSetAvailablePods(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ReplicaSetAvailablePods{noop.Int64UpDownCounter{}}, err
|
||||
return ReplicaSetAvailablePods{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return ReplicaSetAvailablePods{i}, nil
|
||||
}
|
||||
@@ -2365,7 +2365,7 @@ func NewReplicaSetDesiredPods(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ReplicaSetDesiredPods{noop.Int64UpDownCounter{}}, err
|
||||
return ReplicaSetDesiredPods{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return ReplicaSetDesiredPods{i}, nil
|
||||
}
|
||||
@@ -2443,7 +2443,7 @@ func NewReplicationControllerAvailablePods(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ReplicationControllerAvailablePods{noop.Int64UpDownCounter{}}, err
|
||||
return ReplicationControllerAvailablePods{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return ReplicationControllerAvailablePods{i}, nil
|
||||
}
|
||||
@@ -2521,7 +2521,7 @@ func NewReplicationControllerDesiredPods(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ReplicationControllerDesiredPods{noop.Int64UpDownCounter{}}, err
|
||||
return ReplicationControllerDesiredPods{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return ReplicationControllerDesiredPods{i}, nil
|
||||
}
|
||||
@@ -2598,7 +2598,7 @@ func NewStatefulSetCurrentPods(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return StatefulSetCurrentPods{noop.Int64UpDownCounter{}}, err
|
||||
return StatefulSetCurrentPods{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return StatefulSetCurrentPods{i}, nil
|
||||
}
|
||||
@@ -2674,7 +2674,7 @@ func NewStatefulSetDesiredPods(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return StatefulSetDesiredPods{noop.Int64UpDownCounter{}}, err
|
||||
return StatefulSetDesiredPods{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return StatefulSetDesiredPods{i}, nil
|
||||
}
|
||||
@@ -2750,7 +2750,7 @@ func NewStatefulSetReadyPods(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return StatefulSetReadyPods{noop.Int64UpDownCounter{}}, err
|
||||
return StatefulSetReadyPods{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return StatefulSetReadyPods{i}, nil
|
||||
}
|
||||
@@ -2827,7 +2827,7 @@ func NewStatefulSetUpdatedPods(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return StatefulSetUpdatedPods{noop.Int64UpDownCounter{}}, err
|
||||
return StatefulSetUpdatedPods{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return StatefulSetUpdatedPods{i}, nil
|
||||
}
|
||||
@@ -2876,4 +2876,4 @@ func (m StatefulSetUpdatedPods) Add(ctx context.Context, incr int64, attrs ...at
|
||||
|
||||
*o = append(*o, metric.WithAttributes(attrs...))
|
||||
m.Int64UpDownCounter.Add(ctx, incr, *o...)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -111,7 +111,7 @@ func NewClientConsumedMessages(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ClientConsumedMessages{noop.Int64Counter{}}, err
|
||||
return ClientConsumedMessages{noop.Int64Counter{}}, err
|
||||
}
|
||||
return ClientConsumedMessages{i}, nil
|
||||
}
|
||||
@@ -260,7 +260,7 @@ func NewClientOperationDuration(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ClientOperationDuration{noop.Float64Histogram{}}, err
|
||||
return ClientOperationDuration{noop.Float64Histogram{}}, err
|
||||
}
|
||||
return ClientOperationDuration{i}, nil
|
||||
}
|
||||
@@ -411,7 +411,7 @@ func NewClientSentMessages(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ClientSentMessages{noop.Int64Counter{}}, err
|
||||
return ClientSentMessages{noop.Int64Counter{}}, err
|
||||
}
|
||||
return ClientSentMessages{i}, nil
|
||||
}
|
||||
@@ -541,7 +541,7 @@ func NewProcessDuration(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ProcessDuration{noop.Float64Histogram{}}, err
|
||||
return ProcessDuration{noop.Float64Histogram{}}, err
|
||||
}
|
||||
return ProcessDuration{i}, nil
|
||||
}
|
||||
@@ -658,4 +658,4 @@ func (ProcessDuration) AttrDestinationPartitionID(val string) attribute.KeyValue
|
||||
// convention. It represents the server port number.
|
||||
func (ProcessDuration) AttrServerPort(val int) attribute.KeyValue {
|
||||
return attribute.Int("server.port", val)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -109,7 +109,7 @@ func NewSDKExporterLogExported(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return SDKExporterLogExported{noop.Int64Counter{}}, err
|
||||
return SDKExporterLogExported{noop.Int64Counter{}}, err
|
||||
}
|
||||
return SDKExporterLogExported{i}, nil
|
||||
}
|
||||
@@ -226,7 +226,7 @@ func NewSDKExporterLogInflight(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return SDKExporterLogInflight{noop.Int64UpDownCounter{}}, err
|
||||
return SDKExporterLogInflight{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return SDKExporterLogInflight{i}, nil
|
||||
}
|
||||
@@ -332,7 +332,7 @@ func NewSDKExporterSpanExportedCount(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return SDKExporterSpanExportedCount{noop.Int64Counter{}}, err
|
||||
return SDKExporterSpanExportedCount{noop.Int64Counter{}}, err
|
||||
}
|
||||
return SDKExporterSpanExportedCount{i}, nil
|
||||
}
|
||||
@@ -451,7 +451,7 @@ func NewSDKExporterSpanInflightCount(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return SDKExporterSpanInflightCount{noop.Int64UpDownCounter{}}, err
|
||||
return SDKExporterSpanInflightCount{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return SDKExporterSpanInflightCount{i}, nil
|
||||
}
|
||||
@@ -555,7 +555,7 @@ func NewSDKLogCreated(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return SDKLogCreated{noop.Int64Counter{}}, err
|
||||
return SDKLogCreated{noop.Int64Counter{}}, err
|
||||
}
|
||||
return SDKLogCreated{i}, nil
|
||||
}
|
||||
@@ -623,7 +623,7 @@ func NewSDKProcessorLogProcessed(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return SDKProcessorLogProcessed{noop.Int64Counter{}}, err
|
||||
return SDKProcessorLogProcessed{noop.Int64Counter{}}, err
|
||||
}
|
||||
return SDKProcessorLogProcessed{i}, nil
|
||||
}
|
||||
@@ -727,7 +727,7 @@ func NewSDKProcessorLogQueueCapacity(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return SDKProcessorLogQueueCapacity{noop.Int64UpDownCounter{}}, err
|
||||
return SDKProcessorLogQueueCapacity{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return SDKProcessorLogQueueCapacity{i}, nil
|
||||
}
|
||||
@@ -819,7 +819,7 @@ func NewSDKProcessorLogQueueSize(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return SDKProcessorLogQueueSize{noop.Int64UpDownCounter{}}, err
|
||||
return SDKProcessorLogQueueSize{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return SDKProcessorLogQueueSize{i}, nil
|
||||
}
|
||||
@@ -912,7 +912,7 @@ func NewSDKProcessorSpanProcessedCount(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return SDKProcessorSpanProcessedCount{noop.Int64Counter{}}, err
|
||||
return SDKProcessorSpanProcessedCount{noop.Int64Counter{}}, err
|
||||
}
|
||||
return SDKProcessorSpanProcessedCount{i}, nil
|
||||
}
|
||||
@@ -1016,7 +1016,7 @@ func NewSDKProcessorSpanQueueCapacity(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return SDKProcessorSpanQueueCapacity{noop.Int64UpDownCounter{}}, err
|
||||
return SDKProcessorSpanQueueCapacity{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return SDKProcessorSpanQueueCapacity{i}, nil
|
||||
}
|
||||
@@ -1109,7 +1109,7 @@ func NewSDKProcessorSpanQueueSize(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return SDKProcessorSpanQueueSize{noop.Int64UpDownCounter{}}, err
|
||||
return SDKProcessorSpanQueueSize{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return SDKProcessorSpanQueueSize{i}, nil
|
||||
}
|
||||
@@ -1200,7 +1200,7 @@ func NewSDKSpanEndedCount(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return SDKSpanEndedCount{noop.Int64Counter{}}, err
|
||||
return SDKSpanEndedCount{noop.Int64Counter{}}, err
|
||||
}
|
||||
return SDKSpanEndedCount{i}, nil
|
||||
}
|
||||
@@ -1286,7 +1286,7 @@ func NewSDKSpanLiveCount(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return SDKSpanLiveCount{noop.Int64UpDownCounter{}}, err
|
||||
return SDKSpanLiveCount{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return SDKSpanLiveCount{i}, nil
|
||||
}
|
||||
@@ -1345,4 +1345,4 @@ func (m SDKSpanLiveCount) Add(
|
||||
// value of the sampler for this span.
|
||||
func (SDKSpanLiveCount) AttrSpanSamplingResult(val SpanSamplingResultAttr) attribute.KeyValue {
|
||||
return attribute.String("otel.span.sampling_result", string(val))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -118,7 +118,7 @@ func NewContextSwitches(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ContextSwitches{noop.Int64Counter{}}, err
|
||||
return ContextSwitches{noop.Int64Counter{}}, err
|
||||
}
|
||||
return ContextSwitches{i}, nil
|
||||
}
|
||||
@@ -200,7 +200,7 @@ func NewCPUTime(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return CPUTime{noop.Float64ObservableCounter{}}, err
|
||||
return CPUTime{noop.Float64ObservableCounter{}}, err
|
||||
}
|
||||
return CPUTime{i}, nil
|
||||
}
|
||||
@@ -258,7 +258,7 @@ func NewCPUUtilization(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return CPUUtilization{noop.Int64Gauge{}}, err
|
||||
return CPUUtilization{noop.Int64Gauge{}}, err
|
||||
}
|
||||
return CPUUtilization{i}, nil
|
||||
}
|
||||
@@ -339,7 +339,7 @@ func NewDiskIO(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return DiskIO{noop.Int64Counter{}}, err
|
||||
return DiskIO{noop.Int64Counter{}}, err
|
||||
}
|
||||
return DiskIO{i}, nil
|
||||
}
|
||||
@@ -419,7 +419,7 @@ func NewMemoryUsage(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return MemoryUsage{noop.Int64UpDownCounter{}}, err
|
||||
return MemoryUsage{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return MemoryUsage{i}, nil
|
||||
}
|
||||
@@ -486,7 +486,7 @@ func NewMemoryVirtual(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return MemoryVirtual{noop.Int64UpDownCounter{}}, err
|
||||
return MemoryVirtual{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return MemoryVirtual{i}, nil
|
||||
}
|
||||
@@ -553,7 +553,7 @@ func NewNetworkIO(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return NetworkIO{noop.Int64Counter{}}, err
|
||||
return NetworkIO{noop.Int64Counter{}}, err
|
||||
}
|
||||
return NetworkIO{i}, nil
|
||||
}
|
||||
@@ -634,7 +634,7 @@ func NewOpenFileDescriptorCount(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return OpenFileDescriptorCount{noop.Int64UpDownCounter{}}, err
|
||||
return OpenFileDescriptorCount{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return OpenFileDescriptorCount{i}, nil
|
||||
}
|
||||
@@ -701,7 +701,7 @@ func NewPagingFaults(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return PagingFaults{noop.Int64Counter{}}, err
|
||||
return PagingFaults{noop.Int64Counter{}}, err
|
||||
}
|
||||
return PagingFaults{i}, nil
|
||||
}
|
||||
@@ -783,7 +783,7 @@ func NewThreadCount(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ThreadCount{noop.Int64UpDownCounter{}}, err
|
||||
return ThreadCount{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return ThreadCount{i}, nil
|
||||
}
|
||||
@@ -850,7 +850,7 @@ func NewUptime(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return Uptime{noop.Float64Gauge{}}, err
|
||||
return Uptime{noop.Float64Gauge{}}, err
|
||||
}
|
||||
return Uptime{i}, nil
|
||||
}
|
||||
@@ -893,4 +893,4 @@ func (m Uptime) Record(ctx context.Context, val float64, attrs ...attribute.KeyV
|
||||
|
||||
*o = append(*o, metric.WithAttributes(attrs...))
|
||||
m.Float64Gauge.Record(ctx, val, *o...)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@ func NewClientDuration(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ClientDuration{noop.Float64Histogram{}}, err
|
||||
return ClientDuration{noop.Float64Histogram{}}, err
|
||||
}
|
||||
return ClientDuration{i}, nil
|
||||
}
|
||||
@@ -117,7 +117,7 @@ func NewClientRequestSize(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ClientRequestSize{noop.Int64Histogram{}}, err
|
||||
return ClientRequestSize{noop.Int64Histogram{}}, err
|
||||
}
|
||||
return ClientRequestSize{i}, nil
|
||||
}
|
||||
@@ -185,7 +185,7 @@ func NewClientRequestsPerRPC(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ClientRequestsPerRPC{noop.Int64Histogram{}}, err
|
||||
return ClientRequestsPerRPC{noop.Int64Histogram{}}, err
|
||||
}
|
||||
return ClientRequestsPerRPC{i}, nil
|
||||
}
|
||||
@@ -255,7 +255,7 @@ func NewClientResponseSize(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ClientResponseSize{noop.Int64Histogram{}}, err
|
||||
return ClientResponseSize{noop.Int64Histogram{}}, err
|
||||
}
|
||||
return ClientResponseSize{i}, nil
|
||||
}
|
||||
@@ -323,7 +323,7 @@ func NewClientResponsesPerRPC(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ClientResponsesPerRPC{noop.Int64Histogram{}}, err
|
||||
return ClientResponsesPerRPC{noop.Int64Histogram{}}, err
|
||||
}
|
||||
return ClientResponsesPerRPC{i}, nil
|
||||
}
|
||||
@@ -393,7 +393,7 @@ func NewServerDuration(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ServerDuration{noop.Float64Histogram{}}, err
|
||||
return ServerDuration{noop.Float64Histogram{}}, err
|
||||
}
|
||||
return ServerDuration{i}, nil
|
||||
}
|
||||
@@ -464,7 +464,7 @@ func NewServerRequestSize(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ServerRequestSize{noop.Int64Histogram{}}, err
|
||||
return ServerRequestSize{noop.Int64Histogram{}}, err
|
||||
}
|
||||
return ServerRequestSize{i}, nil
|
||||
}
|
||||
@@ -532,7 +532,7 @@ func NewServerRequestsPerRPC(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ServerRequestsPerRPC{noop.Int64Histogram{}}, err
|
||||
return ServerRequestsPerRPC{noop.Int64Histogram{}}, err
|
||||
}
|
||||
return ServerRequestsPerRPC{i}, nil
|
||||
}
|
||||
@@ -602,7 +602,7 @@ func NewServerResponseSize(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ServerResponseSize{noop.Int64Histogram{}}, err
|
||||
return ServerResponseSize{noop.Int64Histogram{}}, err
|
||||
}
|
||||
return ServerResponseSize{i}, nil
|
||||
}
|
||||
@@ -670,7 +670,7 @@ func NewServerResponsesPerRPC(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ServerResponsesPerRPC{noop.Int64Histogram{}}, err
|
||||
return ServerResponsesPerRPC{noop.Int64Histogram{}}, err
|
||||
}
|
||||
return ServerResponsesPerRPC{i}, nil
|
||||
}
|
||||
@@ -713,4 +713,4 @@ func (m ServerResponsesPerRPC) Record(ctx context.Context, val int64, attrs ...a
|
||||
|
||||
*o = append(*o, metric.WithAttributes(attrs...))
|
||||
m.Int64Histogram.Record(ctx, val, *o...)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -76,7 +76,7 @@ func NewServerActiveConnections(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ServerActiveConnections{noop.Int64UpDownCounter{}}, err
|
||||
return ServerActiveConnections{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return ServerActiveConnections{i}, nil
|
||||
}
|
||||
@@ -168,7 +168,7 @@ func NewServerConnectionDuration(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ServerConnectionDuration{noop.Float64Histogram{}}, err
|
||||
return ServerConnectionDuration{noop.Float64Histogram{}}, err
|
||||
}
|
||||
return ServerConnectionDuration{i}, nil
|
||||
}
|
||||
@@ -233,4 +233,4 @@ func (ServerConnectionDuration) AttrConnectionStatus(val ConnectionStatusAttr) a
|
||||
// [SignalR transport type]: https://github.com/dotnet/aspnetcore/blob/main/src/SignalR/docs/specs/TransportProtocols.md
|
||||
func (ServerConnectionDuration) AttrTransport(val TransportAttr) attribute.KeyValue {
|
||||
return attribute.String("signalr.transport", string(val))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -230,7 +230,7 @@ func NewCPULogicalCount(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return CPULogicalCount{noop.Int64UpDownCounter{}}, err
|
||||
return CPULogicalCount{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return CPULogicalCount{i}, nil
|
||||
}
|
||||
@@ -300,7 +300,7 @@ func NewCPUPhysicalCount(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return CPUPhysicalCount{noop.Int64UpDownCounter{}}, err
|
||||
return CPUPhysicalCount{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return CPUPhysicalCount{i}, nil
|
||||
}
|
||||
@@ -369,7 +369,7 @@ func NewDiskIO(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return DiskIO{noop.Int64Counter{}}, err
|
||||
return DiskIO{noop.Int64Counter{}}, err
|
||||
}
|
||||
return DiskIO{i}, nil
|
||||
}
|
||||
@@ -450,7 +450,7 @@ func NewDiskIOTime(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return DiskIOTime{noop.Float64Counter{}}, err
|
||||
return DiskIOTime{noop.Float64Counter{}}, err
|
||||
}
|
||||
return DiskIOTime{i}, nil
|
||||
}
|
||||
@@ -542,7 +542,7 @@ func NewDiskLimit(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return DiskLimit{noop.Int64UpDownCounter{}}, err
|
||||
return DiskLimit{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return DiskLimit{i}, nil
|
||||
}
|
||||
@@ -621,7 +621,7 @@ func NewDiskMerged(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return DiskMerged{noop.Int64Counter{}}, err
|
||||
return DiskMerged{noop.Int64Counter{}}, err
|
||||
}
|
||||
return DiskMerged{i}, nil
|
||||
}
|
||||
@@ -702,7 +702,7 @@ func NewDiskOperationTime(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return DiskOperationTime{noop.Float64Counter{}}, err
|
||||
return DiskOperationTime{noop.Float64Counter{}}, err
|
||||
}
|
||||
return DiskOperationTime{i}, nil
|
||||
}
|
||||
@@ -797,7 +797,7 @@ func NewDiskOperations(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return DiskOperations{noop.Int64Counter{}}, err
|
||||
return DiskOperations{noop.Int64Counter{}}, err
|
||||
}
|
||||
return DiskOperations{i}, nil
|
||||
}
|
||||
@@ -878,7 +878,7 @@ func NewFilesystemLimit(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return FilesystemLimit{noop.Int64UpDownCounter{}}, err
|
||||
return FilesystemLimit{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return FilesystemLimit{i}, nil
|
||||
}
|
||||
@@ -980,7 +980,7 @@ func NewFilesystemUsage(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return FilesystemUsage{noop.Int64UpDownCounter{}}, err
|
||||
return FilesystemUsage{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return FilesystemUsage{i}, nil
|
||||
}
|
||||
@@ -1093,7 +1093,7 @@ func NewFilesystemUtilization(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return FilesystemUtilization{noop.Int64Gauge{}}, err
|
||||
return FilesystemUtilization{noop.Int64Gauge{}}, err
|
||||
}
|
||||
return FilesystemUtilization{i}, nil
|
||||
}
|
||||
@@ -1198,7 +1198,7 @@ func NewLinuxMemoryAvailable(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return LinuxMemoryAvailable{noop.Int64UpDownCounter{}}, err
|
||||
return LinuxMemoryAvailable{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return LinuxMemoryAvailable{i}, nil
|
||||
}
|
||||
@@ -1276,7 +1276,7 @@ func NewLinuxMemorySlabUsage(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return LinuxMemorySlabUsage{noop.Int64UpDownCounter{}}, err
|
||||
return LinuxMemorySlabUsage{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return LinuxMemorySlabUsage{i}, nil
|
||||
}
|
||||
@@ -1366,7 +1366,7 @@ func NewMemoryLimit(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return MemoryLimit{noop.Int64UpDownCounter{}}, err
|
||||
return MemoryLimit{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return MemoryLimit{i}, nil
|
||||
}
|
||||
@@ -1435,7 +1435,7 @@ func NewMemoryShared(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return MemoryShared{noop.Int64UpDownCounter{}}, err
|
||||
return MemoryShared{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return MemoryShared{i}, nil
|
||||
}
|
||||
@@ -1508,7 +1508,7 @@ func NewMemoryUsage(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return MemoryUsage{noop.Int64ObservableGauge{}}, err
|
||||
return MemoryUsage{noop.Int64ObservableGauge{}}, err
|
||||
}
|
||||
return MemoryUsage{i}, nil
|
||||
}
|
||||
@@ -1563,7 +1563,7 @@ func NewMemoryUtilization(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return MemoryUtilization{noop.Float64ObservableGauge{}}, err
|
||||
return MemoryUtilization{noop.Float64ObservableGauge{}}, err
|
||||
}
|
||||
return MemoryUtilization{i}, nil
|
||||
}
|
||||
@@ -1613,7 +1613,7 @@ func NewNetworkConnections(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return NetworkConnections{noop.Int64UpDownCounter{}}, err
|
||||
return NetworkConnections{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return NetworkConnections{i}, nil
|
||||
}
|
||||
@@ -1706,7 +1706,7 @@ func NewNetworkDropped(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return NetworkDropped{noop.Int64Counter{}}, err
|
||||
return NetworkDropped{noop.Int64Counter{}}, err
|
||||
}
|
||||
return NetworkDropped{i}, nil
|
||||
}
|
||||
@@ -1805,7 +1805,7 @@ func NewNetworkErrors(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return NetworkErrors{noop.Int64Counter{}}, err
|
||||
return NetworkErrors{noop.Int64Counter{}}, err
|
||||
}
|
||||
return NetworkErrors{i}, nil
|
||||
}
|
||||
@@ -1903,7 +1903,7 @@ func NewNetworkIO(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return NetworkIO{noop.Int64ObservableCounter{}}, err
|
||||
return NetworkIO{noop.Int64ObservableCounter{}}, err
|
||||
}
|
||||
return NetworkIO{i}, nil
|
||||
}
|
||||
@@ -1961,7 +1961,7 @@ func NewNetworkPackets(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return NetworkPackets{noop.Int64Counter{}}, err
|
||||
return NetworkPackets{noop.Int64Counter{}}, err
|
||||
}
|
||||
return NetworkPackets{i}, nil
|
||||
}
|
||||
@@ -2042,7 +2042,7 @@ func NewPagingFaults(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return PagingFaults{noop.Int64Counter{}}, err
|
||||
return PagingFaults{noop.Int64Counter{}}, err
|
||||
}
|
||||
return PagingFaults{i}, nil
|
||||
}
|
||||
@@ -2116,7 +2116,7 @@ func NewPagingOperations(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return PagingOperations{noop.Int64Counter{}}, err
|
||||
return PagingOperations{noop.Int64Counter{}}, err
|
||||
}
|
||||
return PagingOperations{i}, nil
|
||||
}
|
||||
@@ -2198,7 +2198,7 @@ func NewPagingUsage(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return PagingUsage{noop.Int64UpDownCounter{}}, err
|
||||
return PagingUsage{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return PagingUsage{i}, nil
|
||||
}
|
||||
@@ -2284,7 +2284,7 @@ func NewPagingUtilization(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return PagingUtilization{noop.Int64Gauge{}}, err
|
||||
return PagingUtilization{noop.Int64Gauge{}}, err
|
||||
}
|
||||
return PagingUtilization{i}, nil
|
||||
}
|
||||
@@ -2366,7 +2366,7 @@ func NewProcessCount(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ProcessCount{noop.Int64UpDownCounter{}}, err
|
||||
return ProcessCount{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return ProcessCount{i}, nil
|
||||
}
|
||||
@@ -2449,7 +2449,7 @@ func NewProcessCreated(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ProcessCreated{noop.Int64Counter{}}, err
|
||||
return ProcessCreated{noop.Int64Counter{}}, err
|
||||
}
|
||||
return ProcessCreated{i}, nil
|
||||
}
|
||||
@@ -2516,7 +2516,7 @@ func NewUptime(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return Uptime{noop.Float64Gauge{}}, err
|
||||
return Uptime{noop.Float64Gauge{}}, err
|
||||
}
|
||||
return Uptime{i}, nil
|
||||
}
|
||||
@@ -2559,4 +2559,4 @@ func (m Uptime) Record(ctx context.Context, val float64, attrs ...attribute.KeyV
|
||||
|
||||
*o = append(*o, metric.WithAttributes(attrs...))
|
||||
m.Float64Gauge.Record(ctx, val, *o...)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -171,7 +171,7 @@ func NewChangeCount(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ChangeCount{noop.Int64UpDownCounter{}}, err
|
||||
return ChangeCount{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return ChangeCount{i}, nil
|
||||
}
|
||||
@@ -281,7 +281,7 @@ func NewChangeDuration(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ChangeDuration{noop.Float64Gauge{}}, err
|
||||
return ChangeDuration{noop.Float64Gauge{}}, err
|
||||
}
|
||||
return ChangeDuration{i}, nil
|
||||
}
|
||||
@@ -398,7 +398,7 @@ func NewChangeTimeToApproval(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ChangeTimeToApproval{noop.Float64Gauge{}}, err
|
||||
return ChangeTimeToApproval{noop.Float64Gauge{}}, err
|
||||
}
|
||||
return ChangeTimeToApproval{i}, nil
|
||||
}
|
||||
@@ -539,7 +539,7 @@ func NewChangeTimeToMerge(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ChangeTimeToMerge{noop.Float64Gauge{}}, err
|
||||
return ChangeTimeToMerge{noop.Float64Gauge{}}, err
|
||||
}
|
||||
return ChangeTimeToMerge{i}, nil
|
||||
}
|
||||
@@ -679,7 +679,7 @@ func NewContributorCount(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ContributorCount{noop.Int64Gauge{}}, err
|
||||
return ContributorCount{noop.Int64Gauge{}}, err
|
||||
}
|
||||
return ContributorCount{i}, nil
|
||||
}
|
||||
@@ -784,7 +784,7 @@ func NewRefCount(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return RefCount{noop.Int64UpDownCounter{}}, err
|
||||
return RefCount{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return RefCount{i}, nil
|
||||
}
|
||||
@@ -895,7 +895,7 @@ func NewRefLinesDelta(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return RefLinesDelta{noop.Int64Gauge{}}, err
|
||||
return RefLinesDelta{noop.Int64Gauge{}}, err
|
||||
}
|
||||
return RefLinesDelta{i}, nil
|
||||
}
|
||||
@@ -1043,7 +1043,7 @@ func NewRefRevisionsDelta(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return RefRevisionsDelta{noop.Int64Gauge{}}, err
|
||||
return RefRevisionsDelta{noop.Int64Gauge{}}, err
|
||||
}
|
||||
return RefRevisionsDelta{i}, nil
|
||||
}
|
||||
@@ -1188,7 +1188,7 @@ func NewRefTime(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return RefTime{noop.Float64Gauge{}}, err
|
||||
return RefTime{noop.Float64Gauge{}}, err
|
||||
}
|
||||
return RefTime{i}, nil
|
||||
}
|
||||
@@ -1304,7 +1304,7 @@ func NewRepositoryCount(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return RepositoryCount{noop.Int64UpDownCounter{}}, err
|
||||
return RepositoryCount{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return RepositoryCount{i}, nil
|
||||
}
|
||||
@@ -1364,4 +1364,4 @@ func (RepositoryCount) AttrOwnerName(val string) attribute.KeyValue {
|
||||
// provider.
|
||||
func (RepositoryCount) AttrProviderName(val ProviderNameAttr) attribute.KeyValue {
|
||||
return attribute.String("vcs.provider.name", string(val))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user