@google-cloud/bigtable
Version:
Cloud Bigtable Client Library for Node.js
39 lines • 1.83 kB
JavaScript
;
// Copyright 2025 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
Object.defineProperty(exports, "__esModule", { value: true });
exports.MethodName = exports.StreamingState = void 0;
// The backend is expecting true/false and will fail if other values are provided.
// export in open telemetry is expecting string value attributes so we don't use boolean
// true/false.
var StreamingState;
(function (StreamingState) {
StreamingState["STREAMING"] = "true";
StreamingState["UNARY"] = "false";
})(StreamingState || (exports.StreamingState = StreamingState = {}));
/**
* Represents the names of Bigtable methods. These are used as attributes for
* metrics, allowing for differentiation of performance by method.
*/
var MethodName;
(function (MethodName) {
MethodName["READ_ROW"] = "Bigtable.ReadRow";
MethodName["READ_ROWS"] = "Bigtable.ReadRows";
MethodName["MUTATE_ROW"] = "Bigtable.MutateRow";
MethodName["CHECK_AND_MUTATE_ROW"] = "Bigtable.CheckAndMutateRow";
MethodName["READ_MODIFY_WRITE_ROW"] = "Bigtable.ReadModifyWriteRow";
MethodName["SAMPLE_ROW_KEYS"] = "Bigtable.SampleRowKeys";
MethodName["MUTATE_ROWS"] = "Bigtable.MutateRows";
})(MethodName || (exports.MethodName = MethodName = {}));
//# sourceMappingURL=client-side-metrics-attributes.js.map