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.36.0 (#7663)
- Replace spaces with tabs - Include a newline at the end of the file
This commit is contained in:
@@ -83,7 +83,7 @@ func NewCosmosDBClientActiveInstanceCount(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return CosmosDBClientActiveInstanceCount{noop.Int64UpDownCounter{}}, err
|
||||
return CosmosDBClientActiveInstanceCount{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return CosmosDBClientActiveInstanceCount{i}, nil
|
||||
}
|
||||
@@ -195,7 +195,7 @@ func NewCosmosDBClientOperationRequestCharge(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return CosmosDBClientOperationRequestCharge{noop.Int64Histogram{}}, err
|
||||
return CosmosDBClientOperationRequestCharge{noop.Int64Histogram{}}, err
|
||||
}
|
||||
return CosmosDBClientOperationRequestCharge{i}, nil
|
||||
}
|
||||
@@ -336,4 +336,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
|
||||
}
|
||||
@@ -221,7 +221,7 @@ func NewPipelineRunDuration(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return PipelineRunDuration{noop.Float64Histogram{}}, err
|
||||
return PipelineRunDuration{noop.Float64Histogram{}}, err
|
||||
}
|
||||
return PipelineRunDuration{i}, nil
|
||||
}
|
||||
@@ -343,7 +343,7 @@ func NewPipelineRunErrors(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return PipelineRunErrors{noop.Int64Counter{}}, err
|
||||
return PipelineRunErrors{noop.Int64Counter{}}, err
|
||||
}
|
||||
return PipelineRunErrors{i}, nil
|
||||
}
|
||||
@@ -458,7 +458,7 @@ func NewSystemErrors(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return SystemErrors{noop.Int64Counter{}}, err
|
||||
return SystemErrors{noop.Int64Counter{}}, err
|
||||
}
|
||||
return SystemErrors{i}, nil
|
||||
}
|
||||
@@ -568,7 +568,7 @@ func NewWorkerCount(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return WorkerCount{noop.Int64UpDownCounter{}}, err
|
||||
return WorkerCount{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return WorkerCount{i}, nil
|
||||
}
|
||||
@@ -641,4 +641,4 @@ func (m WorkerCount) AddSet(ctx context.Context, incr int64, set attribute.Set)
|
||||
|
||||
*o = append(*o, metric.WithAttributeSet(set))
|
||||
m.Int64UpDownCounter.Add(ctx, incr, *o...)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -96,7 +96,7 @@ func NewCPUTime(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return CPUTime{noop.Float64Counter{}}, err
|
||||
return CPUTime{noop.Float64Counter{}}, err
|
||||
}
|
||||
return CPUTime{i}, nil
|
||||
}
|
||||
@@ -204,7 +204,7 @@ func NewCPUUsage(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return CPUUsage{noop.Int64Gauge{}}, err
|
||||
return CPUUsage{noop.Int64Gauge{}}, err
|
||||
}
|
||||
return CPUUsage{i}, nil
|
||||
}
|
||||
@@ -314,7 +314,7 @@ func NewDiskIO(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return DiskIO{noop.Int64Counter{}}, err
|
||||
return DiskIO{noop.Int64Counter{}}, err
|
||||
}
|
||||
return DiskIO{i}, nil
|
||||
}
|
||||
@@ -428,7 +428,7 @@ func NewMemoryUsage(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return MemoryUsage{noop.Int64Counter{}}, err
|
||||
return MemoryUsage{noop.Int64Counter{}}, err
|
||||
}
|
||||
return MemoryUsage{i}, nil
|
||||
}
|
||||
@@ -516,7 +516,7 @@ func NewNetworkIO(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return NetworkIO{noop.Int64Counter{}}, err
|
||||
return NetworkIO{noop.Int64Counter{}}, err
|
||||
}
|
||||
return NetworkIO{i}, nil
|
||||
}
|
||||
@@ -630,7 +630,7 @@ func NewUptime(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return Uptime{noop.Float64Gauge{}}, err
|
||||
return Uptime{noop.Float64Gauge{}}, err
|
||||
}
|
||||
return Uptime{i}, nil
|
||||
}
|
||||
@@ -695,4 +695,4 @@ func (m Uptime) RecordSet(ctx context.Context, val float64, set attribute.Set) {
|
||||
|
||||
*o = append(*o, metric.WithAttributeSet(set))
|
||||
m.Float64Gauge.Record(ctx, val, *o...)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -242,7 +242,7 @@ func NewClientConnectionCount(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ClientConnectionCount{noop.Int64UpDownCounter{}}, err
|
||||
return ClientConnectionCount{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return ClientConnectionCount{i}, nil
|
||||
}
|
||||
@@ -353,7 +353,7 @@ func NewClientConnectionCreateTime(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ClientConnectionCreateTime{noop.Float64Histogram{}}, err
|
||||
return ClientConnectionCreateTime{noop.Float64Histogram{}}, err
|
||||
}
|
||||
return ClientConnectionCreateTime{i}, nil
|
||||
}
|
||||
@@ -459,7 +459,7 @@ func NewClientConnectionIdleMax(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ClientConnectionIdleMax{noop.Int64UpDownCounter{}}, err
|
||||
return ClientConnectionIdleMax{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return ClientConnectionIdleMax{i}, nil
|
||||
}
|
||||
@@ -565,7 +565,7 @@ func NewClientConnectionIdleMin(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ClientConnectionIdleMin{noop.Int64UpDownCounter{}}, err
|
||||
return ClientConnectionIdleMin{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return ClientConnectionIdleMin{i}, nil
|
||||
}
|
||||
@@ -671,7 +671,7 @@ func NewClientConnectionMax(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ClientConnectionMax{noop.Int64UpDownCounter{}}, err
|
||||
return ClientConnectionMax{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return ClientConnectionMax{i}, nil
|
||||
}
|
||||
@@ -779,7 +779,7 @@ func NewClientConnectionPendingRequests(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ClientConnectionPendingRequests{noop.Int64UpDownCounter{}}, err
|
||||
return ClientConnectionPendingRequests{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return ClientConnectionPendingRequests{i}, nil
|
||||
}
|
||||
@@ -886,7 +886,7 @@ func NewClientConnectionTimeouts(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ClientConnectionTimeouts{noop.Int64Counter{}}, err
|
||||
return ClientConnectionTimeouts{noop.Int64Counter{}}, err
|
||||
}
|
||||
return ClientConnectionTimeouts{i}, nil
|
||||
}
|
||||
@@ -993,7 +993,7 @@ func NewClientConnectionUseTime(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ClientConnectionUseTime{noop.Float64Histogram{}}, err
|
||||
return ClientConnectionUseTime{noop.Float64Histogram{}}, err
|
||||
}
|
||||
return ClientConnectionUseTime{i}, nil
|
||||
}
|
||||
@@ -1099,7 +1099,7 @@ func NewClientConnectionWaitTime(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ClientConnectionWaitTime{noop.Float64Histogram{}}, err
|
||||
return ClientConnectionWaitTime{noop.Float64Histogram{}}, err
|
||||
}
|
||||
return ClientConnectionWaitTime{i}, nil
|
||||
}
|
||||
@@ -1205,7 +1205,7 @@ func NewClientOperationDuration(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ClientOperationDuration{noop.Float64Histogram{}}, err
|
||||
return ClientOperationDuration{noop.Float64Histogram{}}, err
|
||||
}
|
||||
return ClientOperationDuration{i}, nil
|
||||
}
|
||||
@@ -1394,7 +1394,7 @@ func NewClientResponseReturnedRows(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ClientResponseReturnedRows{noop.Int64Histogram{}}, err
|
||||
return ClientResponseReturnedRows{noop.Int64Histogram{}}, err
|
||||
}
|
||||
return ClientResponseReturnedRows{i}, nil
|
||||
}
|
||||
@@ -1544,4 +1544,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
|
||||
}
|
||||
@@ -137,4 +137,4 @@ func (m LookupDuration) RecordSet(ctx context.Context, val float64, set attribut
|
||||
// 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
|
||||
}
|
||||
@@ -169,7 +169,7 @@ func NewCPUUsage(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return CPUUsage{noop.Float64Histogram{}}, err
|
||||
return CPUUsage{noop.Float64Histogram{}}, err
|
||||
}
|
||||
return CPUUsage{i}, nil
|
||||
}
|
||||
@@ -272,7 +272,7 @@ func NewErrors(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return Errors{noop.Int64Counter{}}, err
|
||||
return Errors{noop.Int64Counter{}}, err
|
||||
}
|
||||
return Errors{i}, nil
|
||||
}
|
||||
@@ -375,7 +375,7 @@ func NewInitDuration(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return InitDuration{noop.Float64Histogram{}}, err
|
||||
return InitDuration{noop.Float64Histogram{}}, err
|
||||
}
|
||||
return InitDuration{i}, nil
|
||||
}
|
||||
@@ -478,7 +478,7 @@ func NewInvocations(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return Invocations{noop.Int64Counter{}}, err
|
||||
return Invocations{noop.Int64Counter{}}, err
|
||||
}
|
||||
return Invocations{i}, nil
|
||||
}
|
||||
@@ -581,7 +581,7 @@ func NewInvokeDuration(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return InvokeDuration{noop.Float64Histogram{}}, err
|
||||
return InvokeDuration{noop.Float64Histogram{}}, err
|
||||
}
|
||||
return InvokeDuration{i}, nil
|
||||
}
|
||||
@@ -684,7 +684,7 @@ func NewMemUsage(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return MemUsage{noop.Int64Histogram{}}, err
|
||||
return MemUsage{noop.Int64Histogram{}}, err
|
||||
}
|
||||
return MemUsage{i}, nil
|
||||
}
|
||||
@@ -787,7 +787,7 @@ func NewNetIO(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return NetIO{noop.Int64Histogram{}}, err
|
||||
return NetIO{noop.Int64Histogram{}}, err
|
||||
}
|
||||
return NetIO{i}, nil
|
||||
}
|
||||
@@ -890,7 +890,7 @@ func NewTimeouts(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return Timeouts{noop.Int64Counter{}}, err
|
||||
return Timeouts{noop.Int64Counter{}}, err
|
||||
}
|
||||
return Timeouts{i}, nil
|
||||
}
|
||||
@@ -966,4 +966,4 @@ func (m Timeouts) AddSet(ctx context.Context, incr int64, set attribute.Set) {
|
||||
// invocation.
|
||||
func (Timeouts) AttrTrigger(val TriggerAttr) attribute.KeyValue {
|
||||
return attribute.String("faas.trigger", string(val))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -139,7 +139,7 @@ func NewClientOperationDuration(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ClientOperationDuration{noop.Float64Histogram{}}, err
|
||||
return ClientOperationDuration{noop.Float64Histogram{}}, err
|
||||
}
|
||||
return ClientOperationDuration{i}, nil
|
||||
}
|
||||
@@ -279,7 +279,7 @@ func NewClientTokenUsage(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ClientTokenUsage{noop.Int64Histogram{}}, err
|
||||
return ClientTokenUsage{noop.Int64Histogram{}}, err
|
||||
}
|
||||
return ClientTokenUsage{i}, nil
|
||||
}
|
||||
@@ -417,7 +417,7 @@ func NewServerRequestDuration(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ServerRequestDuration{noop.Float64Histogram{}}, err
|
||||
return ServerRequestDuration{noop.Float64Histogram{}}, err
|
||||
}
|
||||
return ServerRequestDuration{i}, nil
|
||||
}
|
||||
@@ -558,7 +558,7 @@ func NewServerTimePerOutputToken(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ServerTimePerOutputToken{noop.Float64Histogram{}}, err
|
||||
return ServerTimePerOutputToken{noop.Float64Histogram{}}, err
|
||||
}
|
||||
return ServerTimePerOutputToken{i}, nil
|
||||
}
|
||||
@@ -691,7 +691,7 @@ func NewServerTimeToFirstToken(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ServerTimeToFirstToken{noop.Float64Histogram{}}, err
|
||||
return ServerTimeToFirstToken{noop.Float64Histogram{}}, err
|
||||
}
|
||||
return ServerTimeToFirstToken{i}, nil
|
||||
}
|
||||
@@ -797,4 +797,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.Int64ObservableUpDownCounter{}}, err
|
||||
return MemoryUsed{noop.Int64ObservableUpDownCounter{}}, 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
|
||||
}
|
||||
@@ -529,4 +529,4 @@ func (m ScheduleDuration) RecordSet(ctx context.Context, val float64, set attrib
|
||||
|
||||
*o = append(*o, metric.WithAttributeSet(set))
|
||||
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
|
||||
}
|
||||
@@ -244,7 +244,7 @@ func NewClientConnectionDuration(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ClientConnectionDuration{noop.Float64Histogram{}}, err
|
||||
return ClientConnectionDuration{noop.Float64Histogram{}}, err
|
||||
}
|
||||
return ClientConnectionDuration{i}, nil
|
||||
}
|
||||
@@ -378,7 +378,7 @@ func NewClientOpenConnections(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ClientOpenConnections{noop.Int64UpDownCounter{}}, err
|
||||
return ClientOpenConnections{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return ClientOpenConnections{i}, nil
|
||||
}
|
||||
@@ -516,7 +516,7 @@ func NewClientRequestBodySize(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ClientRequestBodySize{noop.Int64Histogram{}}, err
|
||||
return ClientRequestBodySize{noop.Int64Histogram{}}, err
|
||||
}
|
||||
return ClientRequestBodySize{i}, nil
|
||||
}
|
||||
@@ -695,7 +695,7 @@ func NewClientRequestDuration(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ClientRequestDuration{noop.Float64Histogram{}}, err
|
||||
return ClientRequestDuration{noop.Float64Histogram{}}, err
|
||||
}
|
||||
return ClientRequestDuration{i}, nil
|
||||
}
|
||||
@@ -860,7 +860,7 @@ func NewClientResponseBodySize(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ClientResponseBodySize{noop.Int64Histogram{}}, err
|
||||
return ClientResponseBodySize{noop.Int64Histogram{}}, err
|
||||
}
|
||||
return ClientResponseBodySize{i}, nil
|
||||
}
|
||||
@@ -1039,7 +1039,7 @@ func NewServerActiveRequests(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ServerActiveRequests{noop.Int64UpDownCounter{}}, err
|
||||
return ServerActiveRequests{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return ServerActiveRequests{i}, nil
|
||||
}
|
||||
@@ -1161,7 +1161,7 @@ func NewServerRequestBodySize(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ServerRequestBodySize{noop.Int64Histogram{}}, err
|
||||
return ServerRequestBodySize{noop.Int64Histogram{}}, err
|
||||
}
|
||||
return ServerRequestBodySize{i}, nil
|
||||
}
|
||||
@@ -1343,7 +1343,7 @@ func NewServerRequestDuration(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ServerRequestDuration{noop.Float64Histogram{}}, err
|
||||
return ServerRequestDuration{noop.Float64Histogram{}}, err
|
||||
}
|
||||
return ServerRequestDuration{i}, nil
|
||||
}
|
||||
@@ -1511,7 +1511,7 @@ func NewServerResponseBodySize(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ServerResponseBodySize{noop.Int64Histogram{}}, err
|
||||
return ServerResponseBodySize{noop.Int64Histogram{}}, err
|
||||
}
|
||||
return ServerResponseBodySize{i}, nil
|
||||
}
|
||||
@@ -1666,4 +1666,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
|
||||
}
|
||||
@@ -224,7 +224,7 @@ func NewErrors(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return Errors{noop.Int64Counter{}}, err
|
||||
return Errors{noop.Int64Counter{}}, err
|
||||
}
|
||||
return Errors{i}, nil
|
||||
}
|
||||
@@ -350,7 +350,7 @@ func NewHostAmbientTemperature(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return HostAmbientTemperature{noop.Int64Gauge{}}, err
|
||||
return HostAmbientTemperature{noop.Int64Gauge{}}, err
|
||||
}
|
||||
return HostAmbientTemperature{i}, nil
|
||||
}
|
||||
@@ -466,7 +466,7 @@ func NewHostEnergy(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return HostEnergy{noop.Int64Counter{}}, err
|
||||
return HostEnergy{noop.Int64Counter{}}, err
|
||||
}
|
||||
return HostEnergy{i}, nil
|
||||
}
|
||||
@@ -593,7 +593,7 @@ func NewHostHeatingMargin(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return HostHeatingMargin{noop.Int64Gauge{}}, err
|
||||
return HostHeatingMargin{noop.Int64Gauge{}}, err
|
||||
}
|
||||
return HostHeatingMargin{i}, nil
|
||||
}
|
||||
@@ -709,7 +709,7 @@ func NewHostPower(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return HostPower{noop.Int64Gauge{}}, err
|
||||
return HostPower{noop.Int64Gauge{}}, err
|
||||
}
|
||||
return HostPower{i}, nil
|
||||
}
|
||||
@@ -835,7 +835,7 @@ func NewPower(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return Power{noop.Int64Gauge{}}, err
|
||||
return Power{noop.Int64Gauge{}}, err
|
||||
}
|
||||
return Power{i}, nil
|
||||
}
|
||||
@@ -959,7 +959,7 @@ func NewStatus(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return Status{noop.Int64UpDownCounter{}}, err
|
||||
return Status{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return Status{i}, nil
|
||||
}
|
||||
@@ -1072,4 +1072,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)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -166,7 +166,7 @@ func NewContainerCPULimit(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ContainerCPULimit{noop.Int64UpDownCounter{}}, err
|
||||
return ContainerCPULimit{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return ContainerCPULimit{i}, nil
|
||||
}
|
||||
@@ -258,7 +258,7 @@ func NewContainerCPURequest(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ContainerCPURequest{noop.Int64UpDownCounter{}}, err
|
||||
return ContainerCPURequest{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return ContainerCPURequest{i}, nil
|
||||
}
|
||||
@@ -352,7 +352,7 @@ func NewContainerEphemeralStorageLimit(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ContainerEphemeralStorageLimit{noop.Int64UpDownCounter{}}, err
|
||||
return ContainerEphemeralStorageLimit{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return ContainerEphemeralStorageLimit{i}, nil
|
||||
}
|
||||
@@ -446,7 +446,7 @@ func NewContainerEphemeralStorageRequest(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ContainerEphemeralStorageRequest{noop.Int64UpDownCounter{}}, err
|
||||
return ContainerEphemeralStorageRequest{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return ContainerEphemeralStorageRequest{i}, nil
|
||||
}
|
||||
@@ -538,7 +538,7 @@ func NewContainerMemoryLimit(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ContainerMemoryLimit{noop.Int64UpDownCounter{}}, err
|
||||
return ContainerMemoryLimit{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return ContainerMemoryLimit{i}, nil
|
||||
}
|
||||
@@ -630,7 +630,7 @@ func NewContainerMemoryRequest(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ContainerMemoryRequest{noop.Int64UpDownCounter{}}, err
|
||||
return ContainerMemoryRequest{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return ContainerMemoryRequest{i}, nil
|
||||
}
|
||||
@@ -723,7 +723,7 @@ func NewContainerReady(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ContainerReady{noop.Int64UpDownCounter{}}, err
|
||||
return ContainerReady{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return ContainerReady{i}, nil
|
||||
}
|
||||
@@ -818,7 +818,7 @@ func NewContainerRestartCount(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ContainerRestartCount{noop.Int64UpDownCounter{}}, err
|
||||
return ContainerRestartCount{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return ContainerRestartCount{i}, nil
|
||||
}
|
||||
@@ -923,7 +923,7 @@ func NewContainerStatusReason(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ContainerStatusReason{noop.Int64UpDownCounter{}}, err
|
||||
return ContainerStatusReason{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return ContainerStatusReason{i}, nil
|
||||
}
|
||||
@@ -1036,7 +1036,7 @@ func NewContainerStatusState(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ContainerStatusState{noop.Int64UpDownCounter{}}, err
|
||||
return ContainerStatusState{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return ContainerStatusState{i}, nil
|
||||
}
|
||||
@@ -1147,7 +1147,7 @@ func NewContainerStorageLimit(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ContainerStorageLimit{noop.Int64UpDownCounter{}}, err
|
||||
return ContainerStorageLimit{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return ContainerStorageLimit{i}, nil
|
||||
}
|
||||
@@ -1239,7 +1239,7 @@ func NewContainerStorageRequest(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ContainerStorageRequest{noop.Int64UpDownCounter{}}, err
|
||||
return ContainerStorageRequest{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return ContainerStorageRequest{i}, nil
|
||||
}
|
||||
@@ -1331,7 +1331,7 @@ func NewCronJobActiveJobs(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return CronJobActiveJobs{noop.Int64UpDownCounter{}}, err
|
||||
return CronJobActiveJobs{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return CronJobActiveJobs{i}, nil
|
||||
}
|
||||
@@ -1427,7 +1427,7 @@ func NewDaemonSetCurrentScheduledNodes(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return DaemonSetCurrentScheduledNodes{noop.Int64UpDownCounter{}}, err
|
||||
return DaemonSetCurrentScheduledNodes{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return DaemonSetCurrentScheduledNodes{i}, nil
|
||||
}
|
||||
@@ -1523,7 +1523,7 @@ func NewDaemonSetDesiredScheduledNodes(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return DaemonSetDesiredScheduledNodes{noop.Int64UpDownCounter{}}, err
|
||||
return DaemonSetDesiredScheduledNodes{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return DaemonSetDesiredScheduledNodes{i}, nil
|
||||
}
|
||||
@@ -1619,7 +1619,7 @@ func NewDaemonSetMisscheduledNodes(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return DaemonSetMisscheduledNodes{noop.Int64UpDownCounter{}}, err
|
||||
return DaemonSetMisscheduledNodes{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return DaemonSetMisscheduledNodes{i}, nil
|
||||
}
|
||||
@@ -1714,7 +1714,7 @@ func NewDaemonSetReadyNodes(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return DaemonSetReadyNodes{noop.Int64UpDownCounter{}}, err
|
||||
return DaemonSetReadyNodes{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return DaemonSetReadyNodes{i}, nil
|
||||
}
|
||||
@@ -1809,7 +1809,7 @@ func NewDeploymentAvailablePods(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return DeploymentAvailablePods{noop.Int64UpDownCounter{}}, err
|
||||
return DeploymentAvailablePods{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return DeploymentAvailablePods{i}, nil
|
||||
}
|
||||
@@ -1903,7 +1903,7 @@ func NewDeploymentDesiredPods(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return DeploymentDesiredPods{noop.Int64UpDownCounter{}}, err
|
||||
return DeploymentDesiredPods{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return DeploymentDesiredPods{i}, nil
|
||||
}
|
||||
@@ -1998,7 +1998,7 @@ func NewHPACurrentPods(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return HPACurrentPods{noop.Int64UpDownCounter{}}, err
|
||||
return HPACurrentPods{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return HPACurrentPods{i}, nil
|
||||
}
|
||||
@@ -2093,7 +2093,7 @@ func NewHPADesiredPods(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return HPADesiredPods{noop.Int64UpDownCounter{}}, err
|
||||
return HPADesiredPods{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return HPADesiredPods{i}, nil
|
||||
}
|
||||
@@ -2187,7 +2187,7 @@ func NewHPAMaxPods(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return HPAMaxPods{noop.Int64UpDownCounter{}}, err
|
||||
return HPAMaxPods{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return HPAMaxPods{i}, nil
|
||||
}
|
||||
@@ -2283,7 +2283,7 @@ func NewHPAMetricTargetCPUAverageUtilization(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return HPAMetricTargetCPUAverageUtilization{noop.Int64Gauge{}}, err
|
||||
return HPAMetricTargetCPUAverageUtilization{noop.Int64Gauge{}}, err
|
||||
}
|
||||
return HPAMetricTargetCPUAverageUtilization{i}, nil
|
||||
}
|
||||
@@ -2414,7 +2414,7 @@ func NewHPAMetricTargetCPUAverageValue(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return HPAMetricTargetCPUAverageValue{noop.Int64Gauge{}}, err
|
||||
return HPAMetricTargetCPUAverageValue{noop.Int64Gauge{}}, err
|
||||
}
|
||||
return HPAMetricTargetCPUAverageValue{i}, nil
|
||||
}
|
||||
@@ -2543,7 +2543,7 @@ func NewHPAMetricTargetCPUValue(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return HPAMetricTargetCPUValue{noop.Int64Gauge{}}, err
|
||||
return HPAMetricTargetCPUValue{noop.Int64Gauge{}}, err
|
||||
}
|
||||
return HPAMetricTargetCPUValue{i}, nil
|
||||
}
|
||||
@@ -2672,7 +2672,7 @@ func NewHPAMinPods(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return HPAMinPods{noop.Int64UpDownCounter{}}, err
|
||||
return HPAMinPods{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return HPAMinPods{i}, nil
|
||||
}
|
||||
@@ -2766,7 +2766,7 @@ func NewJobActivePods(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return JobActivePods{noop.Int64UpDownCounter{}}, err
|
||||
return JobActivePods{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return JobActivePods{i}, nil
|
||||
}
|
||||
@@ -2861,7 +2861,7 @@ func NewJobDesiredSuccessfulPods(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return JobDesiredSuccessfulPods{noop.Int64UpDownCounter{}}, err
|
||||
return JobDesiredSuccessfulPods{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return JobDesiredSuccessfulPods{i}, nil
|
||||
}
|
||||
@@ -2955,7 +2955,7 @@ func NewJobFailedPods(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return JobFailedPods{noop.Int64UpDownCounter{}}, err
|
||||
return JobFailedPods{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return JobFailedPods{i}, nil
|
||||
}
|
||||
@@ -3049,7 +3049,7 @@ func NewJobMaxParallelPods(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return JobMaxParallelPods{noop.Int64UpDownCounter{}}, err
|
||||
return JobMaxParallelPods{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return JobMaxParallelPods{i}, nil
|
||||
}
|
||||
@@ -3143,7 +3143,7 @@ func NewJobSuccessfulPods(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return JobSuccessfulPods{noop.Int64UpDownCounter{}}, err
|
||||
return JobSuccessfulPods{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return JobSuccessfulPods{i}, nil
|
||||
}
|
||||
@@ -3237,7 +3237,7 @@ func NewNamespacePhase(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return NamespacePhase{noop.Int64UpDownCounter{}}, err
|
||||
return NamespacePhase{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return NamespacePhase{i}, nil
|
||||
}
|
||||
@@ -3337,7 +3337,7 @@ func NewNodeAllocatableCPU(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return NodeAllocatableCPU{noop.Int64UpDownCounter{}}, err
|
||||
return NodeAllocatableCPU{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return NodeAllocatableCPU{i}, nil
|
||||
}
|
||||
@@ -3423,7 +3423,7 @@ func NewNodeAllocatableEphemeralStorage(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return NodeAllocatableEphemeralStorage{noop.Int64UpDownCounter{}}, err
|
||||
return NodeAllocatableEphemeralStorage{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return NodeAllocatableEphemeralStorage{i}, nil
|
||||
}
|
||||
@@ -3507,7 +3507,7 @@ func NewNodeAllocatableMemory(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return NodeAllocatableMemory{noop.Int64UpDownCounter{}}, err
|
||||
return NodeAllocatableMemory{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return NodeAllocatableMemory{i}, nil
|
||||
}
|
||||
@@ -3591,7 +3591,7 @@ func NewNodeAllocatablePods(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return NodeAllocatablePods{noop.Int64UpDownCounter{}}, err
|
||||
return NodeAllocatablePods{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return NodeAllocatablePods{i}, nil
|
||||
}
|
||||
@@ -3675,7 +3675,7 @@ func NewNodeConditionStatus(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return NodeConditionStatus{noop.Int64UpDownCounter{}}, err
|
||||
return NodeConditionStatus{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return NodeConditionStatus{i}, nil
|
||||
}
|
||||
@@ -3788,7 +3788,7 @@ func NewNodeCPUTime(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return NodeCPUTime{noop.Float64Counter{}}, err
|
||||
return NodeCPUTime{noop.Float64Counter{}}, err
|
||||
}
|
||||
return NodeCPUTime{i}, nil
|
||||
}
|
||||
@@ -3876,7 +3876,7 @@ func NewNodeCPUUsage(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return NodeCPUUsage{noop.Int64Gauge{}}, err
|
||||
return NodeCPUUsage{noop.Int64Gauge{}}, err
|
||||
}
|
||||
return NodeCPUUsage{i}, nil
|
||||
}
|
||||
@@ -3966,7 +3966,7 @@ func NewNodeMemoryUsage(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return NodeMemoryUsage{noop.Int64Gauge{}}, err
|
||||
return NodeMemoryUsage{noop.Int64Gauge{}}, err
|
||||
}
|
||||
return NodeMemoryUsage{i}, nil
|
||||
}
|
||||
@@ -4054,7 +4054,7 @@ func NewNodeNetworkErrors(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return NodeNetworkErrors{noop.Int64Counter{}}, err
|
||||
return NodeNetworkErrors{noop.Int64Counter{}}, err
|
||||
}
|
||||
return NodeNetworkErrors{i}, nil
|
||||
}
|
||||
@@ -4164,7 +4164,7 @@ func NewNodeNetworkIO(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return NodeNetworkIO{noop.Int64Counter{}}, err
|
||||
return NodeNetworkIO{noop.Int64Counter{}}, err
|
||||
}
|
||||
return NodeNetworkIO{i}, nil
|
||||
}
|
||||
@@ -4274,7 +4274,7 @@ func NewNodeUptime(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return NodeUptime{noop.Float64Gauge{}}, err
|
||||
return NodeUptime{noop.Float64Gauge{}}, err
|
||||
}
|
||||
return NodeUptime{i}, nil
|
||||
}
|
||||
@@ -4366,7 +4366,7 @@ func NewPodCPUTime(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return PodCPUTime{noop.Float64Counter{}}, err
|
||||
return PodCPUTime{noop.Float64Counter{}}, err
|
||||
}
|
||||
return PodCPUTime{i}, nil
|
||||
}
|
||||
@@ -4454,7 +4454,7 @@ func NewPodCPUUsage(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return PodCPUUsage{noop.Int64Gauge{}}, err
|
||||
return PodCPUUsage{noop.Int64Gauge{}}, err
|
||||
}
|
||||
return PodCPUUsage{i}, nil
|
||||
}
|
||||
@@ -4544,7 +4544,7 @@ func NewPodMemoryUsage(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return PodMemoryUsage{noop.Int64Gauge{}}, err
|
||||
return PodMemoryUsage{noop.Int64Gauge{}}, err
|
||||
}
|
||||
return PodMemoryUsage{i}, nil
|
||||
}
|
||||
@@ -4632,7 +4632,7 @@ func NewPodNetworkErrors(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return PodNetworkErrors{noop.Int64Counter{}}, err
|
||||
return PodNetworkErrors{noop.Int64Counter{}}, err
|
||||
}
|
||||
return PodNetworkErrors{i}, nil
|
||||
}
|
||||
@@ -4742,7 +4742,7 @@ func NewPodNetworkIO(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return PodNetworkIO{noop.Int64Counter{}}, err
|
||||
return PodNetworkIO{noop.Int64Counter{}}, err
|
||||
}
|
||||
return PodNetworkIO{i}, nil
|
||||
}
|
||||
@@ -4852,7 +4852,7 @@ func NewPodUptime(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return PodUptime{noop.Float64Gauge{}}, err
|
||||
return PodUptime{noop.Float64Gauge{}}, err
|
||||
}
|
||||
return PodUptime{i}, nil
|
||||
}
|
||||
@@ -4945,7 +4945,7 @@ func NewReplicaSetAvailablePods(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ReplicaSetAvailablePods{noop.Int64UpDownCounter{}}, err
|
||||
return ReplicaSetAvailablePods{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return ReplicaSetAvailablePods{i}, nil
|
||||
}
|
||||
@@ -5039,7 +5039,7 @@ func NewReplicaSetDesiredPods(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ReplicaSetDesiredPods{noop.Int64UpDownCounter{}}, err
|
||||
return ReplicaSetDesiredPods{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return ReplicaSetDesiredPods{i}, nil
|
||||
}
|
||||
@@ -5135,7 +5135,7 @@ func NewReplicationControllerAvailablePods(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ReplicationControllerAvailablePods{noop.Int64UpDownCounter{}}, err
|
||||
return ReplicationControllerAvailablePods{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return ReplicationControllerAvailablePods{i}, nil
|
||||
}
|
||||
@@ -5231,7 +5231,7 @@ func NewReplicationControllerDesiredPods(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ReplicationControllerDesiredPods{noop.Int64UpDownCounter{}}, err
|
||||
return ReplicationControllerDesiredPods{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return ReplicationControllerDesiredPods{i}, nil
|
||||
}
|
||||
@@ -5328,7 +5328,7 @@ func NewResourceQuotaCPULimitHard(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ResourceQuotaCPULimitHard{noop.Int64UpDownCounter{}}, err
|
||||
return ResourceQuotaCPULimitHard{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return ResourceQuotaCPULimitHard{i}, nil
|
||||
}
|
||||
@@ -5425,7 +5425,7 @@ func NewResourceQuotaCPULimitUsed(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ResourceQuotaCPULimitUsed{noop.Int64UpDownCounter{}}, err
|
||||
return ResourceQuotaCPULimitUsed{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return ResourceQuotaCPULimitUsed{i}, nil
|
||||
}
|
||||
@@ -5522,7 +5522,7 @@ func NewResourceQuotaCPURequestHard(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ResourceQuotaCPURequestHard{noop.Int64UpDownCounter{}}, err
|
||||
return ResourceQuotaCPURequestHard{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return ResourceQuotaCPURequestHard{i}, nil
|
||||
}
|
||||
@@ -5619,7 +5619,7 @@ func NewResourceQuotaCPURequestUsed(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ResourceQuotaCPURequestUsed{noop.Int64UpDownCounter{}}, err
|
||||
return ResourceQuotaCPURequestUsed{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return ResourceQuotaCPURequestUsed{i}, nil
|
||||
}
|
||||
@@ -5717,7 +5717,7 @@ func NewResourceQuotaEphemeralStorageLimitHard(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ResourceQuotaEphemeralStorageLimitHard{noop.Int64UpDownCounter{}}, err
|
||||
return ResourceQuotaEphemeralStorageLimitHard{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return ResourceQuotaEphemeralStorageLimitHard{i}, nil
|
||||
}
|
||||
@@ -5815,7 +5815,7 @@ func NewResourceQuotaEphemeralStorageLimitUsed(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ResourceQuotaEphemeralStorageLimitUsed{noop.Int64UpDownCounter{}}, err
|
||||
return ResourceQuotaEphemeralStorageLimitUsed{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return ResourceQuotaEphemeralStorageLimitUsed{i}, nil
|
||||
}
|
||||
@@ -5913,7 +5913,7 @@ func NewResourceQuotaEphemeralStorageRequestHard(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ResourceQuotaEphemeralStorageRequestHard{noop.Int64UpDownCounter{}}, err
|
||||
return ResourceQuotaEphemeralStorageRequestHard{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return ResourceQuotaEphemeralStorageRequestHard{i}, nil
|
||||
}
|
||||
@@ -6011,7 +6011,7 @@ func NewResourceQuotaEphemeralStorageRequestUsed(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ResourceQuotaEphemeralStorageRequestUsed{noop.Int64UpDownCounter{}}, err
|
||||
return ResourceQuotaEphemeralStorageRequestUsed{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return ResourceQuotaEphemeralStorageRequestUsed{i}, nil
|
||||
}
|
||||
@@ -6109,7 +6109,7 @@ func NewResourceQuotaHugepageCountRequestHard(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ResourceQuotaHugepageCountRequestHard{noop.Int64UpDownCounter{}}, err
|
||||
return ResourceQuotaHugepageCountRequestHard{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return ResourceQuotaHugepageCountRequestHard{i}, nil
|
||||
}
|
||||
@@ -6223,7 +6223,7 @@ func NewResourceQuotaHugepageCountRequestUsed(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ResourceQuotaHugepageCountRequestUsed{noop.Int64UpDownCounter{}}, err
|
||||
return ResourceQuotaHugepageCountRequestUsed{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return ResourceQuotaHugepageCountRequestUsed{i}, nil
|
||||
}
|
||||
@@ -6336,7 +6336,7 @@ func NewResourceQuotaMemoryLimitHard(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ResourceQuotaMemoryLimitHard{noop.Int64UpDownCounter{}}, err
|
||||
return ResourceQuotaMemoryLimitHard{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return ResourceQuotaMemoryLimitHard{i}, nil
|
||||
}
|
||||
@@ -6433,7 +6433,7 @@ func NewResourceQuotaMemoryLimitUsed(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ResourceQuotaMemoryLimitUsed{noop.Int64UpDownCounter{}}, err
|
||||
return ResourceQuotaMemoryLimitUsed{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return ResourceQuotaMemoryLimitUsed{i}, nil
|
||||
}
|
||||
@@ -6530,7 +6530,7 @@ func NewResourceQuotaMemoryRequestHard(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ResourceQuotaMemoryRequestHard{noop.Int64UpDownCounter{}}, err
|
||||
return ResourceQuotaMemoryRequestHard{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return ResourceQuotaMemoryRequestHard{i}, nil
|
||||
}
|
||||
@@ -6627,7 +6627,7 @@ func NewResourceQuotaMemoryRequestUsed(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ResourceQuotaMemoryRequestUsed{noop.Int64UpDownCounter{}}, err
|
||||
return ResourceQuotaMemoryRequestUsed{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return ResourceQuotaMemoryRequestUsed{i}, nil
|
||||
}
|
||||
@@ -6724,7 +6724,7 @@ func NewResourceQuotaObjectCountHard(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ResourceQuotaObjectCountHard{noop.Int64UpDownCounter{}}, err
|
||||
return ResourceQuotaObjectCountHard{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return ResourceQuotaObjectCountHard{i}, nil
|
||||
}
|
||||
@@ -6838,7 +6838,7 @@ func NewResourceQuotaObjectCountUsed(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ResourceQuotaObjectCountUsed{noop.Int64UpDownCounter{}}, err
|
||||
return ResourceQuotaObjectCountUsed{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return ResourceQuotaObjectCountUsed{i}, nil
|
||||
}
|
||||
@@ -6954,7 +6954,7 @@ func NewResourceQuotaPersistentvolumeclaimCountHard(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ResourceQuotaPersistentvolumeclaimCountHard{noop.Int64UpDownCounter{}}, err
|
||||
return ResourceQuotaPersistentvolumeclaimCountHard{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return ResourceQuotaPersistentvolumeclaimCountHard{i}, nil
|
||||
}
|
||||
@@ -7082,7 +7082,7 @@ func NewResourceQuotaPersistentvolumeclaimCountUsed(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ResourceQuotaPersistentvolumeclaimCountUsed{noop.Int64UpDownCounter{}}, err
|
||||
return ResourceQuotaPersistentvolumeclaimCountUsed{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return ResourceQuotaPersistentvolumeclaimCountUsed{i}, nil
|
||||
}
|
||||
@@ -7208,7 +7208,7 @@ func NewResourceQuotaStorageRequestHard(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ResourceQuotaStorageRequestHard{noop.Int64UpDownCounter{}}, err
|
||||
return ResourceQuotaStorageRequestHard{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return ResourceQuotaStorageRequestHard{i}, nil
|
||||
}
|
||||
@@ -7334,7 +7334,7 @@ func NewResourceQuotaStorageRequestUsed(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ResourceQuotaStorageRequestUsed{noop.Int64UpDownCounter{}}, err
|
||||
return ResourceQuotaStorageRequestUsed{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return ResourceQuotaStorageRequestUsed{i}, nil
|
||||
}
|
||||
@@ -7458,7 +7458,7 @@ func NewStatefulSetCurrentPods(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return StatefulSetCurrentPods{noop.Int64UpDownCounter{}}, err
|
||||
return StatefulSetCurrentPods{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return StatefulSetCurrentPods{i}, nil
|
||||
}
|
||||
@@ -7552,7 +7552,7 @@ func NewStatefulSetDesiredPods(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return StatefulSetDesiredPods{noop.Int64UpDownCounter{}}, err
|
||||
return StatefulSetDesiredPods{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return StatefulSetDesiredPods{i}, nil
|
||||
}
|
||||
@@ -7646,7 +7646,7 @@ func NewStatefulSetReadyPods(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return StatefulSetReadyPods{noop.Int64UpDownCounter{}}, err
|
||||
return StatefulSetReadyPods{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return StatefulSetReadyPods{i}, nil
|
||||
}
|
||||
@@ -7741,7 +7741,7 @@ func NewStatefulSetUpdatedPods(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return StatefulSetUpdatedPods{noop.Int64UpDownCounter{}}, err
|
||||
return StatefulSetUpdatedPods{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return StatefulSetUpdatedPods{i}, nil
|
||||
}
|
||||
@@ -7808,4 +7808,4 @@ func (m StatefulSetUpdatedPods) AddSet(ctx context.Context, incr int64, set attr
|
||||
|
||||
*o = append(*o, metric.WithAttributeSet(set))
|
||||
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
|
||||
}
|
||||
@@ -289,7 +289,7 @@ func NewClientOperationDuration(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ClientOperationDuration{noop.Float64Histogram{}}, err
|
||||
return ClientOperationDuration{noop.Float64Histogram{}}, err
|
||||
}
|
||||
return ClientOperationDuration{i}, nil
|
||||
}
|
||||
@@ -465,7 +465,7 @@ func NewClientSentMessages(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ClientSentMessages{noop.Int64Counter{}}, err
|
||||
return ClientSentMessages{noop.Int64Counter{}}, err
|
||||
}
|
||||
return ClientSentMessages{i}, nil
|
||||
}
|
||||
@@ -620,7 +620,7 @@ func NewProcessDuration(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ProcessDuration{noop.Float64Histogram{}}, err
|
||||
return ProcessDuration{noop.Float64Histogram{}}, err
|
||||
}
|
||||
return ProcessDuration{i}, nil
|
||||
}
|
||||
@@ -762,4 +762,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)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -190,7 +190,7 @@ func NewSDKExporterLogExported(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return SDKExporterLogExported{noop.Int64Counter{}}, err
|
||||
return SDKExporterLogExported{noop.Int64Counter{}}, err
|
||||
}
|
||||
return SDKExporterLogExported{i}, nil
|
||||
}
|
||||
@@ -337,7 +337,7 @@ func NewSDKExporterLogInflight(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return SDKExporterLogInflight{noop.Int64UpDownCounter{}}, err
|
||||
return SDKExporterLogInflight{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return SDKExporterLogInflight{i}, nil
|
||||
}
|
||||
@@ -468,7 +468,7 @@ func NewSDKExporterMetricDataPointExported(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return SDKExporterMetricDataPointExported{noop.Int64Counter{}}, err
|
||||
return SDKExporterMetricDataPointExported{noop.Int64Counter{}}, err
|
||||
}
|
||||
return SDKExporterMetricDataPointExported{i}, nil
|
||||
}
|
||||
@@ -617,7 +617,7 @@ func NewSDKExporterMetricDataPointInflight(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return SDKExporterMetricDataPointInflight{noop.Int64UpDownCounter{}}, err
|
||||
return SDKExporterMetricDataPointInflight{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return SDKExporterMetricDataPointInflight{i}, nil
|
||||
}
|
||||
@@ -747,7 +747,7 @@ func NewSDKExporterOperationDuration(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return SDKExporterOperationDuration{noop.Float64Histogram{}}, err
|
||||
return SDKExporterOperationDuration{noop.Float64Histogram{}}, err
|
||||
}
|
||||
return SDKExporterOperationDuration{i}, nil
|
||||
}
|
||||
@@ -912,7 +912,7 @@ func NewSDKExporterSpanExported(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return SDKExporterSpanExported{noop.Int64Counter{}}, err
|
||||
return SDKExporterSpanExported{noop.Int64Counter{}}, err
|
||||
}
|
||||
return SDKExporterSpanExported{i}, nil
|
||||
}
|
||||
@@ -1059,7 +1059,7 @@ func NewSDKExporterSpanInflight(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return SDKExporterSpanInflight{noop.Int64UpDownCounter{}}, err
|
||||
return SDKExporterSpanInflight{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return SDKExporterSpanInflight{i}, nil
|
||||
}
|
||||
@@ -1188,7 +1188,7 @@ func NewSDKLogCreated(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return SDKLogCreated{noop.Int64Counter{}}, err
|
||||
return SDKLogCreated{noop.Int64Counter{}}, err
|
||||
}
|
||||
return SDKLogCreated{i}, nil
|
||||
}
|
||||
@@ -1274,7 +1274,7 @@ func NewSDKMetricReaderCollectionDuration(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return SDKMetricReaderCollectionDuration{noop.Float64Histogram{}}, err
|
||||
return SDKMetricReaderCollectionDuration{noop.Float64Histogram{}}, err
|
||||
}
|
||||
return SDKMetricReaderCollectionDuration{i}, nil
|
||||
}
|
||||
@@ -1404,7 +1404,7 @@ func NewSDKProcessorLogProcessed(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return SDKProcessorLogProcessed{noop.Int64Counter{}}, err
|
||||
return SDKProcessorLogProcessed{noop.Int64Counter{}}, err
|
||||
}
|
||||
return SDKProcessorLogProcessed{i}, nil
|
||||
}
|
||||
@@ -1536,7 +1536,7 @@ func NewSDKProcessorLogQueueCapacity(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return SDKProcessorLogQueueCapacity{noop.Int64ObservableUpDownCounter{}}, err
|
||||
return SDKProcessorLogQueueCapacity{noop.Int64ObservableUpDownCounter{}}, err
|
||||
}
|
||||
return SDKProcessorLogQueueCapacity{i}, nil
|
||||
}
|
||||
@@ -1601,7 +1601,7 @@ func NewSDKProcessorLogQueueSize(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return SDKProcessorLogQueueSize{noop.Int64ObservableUpDownCounter{}}, err
|
||||
return SDKProcessorLogQueueSize{noop.Int64ObservableUpDownCounter{}}, err
|
||||
}
|
||||
return SDKProcessorLogQueueSize{i}, nil
|
||||
}
|
||||
@@ -1667,7 +1667,7 @@ func NewSDKProcessorSpanProcessed(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return SDKProcessorSpanProcessed{noop.Int64Counter{}}, err
|
||||
return SDKProcessorSpanProcessed{noop.Int64Counter{}}, err
|
||||
}
|
||||
return SDKProcessorSpanProcessed{i}, nil
|
||||
}
|
||||
@@ -1799,7 +1799,7 @@ func NewSDKProcessorSpanQueueCapacity(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return SDKProcessorSpanQueueCapacity{noop.Int64ObservableUpDownCounter{}}, err
|
||||
return SDKProcessorSpanQueueCapacity{noop.Int64ObservableUpDownCounter{}}, err
|
||||
}
|
||||
return SDKProcessorSpanQueueCapacity{i}, nil
|
||||
}
|
||||
@@ -1865,7 +1865,7 @@ func NewSDKProcessorSpanQueueSize(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return SDKProcessorSpanQueueSize{noop.Int64ObservableUpDownCounter{}}, err
|
||||
return SDKProcessorSpanQueueSize{noop.Int64ObservableUpDownCounter{}}, err
|
||||
}
|
||||
return SDKProcessorSpanQueueSize{i}, nil
|
||||
}
|
||||
@@ -1930,7 +1930,7 @@ func NewSDKSpanLive(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return SDKSpanLive{noop.Int64UpDownCounter{}}, err
|
||||
return SDKSpanLive{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return SDKSpanLive{i}, nil
|
||||
}
|
||||
@@ -2033,7 +2033,7 @@ func NewSDKSpanStarted(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return SDKSpanStarted{noop.Int64Counter{}}, err
|
||||
return SDKSpanStarted{noop.Int64Counter{}}, err
|
||||
}
|
||||
return SDKSpanStarted{i}, nil
|
||||
}
|
||||
@@ -2125,4 +2125,4 @@ func (SDKSpanStarted) AttrSpanParentOrigin(val SpanParentOriginAttr) attribute.K
|
||||
// value of the sampler for this span.
|
||||
func (SDKSpanStarted) AttrSpanSamplingResult(val SpanSamplingResultAttr) attribute.KeyValue {
|
||||
return attribute.String("otel.span.sampling_result", string(val))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -125,7 +125,7 @@ func NewContextSwitches(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ContextSwitches{noop.Int64Counter{}}, err
|
||||
return ContextSwitches{noop.Int64Counter{}}, err
|
||||
}
|
||||
return ContextSwitches{i}, nil
|
||||
}
|
||||
@@ -229,7 +229,7 @@ func NewCPUTime(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return CPUTime{noop.Float64ObservableCounter{}}, err
|
||||
return CPUTime{noop.Float64ObservableCounter{}}, err
|
||||
}
|
||||
return CPUTime{i}, nil
|
||||
}
|
||||
@@ -287,7 +287,7 @@ func NewCPUUtilization(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return CPUUtilization{noop.Int64Gauge{}}, err
|
||||
return CPUUtilization{noop.Int64Gauge{}}, err
|
||||
}
|
||||
return CPUUtilization{i}, nil
|
||||
}
|
||||
@@ -390,7 +390,7 @@ func NewDiskIO(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return DiskIO{noop.Int64Counter{}}, err
|
||||
return DiskIO{noop.Int64Counter{}}, err
|
||||
}
|
||||
return DiskIO{i}, nil
|
||||
}
|
||||
@@ -492,7 +492,7 @@ func NewMemoryUsage(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return MemoryUsage{noop.Int64UpDownCounter{}}, err
|
||||
return MemoryUsage{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return MemoryUsage{i}, nil
|
||||
}
|
||||
@@ -576,7 +576,7 @@ func NewMemoryVirtual(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return MemoryVirtual{noop.Int64UpDownCounter{}}, err
|
||||
return MemoryVirtual{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return MemoryVirtual{i}, nil
|
||||
}
|
||||
@@ -660,7 +660,7 @@ func NewNetworkIO(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return NetworkIO{noop.Int64Counter{}}, err
|
||||
return NetworkIO{noop.Int64Counter{}}, err
|
||||
}
|
||||
return NetworkIO{i}, nil
|
||||
}
|
||||
@@ -763,7 +763,7 @@ func NewOpenFileDescriptorCount(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return OpenFileDescriptorCount{noop.Int64UpDownCounter{}}, err
|
||||
return OpenFileDescriptorCount{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return OpenFileDescriptorCount{i}, nil
|
||||
}
|
||||
@@ -847,7 +847,7 @@ func NewPagingFaults(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return PagingFaults{noop.Int64Counter{}}, err
|
||||
return PagingFaults{noop.Int64Counter{}}, err
|
||||
}
|
||||
return PagingFaults{i}, nil
|
||||
}
|
||||
@@ -951,7 +951,7 @@ func NewThreadCount(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ThreadCount{noop.Int64UpDownCounter{}}, err
|
||||
return ThreadCount{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return ThreadCount{i}, nil
|
||||
}
|
||||
@@ -1035,7 +1035,7 @@ func NewUptime(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return Uptime{noop.Float64Gauge{}}, err
|
||||
return Uptime{noop.Float64Gauge{}}, err
|
||||
}
|
||||
return Uptime{i}, nil
|
||||
}
|
||||
@@ -1100,4 +1100,4 @@ func (m Uptime) RecordSet(ctx context.Context, val float64, set attribute.Set) {
|
||||
|
||||
*o = append(*o, metric.WithAttributeSet(set))
|
||||
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
|
||||
}
|
||||
@@ -140,7 +140,7 @@ func NewClientRequestSize(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ClientRequestSize{noop.Int64Histogram{}}, err
|
||||
return ClientRequestSize{noop.Int64Histogram{}}, err
|
||||
}
|
||||
return ClientRequestSize{i}, nil
|
||||
}
|
||||
@@ -228,7 +228,7 @@ func NewClientRequestsPerRPC(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ClientRequestsPerRPC{noop.Int64Histogram{}}, err
|
||||
return ClientRequestsPerRPC{noop.Int64Histogram{}}, err
|
||||
}
|
||||
return ClientRequestsPerRPC{i}, nil
|
||||
}
|
||||
@@ -320,7 +320,7 @@ func NewClientResponseSize(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ClientResponseSize{noop.Int64Histogram{}}, err
|
||||
return ClientResponseSize{noop.Int64Histogram{}}, err
|
||||
}
|
||||
return ClientResponseSize{i}, nil
|
||||
}
|
||||
@@ -408,7 +408,7 @@ func NewClientResponsesPerRPC(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ClientResponsesPerRPC{noop.Int64Histogram{}}, err
|
||||
return ClientResponsesPerRPC{noop.Int64Histogram{}}, err
|
||||
}
|
||||
return ClientResponsesPerRPC{i}, nil
|
||||
}
|
||||
@@ -500,7 +500,7 @@ func NewServerDuration(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ServerDuration{noop.Float64Histogram{}}, err
|
||||
return ServerDuration{noop.Float64Histogram{}}, err
|
||||
}
|
||||
return ServerDuration{i}, nil
|
||||
}
|
||||
@@ -594,7 +594,7 @@ func NewServerRequestSize(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ServerRequestSize{noop.Int64Histogram{}}, err
|
||||
return ServerRequestSize{noop.Int64Histogram{}}, err
|
||||
}
|
||||
return ServerRequestSize{i}, nil
|
||||
}
|
||||
@@ -682,7 +682,7 @@ func NewServerRequestsPerRPC(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ServerRequestsPerRPC{noop.Int64Histogram{}}, err
|
||||
return ServerRequestsPerRPC{noop.Int64Histogram{}}, err
|
||||
}
|
||||
return ServerRequestsPerRPC{i}, nil
|
||||
}
|
||||
@@ -774,7 +774,7 @@ func NewServerResponseSize(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ServerResponseSize{noop.Int64Histogram{}}, err
|
||||
return ServerResponseSize{noop.Int64Histogram{}}, err
|
||||
}
|
||||
return ServerResponseSize{i}, nil
|
||||
}
|
||||
@@ -862,7 +862,7 @@ func NewServerResponsesPerRPC(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ServerResponsesPerRPC{noop.Int64Histogram{}}, err
|
||||
return ServerResponsesPerRPC{noop.Int64Histogram{}}, err
|
||||
}
|
||||
return ServerResponsesPerRPC{i}, nil
|
||||
}
|
||||
@@ -927,4 +927,4 @@ func (m ServerResponsesPerRPC) RecordSet(ctx context.Context, val int64, set att
|
||||
|
||||
*o = append(*o, metric.WithAttributeSet(set))
|
||||
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
|
||||
}
|
||||
@@ -193,7 +193,7 @@ func NewServerConnectionDuration(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ServerConnectionDuration{noop.Float64Histogram{}}, err
|
||||
return ServerConnectionDuration{noop.Float64Histogram{}}, err
|
||||
}
|
||||
return ServerConnectionDuration{i}, nil
|
||||
}
|
||||
@@ -283,4 +283,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))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -274,7 +274,7 @@ func NewCPUFrequency(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return CPUFrequency{noop.Int64Gauge{}}, err
|
||||
return CPUFrequency{noop.Int64Gauge{}}, err
|
||||
}
|
||||
return CPUFrequency{i}, nil
|
||||
}
|
||||
@@ -378,7 +378,7 @@ func NewCPULogicalCount(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return CPULogicalCount{noop.Int64UpDownCounter{}}, err
|
||||
return CPULogicalCount{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return CPULogicalCount{i}, nil
|
||||
}
|
||||
@@ -468,7 +468,7 @@ func NewCPUPhysicalCount(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return CPUPhysicalCount{noop.Int64UpDownCounter{}}, err
|
||||
return CPUPhysicalCount{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return CPUPhysicalCount{i}, nil
|
||||
}
|
||||
@@ -558,7 +558,7 @@ func NewCPUTime(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return CPUTime{noop.Float64ObservableCounter{}}, err
|
||||
return CPUTime{noop.Float64ObservableCounter{}}, err
|
||||
}
|
||||
return CPUTime{i}, nil
|
||||
}
|
||||
@@ -622,7 +622,7 @@ func NewCPUUtilization(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return CPUUtilization{noop.Int64Gauge{}}, err
|
||||
return CPUUtilization{noop.Int64Gauge{}}, err
|
||||
}
|
||||
return CPUUtilization{i}, nil
|
||||
}
|
||||
@@ -730,7 +730,7 @@ func NewDiskIO(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return DiskIO{noop.Int64Counter{}}, err
|
||||
return DiskIO{noop.Int64Counter{}}, err
|
||||
}
|
||||
return DiskIO{i}, nil
|
||||
}
|
||||
@@ -833,7 +833,7 @@ func NewDiskIOTime(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return DiskIOTime{noop.Float64Counter{}}, err
|
||||
return DiskIOTime{noop.Float64Counter{}}, err
|
||||
}
|
||||
return DiskIOTime{i}, nil
|
||||
}
|
||||
@@ -959,7 +959,7 @@ func NewDiskLimit(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return DiskLimit{noop.Int64UpDownCounter{}}, err
|
||||
return DiskLimit{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return DiskLimit{i}, nil
|
||||
}
|
||||
@@ -1060,7 +1060,7 @@ func NewDiskMerged(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return DiskMerged{noop.Int64Counter{}}, err
|
||||
return DiskMerged{noop.Int64Counter{}}, err
|
||||
}
|
||||
return DiskMerged{i}, nil
|
||||
}
|
||||
@@ -1163,7 +1163,7 @@ func NewDiskOperationTime(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return DiskOperationTime{noop.Float64Counter{}}, err
|
||||
return DiskOperationTime{noop.Float64Counter{}}, err
|
||||
}
|
||||
return DiskOperationTime{i}, nil
|
||||
}
|
||||
@@ -1290,7 +1290,7 @@ func NewDiskOperations(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return DiskOperations{noop.Int64Counter{}}, err
|
||||
return DiskOperations{noop.Int64Counter{}}, err
|
||||
}
|
||||
return DiskOperations{i}, nil
|
||||
}
|
||||
@@ -1393,7 +1393,7 @@ func NewFilesystemLimit(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return FilesystemLimit{noop.Int64UpDownCounter{}}, err
|
||||
return FilesystemLimit{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return FilesystemLimit{i}, nil
|
||||
}
|
||||
@@ -1517,7 +1517,7 @@ func NewFilesystemUsage(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return FilesystemUsage{noop.Int64UpDownCounter{}}, err
|
||||
return FilesystemUsage{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return FilesystemUsage{i}, nil
|
||||
}
|
||||
@@ -1657,7 +1657,7 @@ func NewFilesystemUtilization(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return FilesystemUtilization{noop.Int64Gauge{}}, err
|
||||
return FilesystemUtilization{noop.Int64Gauge{}}, err
|
||||
}
|
||||
return FilesystemUtilization{i}, nil
|
||||
}
|
||||
@@ -1784,7 +1784,7 @@ func NewLinuxMemoryAvailable(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return LinuxMemoryAvailable{noop.Int64UpDownCounter{}}, err
|
||||
return LinuxMemoryAvailable{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return LinuxMemoryAvailable{i}, nil
|
||||
}
|
||||
@@ -1889,7 +1889,7 @@ func NewLinuxMemorySlabUsage(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return LinuxMemorySlabUsage{noop.Int64UpDownCounter{}}, err
|
||||
return LinuxMemorySlabUsage{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return LinuxMemorySlabUsage{i}, nil
|
||||
}
|
||||
@@ -2010,7 +2010,7 @@ func NewMemoryLimit(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return MemoryLimit{noop.Int64UpDownCounter{}}, err
|
||||
return MemoryLimit{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return MemoryLimit{i}, nil
|
||||
}
|
||||
@@ -2098,7 +2098,7 @@ func NewMemoryShared(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return MemoryShared{noop.Int64UpDownCounter{}}, err
|
||||
return MemoryShared{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return MemoryShared{i}, nil
|
||||
}
|
||||
@@ -2194,7 +2194,7 @@ func NewMemoryUsage(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return MemoryUsage{noop.Int64ObservableUpDownCounter{}}, err
|
||||
return MemoryUsage{noop.Int64ObservableUpDownCounter{}}, err
|
||||
}
|
||||
return MemoryUsage{i}, nil
|
||||
}
|
||||
@@ -2249,7 +2249,7 @@ func NewMemoryUtilization(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return MemoryUtilization{noop.Float64ObservableGauge{}}, err
|
||||
return MemoryUtilization{noop.Float64ObservableGauge{}}, err
|
||||
}
|
||||
return MemoryUtilization{i}, nil
|
||||
}
|
||||
@@ -2299,7 +2299,7 @@ func NewNetworkConnectionCount(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return NetworkConnectionCount{noop.Int64UpDownCounter{}}, err
|
||||
return NetworkConnectionCount{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return NetworkConnectionCount{i}, nil
|
||||
}
|
||||
@@ -2414,7 +2414,7 @@ func NewNetworkDropped(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return NetworkDropped{noop.Int64Counter{}}, err
|
||||
return NetworkDropped{noop.Int64Counter{}}, err
|
||||
}
|
||||
return NetworkDropped{i}, nil
|
||||
}
|
||||
@@ -2546,7 +2546,7 @@ func NewNetworkErrors(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return NetworkErrors{noop.Int64Counter{}}, err
|
||||
return NetworkErrors{noop.Int64Counter{}}, err
|
||||
}
|
||||
return NetworkErrors{i}, nil
|
||||
}
|
||||
@@ -2677,7 +2677,7 @@ func NewNetworkIO(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return NetworkIO{noop.Int64ObservableCounter{}}, err
|
||||
return NetworkIO{noop.Int64ObservableCounter{}}, err
|
||||
}
|
||||
return NetworkIO{i}, nil
|
||||
}
|
||||
@@ -2735,7 +2735,7 @@ func NewNetworkPackets(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return NetworkPackets{noop.Int64Counter{}}, err
|
||||
return NetworkPackets{noop.Int64Counter{}}, err
|
||||
}
|
||||
return NetworkPackets{i}, nil
|
||||
}
|
||||
@@ -2838,7 +2838,7 @@ func NewPagingFaults(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return PagingFaults{noop.Int64Counter{}}, err
|
||||
return PagingFaults{noop.Int64Counter{}}, err
|
||||
}
|
||||
return PagingFaults{i}, nil
|
||||
}
|
||||
@@ -2934,7 +2934,7 @@ func NewPagingOperations(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return PagingOperations{noop.Int64Counter{}}, err
|
||||
return PagingOperations{noop.Int64Counter{}}, err
|
||||
}
|
||||
return PagingOperations{i}, nil
|
||||
}
|
||||
@@ -3038,7 +3038,7 @@ func NewPagingUsage(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return PagingUsage{noop.Int64UpDownCounter{}}, err
|
||||
return PagingUsage{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return PagingUsage{i}, nil
|
||||
}
|
||||
@@ -3146,7 +3146,7 @@ func NewPagingUtilization(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return PagingUtilization{noop.Int64Gauge{}}, err
|
||||
return PagingUtilization{noop.Int64Gauge{}}, err
|
||||
}
|
||||
return PagingUtilization{i}, nil
|
||||
}
|
||||
@@ -3250,7 +3250,7 @@ func NewProcessCount(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ProcessCount{noop.Int64UpDownCounter{}}, err
|
||||
return ProcessCount{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return ProcessCount{i}, nil
|
||||
}
|
||||
@@ -3355,7 +3355,7 @@ func NewProcessCreated(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ProcessCreated{noop.Int64Counter{}}, err
|
||||
return ProcessCreated{noop.Int64Counter{}}, err
|
||||
}
|
||||
return ProcessCreated{i}, nil
|
||||
}
|
||||
@@ -3439,7 +3439,7 @@ func NewUptime(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return Uptime{noop.Float64Gauge{}}, err
|
||||
return Uptime{noop.Float64Gauge{}}, err
|
||||
}
|
||||
return Uptime{i}, nil
|
||||
}
|
||||
@@ -3504,4 +3504,4 @@ func (m Uptime) RecordSet(ctx context.Context, val float64, set attribute.Set) {
|
||||
|
||||
*o = append(*o, metric.WithAttributeSet(set))
|
||||
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
|
||||
}
|
||||
@@ -303,7 +303,7 @@ func NewChangeDuration(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ChangeDuration{noop.Float64Gauge{}}, err
|
||||
return ChangeDuration{noop.Float64Gauge{}}, err
|
||||
}
|
||||
return ChangeDuration{i}, nil
|
||||
}
|
||||
@@ -442,7 +442,7 @@ func NewChangeTimeToApproval(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ChangeTimeToApproval{noop.Float64Gauge{}}, err
|
||||
return ChangeTimeToApproval{noop.Float64Gauge{}}, err
|
||||
}
|
||||
return ChangeTimeToApproval{i}, nil
|
||||
}
|
||||
@@ -605,7 +605,7 @@ func NewChangeTimeToMerge(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ChangeTimeToMerge{noop.Float64Gauge{}}, err
|
||||
return ChangeTimeToMerge{noop.Float64Gauge{}}, err
|
||||
}
|
||||
return ChangeTimeToMerge{i}, nil
|
||||
}
|
||||
@@ -767,7 +767,7 @@ func NewContributorCount(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return ContributorCount{noop.Int64Gauge{}}, err
|
||||
return ContributorCount{noop.Int64Gauge{}}, err
|
||||
}
|
||||
return ContributorCount{i}, nil
|
||||
}
|
||||
@@ -894,7 +894,7 @@ func NewRefCount(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return RefCount{noop.Int64UpDownCounter{}}, err
|
||||
return RefCount{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return RefCount{i}, nil
|
||||
}
|
||||
@@ -1027,7 +1027,7 @@ func NewRefLinesDelta(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return RefLinesDelta{noop.Int64Gauge{}}, err
|
||||
return RefLinesDelta{noop.Int64Gauge{}}, err
|
||||
}
|
||||
return RefLinesDelta{i}, nil
|
||||
}
|
||||
@@ -1204,7 +1204,7 @@ func NewRefRevisionsDelta(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return RefRevisionsDelta{noop.Int64Gauge{}}, err
|
||||
return RefRevisionsDelta{noop.Int64Gauge{}}, err
|
||||
}
|
||||
return RefRevisionsDelta{i}, nil
|
||||
}
|
||||
@@ -1376,7 +1376,7 @@ func NewRefTime(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return RefTime{noop.Float64Gauge{}}, err
|
||||
return RefTime{noop.Float64Gauge{}}, err
|
||||
}
|
||||
return RefTime{i}, nil
|
||||
}
|
||||
@@ -1514,7 +1514,7 @@ func NewRepositoryCount(
|
||||
}, opt...)...,
|
||||
)
|
||||
if err != nil {
|
||||
return RepositoryCount{noop.Int64UpDownCounter{}}, err
|
||||
return RepositoryCount{noop.Int64UpDownCounter{}}, err
|
||||
}
|
||||
return RepositoryCount{i}, nil
|
||||
}
|
||||
@@ -1596,4 +1596,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