@valkey/valkey-glide 1.3.5-rc11 → 1.3.5-rc13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -11
- package/build-ts/BaseClient.d.ts +4 -9
- package/build-ts/BaseClient.js +251 -229
- package/build-ts/Batch.d.ts +5 -5
- package/build-ts/Batch.js +219 -220
- package/build-ts/Commands.d.ts +1 -2
- package/build-ts/Commands.js +4 -5
- package/build-ts/GlideClient.d.ts +1 -3
- package/build-ts/GlideClient.js +53 -54
- package/build-ts/GlideClusterClient.d.ts +1 -4
- package/build-ts/GlideClusterClient.js +52 -54
- package/build-ts/Logger.js +3 -3
- package/build-ts/OpenTelemetry.d.ts +87 -0
- package/build-ts/OpenTelemetry.js +117 -0
- package/build-ts/ProtobufMessage.d.ts +12 -81
- package/build-ts/ProtobufMessage.js +42 -177
- package/build-ts/index.d.ts +2 -2
- package/build-ts/index.js +2 -25
- package/build-ts/native.d.ts +66 -0
- package/build-ts/native.js +6 -0
- package/build-ts/server-modules/GlideFt.d.ts +1 -4
- package/build-ts/server-modules/GlideFt.js +10 -11
- package/build-ts/server-modules/GlideFtOptions.d.ts +1 -2
- package/build-ts/server-modules/GlideJson.d.ts +1 -3
- package/build-ts/server-modules/GlideJson.js +2 -2
- package/package.json +7 -7
|
@@ -1323,6 +1323,9 @@ export namespace command_request {
|
|
|
1323
1323
|
|
|
1324
1324
|
/** CommandRequest route */
|
|
1325
1325
|
route?: (command_request.IRoutes|null);
|
|
1326
|
+
|
|
1327
|
+
/** CommandRequest rootSpanPtr */
|
|
1328
|
+
rootSpanPtr?: (number|Long|null);
|
|
1326
1329
|
}
|
|
1327
1330
|
|
|
1328
1331
|
/** Represents a CommandRequest. */
|
|
@@ -1358,6 +1361,9 @@ export namespace command_request {
|
|
|
1358
1361
|
/** CommandRequest route. */
|
|
1359
1362
|
public route?: (command_request.IRoutes|null);
|
|
1360
1363
|
|
|
1364
|
+
/** CommandRequest rootSpanPtr. */
|
|
1365
|
+
public rootSpanPtr?: (number|Long|null);
|
|
1366
|
+
|
|
1361
1367
|
/** CommandRequest command. */
|
|
1362
1368
|
public command?: ("singleCommand"|"batch"|"scriptInvocation"|"scriptInvocationPointers"|"clusterScan"|"updateConnectionPassword");
|
|
1363
1369
|
|
|
@@ -1864,81 +1870,6 @@ export namespace connection_request {
|
|
|
1864
1870
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
1865
1871
|
}
|
|
1866
1872
|
|
|
1867
|
-
/** Properties of an OpenTelemetryConfig. */
|
|
1868
|
-
interface IOpenTelemetryConfig {
|
|
1869
|
-
|
|
1870
|
-
/** OpenTelemetryConfig collectorEndPoint */
|
|
1871
|
-
collectorEndPoint?: (string|null);
|
|
1872
|
-
|
|
1873
|
-
/** OpenTelemetryConfig spanFlushInterval */
|
|
1874
|
-
spanFlushInterval?: (number|Long|null);
|
|
1875
|
-
}
|
|
1876
|
-
|
|
1877
|
-
/** Represents an OpenTelemetryConfig. */
|
|
1878
|
-
class OpenTelemetryConfig implements IOpenTelemetryConfig {
|
|
1879
|
-
|
|
1880
|
-
/**
|
|
1881
|
-
* Constructs a new OpenTelemetryConfig.
|
|
1882
|
-
* @param [properties] Properties to set
|
|
1883
|
-
*/
|
|
1884
|
-
constructor(properties?: connection_request.IOpenTelemetryConfig);
|
|
1885
|
-
|
|
1886
|
-
/** OpenTelemetryConfig collectorEndPoint. */
|
|
1887
|
-
public collectorEndPoint: string;
|
|
1888
|
-
|
|
1889
|
-
/** OpenTelemetryConfig spanFlushInterval. */
|
|
1890
|
-
public spanFlushInterval?: (number|Long|null);
|
|
1891
|
-
|
|
1892
|
-
/**
|
|
1893
|
-
* Creates a new OpenTelemetryConfig instance using the specified properties.
|
|
1894
|
-
* @param [properties] Properties to set
|
|
1895
|
-
* @returns OpenTelemetryConfig instance
|
|
1896
|
-
*/
|
|
1897
|
-
public static create(properties?: connection_request.IOpenTelemetryConfig): connection_request.OpenTelemetryConfig;
|
|
1898
|
-
|
|
1899
|
-
/**
|
|
1900
|
-
* Encodes the specified OpenTelemetryConfig message. Does not implicitly {@link connection_request.OpenTelemetryConfig.verify|verify} messages.
|
|
1901
|
-
* @param message OpenTelemetryConfig message or plain object to encode
|
|
1902
|
-
* @param [writer] Writer to encode to
|
|
1903
|
-
* @returns Writer
|
|
1904
|
-
*/
|
|
1905
|
-
public static encode(message: connection_request.IOpenTelemetryConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1906
|
-
|
|
1907
|
-
/**
|
|
1908
|
-
* Encodes the specified OpenTelemetryConfig message, length delimited. Does not implicitly {@link connection_request.OpenTelemetryConfig.verify|verify} messages.
|
|
1909
|
-
* @param message OpenTelemetryConfig message or plain object to encode
|
|
1910
|
-
* @param [writer] Writer to encode to
|
|
1911
|
-
* @returns Writer
|
|
1912
|
-
*/
|
|
1913
|
-
public static encodeDelimited(message: connection_request.IOpenTelemetryConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1914
|
-
|
|
1915
|
-
/**
|
|
1916
|
-
* Decodes an OpenTelemetryConfig message from the specified reader or buffer.
|
|
1917
|
-
* @param reader Reader or buffer to decode from
|
|
1918
|
-
* @param [length] Message length if known beforehand
|
|
1919
|
-
* @returns OpenTelemetryConfig
|
|
1920
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1921
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1922
|
-
*/
|
|
1923
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): connection_request.OpenTelemetryConfig;
|
|
1924
|
-
|
|
1925
|
-
/**
|
|
1926
|
-
* Decodes an OpenTelemetryConfig message from the specified reader or buffer, length delimited.
|
|
1927
|
-
* @param reader Reader or buffer to decode from
|
|
1928
|
-
* @returns OpenTelemetryConfig
|
|
1929
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1930
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1931
|
-
*/
|
|
1932
|
-
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): connection_request.OpenTelemetryConfig;
|
|
1933
|
-
|
|
1934
|
-
/**
|
|
1935
|
-
* Gets the default type url for OpenTelemetryConfig
|
|
1936
|
-
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
1937
|
-
* @returns The default type url
|
|
1938
|
-
*/
|
|
1939
|
-
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
1940
|
-
}
|
|
1941
|
-
|
|
1942
1873
|
/** Properties of a ConnectionRequest. */
|
|
1943
1874
|
interface IConnectionRequest {
|
|
1944
1875
|
|
|
@@ -1989,9 +1920,6 @@ export namespace connection_request {
|
|
|
1989
1920
|
|
|
1990
1921
|
/** ConnectionRequest connectionTimeout */
|
|
1991
1922
|
connectionTimeout?: (number|null);
|
|
1992
|
-
|
|
1993
|
-
/** ConnectionRequest opentelemetryConfig */
|
|
1994
|
-
opentelemetryConfig?: (connection_request.IOpenTelemetryConfig|null);
|
|
1995
1923
|
}
|
|
1996
1924
|
|
|
1997
1925
|
/** Represents a ConnectionRequest. */
|
|
@@ -2051,9 +1979,6 @@ export namespace connection_request {
|
|
|
2051
1979
|
/** ConnectionRequest connectionTimeout. */
|
|
2052
1980
|
public connectionTimeout: number;
|
|
2053
1981
|
|
|
2054
|
-
/** ConnectionRequest opentelemetryConfig. */
|
|
2055
|
-
public opentelemetryConfig?: (connection_request.IOpenTelemetryConfig|null);
|
|
2056
|
-
|
|
2057
1982
|
/** ConnectionRequest periodicChecks. */
|
|
2058
1983
|
public periodicChecks?: ("periodicChecksManualInterval"|"periodicChecksDisabled");
|
|
2059
1984
|
|
|
@@ -2301,6 +2226,9 @@ export namespace response {
|
|
|
2301
2226
|
|
|
2302
2227
|
/** Response isPush */
|
|
2303
2228
|
isPush?: (boolean|null);
|
|
2229
|
+
|
|
2230
|
+
/** Response rootSpanPtr */
|
|
2231
|
+
rootSpanPtr?: (number|Long|null);
|
|
2304
2232
|
}
|
|
2305
2233
|
|
|
2306
2234
|
/** Represents a Response. */
|
|
@@ -2330,6 +2258,9 @@ export namespace response {
|
|
|
2330
2258
|
/** Response isPush. */
|
|
2331
2259
|
public isPush: boolean;
|
|
2332
2260
|
|
|
2261
|
+
/** Response rootSpanPtr. */
|
|
2262
|
+
public rootSpanPtr?: (number|Long|null);
|
|
2263
|
+
|
|
2333
2264
|
/** Response value. */
|
|
2334
2265
|
public value?: ("respPointer"|"constantResponse"|"requestError"|"closingError");
|
|
2335
2266
|
|
|
@@ -2790,6 +2790,7 @@ $root.command_request = (function() {
|
|
|
2790
2790
|
* @property {command_request.IClusterScan|null} [clusterScan] CommandRequest clusterScan
|
|
2791
2791
|
* @property {command_request.IUpdateConnectionPassword|null} [updateConnectionPassword] CommandRequest updateConnectionPassword
|
|
2792
2792
|
* @property {command_request.IRoutes|null} [route] CommandRequest route
|
|
2793
|
+
* @property {number|Long|null} [rootSpanPtr] CommandRequest rootSpanPtr
|
|
2793
2794
|
*/
|
|
2794
2795
|
|
|
2795
2796
|
/**
|
|
@@ -2871,6 +2872,14 @@ $root.command_request = (function() {
|
|
|
2871
2872
|
*/
|
|
2872
2873
|
CommandRequest.prototype.route = null;
|
|
2873
2874
|
|
|
2875
|
+
/**
|
|
2876
|
+
* CommandRequest rootSpanPtr.
|
|
2877
|
+
* @member {number|Long|null|undefined} rootSpanPtr
|
|
2878
|
+
* @memberof command_request.CommandRequest
|
|
2879
|
+
* @instance
|
|
2880
|
+
*/
|
|
2881
|
+
CommandRequest.prototype.rootSpanPtr = null;
|
|
2882
|
+
|
|
2874
2883
|
// OneOf field names bound to virtual getters and setters
|
|
2875
2884
|
var $oneOfFields;
|
|
2876
2885
|
|
|
@@ -2885,6 +2894,12 @@ $root.command_request = (function() {
|
|
|
2885
2894
|
set: $util.oneOfSetter($oneOfFields)
|
|
2886
2895
|
});
|
|
2887
2896
|
|
|
2897
|
+
// Virtual OneOf for proto3 optional field
|
|
2898
|
+
Object.defineProperty(CommandRequest.prototype, "_rootSpanPtr", {
|
|
2899
|
+
get: $util.oneOfGetter($oneOfFields = ["rootSpanPtr"]),
|
|
2900
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
2901
|
+
});
|
|
2902
|
+
|
|
2888
2903
|
/**
|
|
2889
2904
|
* Creates a new CommandRequest instance using the specified properties.
|
|
2890
2905
|
* @function create
|
|
@@ -2925,6 +2940,8 @@ $root.command_request = (function() {
|
|
|
2925
2940
|
$root.command_request.UpdateConnectionPassword.encode(message.updateConnectionPassword, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
2926
2941
|
if (message.route != null && Object.hasOwnProperty.call(message, "route"))
|
|
2927
2942
|
$root.command_request.Routes.encode(message.route, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
|
2943
|
+
if (message.rootSpanPtr != null && Object.hasOwnProperty.call(message, "rootSpanPtr"))
|
|
2944
|
+
writer.uint32(/* id 9, wireType 0 =*/72).uint64(message.rootSpanPtr);
|
|
2928
2945
|
return writer;
|
|
2929
2946
|
};
|
|
2930
2947
|
|
|
@@ -2991,6 +3008,10 @@ $root.command_request = (function() {
|
|
|
2991
3008
|
message.route = $root.command_request.Routes.decode(reader, reader.uint32());
|
|
2992
3009
|
break;
|
|
2993
3010
|
}
|
|
3011
|
+
case 9: {
|
|
3012
|
+
message.rootSpanPtr = reader.uint64();
|
|
3013
|
+
break;
|
|
3014
|
+
}
|
|
2994
3015
|
default:
|
|
2995
3016
|
reader.skipType(tag & 7);
|
|
2996
3017
|
break;
|
|
@@ -3981,168 +4002,6 @@ $root.connection_request = (function() {
|
|
|
3981
4002
|
return PubSubSubscriptions;
|
|
3982
4003
|
})();
|
|
3983
4004
|
|
|
3984
|
-
connection_request.OpenTelemetryConfig = (function() {
|
|
3985
|
-
|
|
3986
|
-
/**
|
|
3987
|
-
* Properties of an OpenTelemetryConfig.
|
|
3988
|
-
* @memberof connection_request
|
|
3989
|
-
* @interface IOpenTelemetryConfig
|
|
3990
|
-
* @property {string|null} [collectorEndPoint] OpenTelemetryConfig collectorEndPoint
|
|
3991
|
-
* @property {number|Long|null} [spanFlushInterval] OpenTelemetryConfig spanFlushInterval
|
|
3992
|
-
*/
|
|
3993
|
-
|
|
3994
|
-
/**
|
|
3995
|
-
* Constructs a new OpenTelemetryConfig.
|
|
3996
|
-
* @memberof connection_request
|
|
3997
|
-
* @classdesc Represents an OpenTelemetryConfig.
|
|
3998
|
-
* @implements IOpenTelemetryConfig
|
|
3999
|
-
* @constructor
|
|
4000
|
-
* @param {connection_request.IOpenTelemetryConfig=} [properties] Properties to set
|
|
4001
|
-
*/
|
|
4002
|
-
function OpenTelemetryConfig(properties) {
|
|
4003
|
-
if (properties)
|
|
4004
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
4005
|
-
if (properties[keys[i]] != null)
|
|
4006
|
-
this[keys[i]] = properties[keys[i]];
|
|
4007
|
-
}
|
|
4008
|
-
|
|
4009
|
-
/**
|
|
4010
|
-
* OpenTelemetryConfig collectorEndPoint.
|
|
4011
|
-
* @member {string} collectorEndPoint
|
|
4012
|
-
* @memberof connection_request.OpenTelemetryConfig
|
|
4013
|
-
* @instance
|
|
4014
|
-
*/
|
|
4015
|
-
OpenTelemetryConfig.prototype.collectorEndPoint = "";
|
|
4016
|
-
|
|
4017
|
-
/**
|
|
4018
|
-
* OpenTelemetryConfig spanFlushInterval.
|
|
4019
|
-
* @member {number|Long|null|undefined} spanFlushInterval
|
|
4020
|
-
* @memberof connection_request.OpenTelemetryConfig
|
|
4021
|
-
* @instance
|
|
4022
|
-
*/
|
|
4023
|
-
OpenTelemetryConfig.prototype.spanFlushInterval = null;
|
|
4024
|
-
|
|
4025
|
-
// OneOf field names bound to virtual getters and setters
|
|
4026
|
-
var $oneOfFields;
|
|
4027
|
-
|
|
4028
|
-
// Virtual OneOf for proto3 optional field
|
|
4029
|
-
Object.defineProperty(OpenTelemetryConfig.prototype, "_spanFlushInterval", {
|
|
4030
|
-
get: $util.oneOfGetter($oneOfFields = ["spanFlushInterval"]),
|
|
4031
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
4032
|
-
});
|
|
4033
|
-
|
|
4034
|
-
/**
|
|
4035
|
-
* Creates a new OpenTelemetryConfig instance using the specified properties.
|
|
4036
|
-
* @function create
|
|
4037
|
-
* @memberof connection_request.OpenTelemetryConfig
|
|
4038
|
-
* @static
|
|
4039
|
-
* @param {connection_request.IOpenTelemetryConfig=} [properties] Properties to set
|
|
4040
|
-
* @returns {connection_request.OpenTelemetryConfig} OpenTelemetryConfig instance
|
|
4041
|
-
*/
|
|
4042
|
-
OpenTelemetryConfig.create = function create(properties) {
|
|
4043
|
-
return new OpenTelemetryConfig(properties);
|
|
4044
|
-
};
|
|
4045
|
-
|
|
4046
|
-
/**
|
|
4047
|
-
* Encodes the specified OpenTelemetryConfig message. Does not implicitly {@link connection_request.OpenTelemetryConfig.verify|verify} messages.
|
|
4048
|
-
* @function encode
|
|
4049
|
-
* @memberof connection_request.OpenTelemetryConfig
|
|
4050
|
-
* @static
|
|
4051
|
-
* @param {connection_request.IOpenTelemetryConfig} message OpenTelemetryConfig message or plain object to encode
|
|
4052
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
4053
|
-
* @returns {$protobuf.Writer} Writer
|
|
4054
|
-
*/
|
|
4055
|
-
OpenTelemetryConfig.encode = function encode(message, writer) {
|
|
4056
|
-
if (!writer)
|
|
4057
|
-
writer = $Writer.create();
|
|
4058
|
-
if (message.collectorEndPoint != null && Object.hasOwnProperty.call(message, "collectorEndPoint"))
|
|
4059
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.collectorEndPoint);
|
|
4060
|
-
if (message.spanFlushInterval != null && Object.hasOwnProperty.call(message, "spanFlushInterval"))
|
|
4061
|
-
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.spanFlushInterval);
|
|
4062
|
-
return writer;
|
|
4063
|
-
};
|
|
4064
|
-
|
|
4065
|
-
/**
|
|
4066
|
-
* Encodes the specified OpenTelemetryConfig message, length delimited. Does not implicitly {@link connection_request.OpenTelemetryConfig.verify|verify} messages.
|
|
4067
|
-
* @function encodeDelimited
|
|
4068
|
-
* @memberof connection_request.OpenTelemetryConfig
|
|
4069
|
-
* @static
|
|
4070
|
-
* @param {connection_request.IOpenTelemetryConfig} message OpenTelemetryConfig message or plain object to encode
|
|
4071
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
4072
|
-
* @returns {$protobuf.Writer} Writer
|
|
4073
|
-
*/
|
|
4074
|
-
OpenTelemetryConfig.encodeDelimited = function encodeDelimited(message, writer) {
|
|
4075
|
-
return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();
|
|
4076
|
-
};
|
|
4077
|
-
|
|
4078
|
-
/**
|
|
4079
|
-
* Decodes an OpenTelemetryConfig message from the specified reader or buffer.
|
|
4080
|
-
* @function decode
|
|
4081
|
-
* @memberof connection_request.OpenTelemetryConfig
|
|
4082
|
-
* @static
|
|
4083
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
4084
|
-
* @param {number} [length] Message length if known beforehand
|
|
4085
|
-
* @returns {connection_request.OpenTelemetryConfig} OpenTelemetryConfig
|
|
4086
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4087
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4088
|
-
*/
|
|
4089
|
-
OpenTelemetryConfig.decode = function decode(reader, length) {
|
|
4090
|
-
if (!(reader instanceof $Reader))
|
|
4091
|
-
reader = $Reader.create(reader);
|
|
4092
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.connection_request.OpenTelemetryConfig();
|
|
4093
|
-
while (reader.pos < end) {
|
|
4094
|
-
var tag = reader.uint32();
|
|
4095
|
-
switch (tag >>> 3) {
|
|
4096
|
-
case 1: {
|
|
4097
|
-
message.collectorEndPoint = reader.string();
|
|
4098
|
-
break;
|
|
4099
|
-
}
|
|
4100
|
-
case 2: {
|
|
4101
|
-
message.spanFlushInterval = reader.uint64();
|
|
4102
|
-
break;
|
|
4103
|
-
}
|
|
4104
|
-
default:
|
|
4105
|
-
reader.skipType(tag & 7);
|
|
4106
|
-
break;
|
|
4107
|
-
}
|
|
4108
|
-
}
|
|
4109
|
-
return message;
|
|
4110
|
-
};
|
|
4111
|
-
|
|
4112
|
-
/**
|
|
4113
|
-
* Decodes an OpenTelemetryConfig message from the specified reader or buffer, length delimited.
|
|
4114
|
-
* @function decodeDelimited
|
|
4115
|
-
* @memberof connection_request.OpenTelemetryConfig
|
|
4116
|
-
* @static
|
|
4117
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
4118
|
-
* @returns {connection_request.OpenTelemetryConfig} OpenTelemetryConfig
|
|
4119
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4120
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4121
|
-
*/
|
|
4122
|
-
OpenTelemetryConfig.decodeDelimited = function decodeDelimited(reader) {
|
|
4123
|
-
if (!(reader instanceof $Reader))
|
|
4124
|
-
reader = new $Reader(reader);
|
|
4125
|
-
return this.decode(reader, reader.uint32());
|
|
4126
|
-
};
|
|
4127
|
-
|
|
4128
|
-
/**
|
|
4129
|
-
* Gets the default type url for OpenTelemetryConfig
|
|
4130
|
-
* @function getTypeUrl
|
|
4131
|
-
* @memberof connection_request.OpenTelemetryConfig
|
|
4132
|
-
* @static
|
|
4133
|
-
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
4134
|
-
* @returns {string} The default type url
|
|
4135
|
-
*/
|
|
4136
|
-
OpenTelemetryConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
4137
|
-
if (typeUrlPrefix === undefined) {
|
|
4138
|
-
typeUrlPrefix = "type.googleapis.com";
|
|
4139
|
-
}
|
|
4140
|
-
return typeUrlPrefix + "/connection_request.OpenTelemetryConfig";
|
|
4141
|
-
};
|
|
4142
|
-
|
|
4143
|
-
return OpenTelemetryConfig;
|
|
4144
|
-
})();
|
|
4145
|
-
|
|
4146
4005
|
connection_request.ConnectionRequest = (function() {
|
|
4147
4006
|
|
|
4148
4007
|
/**
|
|
@@ -4165,7 +4024,6 @@ $root.connection_request = (function() {
|
|
|
4165
4024
|
* @property {number|null} [inflightRequestsLimit] ConnectionRequest inflightRequestsLimit
|
|
4166
4025
|
* @property {string|null} [clientAz] ConnectionRequest clientAz
|
|
4167
4026
|
* @property {number|null} [connectionTimeout] ConnectionRequest connectionTimeout
|
|
4168
|
-
* @property {connection_request.IOpenTelemetryConfig|null} [opentelemetryConfig] ConnectionRequest opentelemetryConfig
|
|
4169
4027
|
*/
|
|
4170
4028
|
|
|
4171
4029
|
/**
|
|
@@ -4312,14 +4170,6 @@ $root.connection_request = (function() {
|
|
|
4312
4170
|
*/
|
|
4313
4171
|
ConnectionRequest.prototype.connectionTimeout = 0;
|
|
4314
4172
|
|
|
4315
|
-
/**
|
|
4316
|
-
* ConnectionRequest opentelemetryConfig.
|
|
4317
|
-
* @member {connection_request.IOpenTelemetryConfig|null|undefined} opentelemetryConfig
|
|
4318
|
-
* @memberof connection_request.ConnectionRequest
|
|
4319
|
-
* @instance
|
|
4320
|
-
*/
|
|
4321
|
-
ConnectionRequest.prototype.opentelemetryConfig = null;
|
|
4322
|
-
|
|
4323
4173
|
// OneOf field names bound to virtual getters and setters
|
|
4324
4174
|
var $oneOfFields;
|
|
4325
4175
|
|
|
@@ -4391,8 +4241,6 @@ $root.connection_request = (function() {
|
|
|
4391
4241
|
writer.uint32(/* id 15, wireType 2 =*/122).string(message.clientAz);
|
|
4392
4242
|
if (message.connectionTimeout != null && Object.hasOwnProperty.call(message, "connectionTimeout"))
|
|
4393
4243
|
writer.uint32(/* id 16, wireType 0 =*/128).uint32(message.connectionTimeout);
|
|
4394
|
-
if (message.opentelemetryConfig != null && Object.hasOwnProperty.call(message, "opentelemetryConfig"))
|
|
4395
|
-
$root.connection_request.OpenTelemetryConfig.encode(message.opentelemetryConfig, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
|
|
4396
4244
|
return writer;
|
|
4397
4245
|
};
|
|
4398
4246
|
|
|
@@ -4493,10 +4341,6 @@ $root.connection_request = (function() {
|
|
|
4493
4341
|
message.connectionTimeout = reader.uint32();
|
|
4494
4342
|
break;
|
|
4495
4343
|
}
|
|
4496
|
-
case 17: {
|
|
4497
|
-
message.opentelemetryConfig = $root.connection_request.OpenTelemetryConfig.decode(reader, reader.uint32());
|
|
4498
|
-
break;
|
|
4499
|
-
}
|
|
4500
4344
|
default:
|
|
4501
4345
|
reader.skipType(tag & 7);
|
|
4502
4346
|
break;
|
|
@@ -4926,6 +4770,7 @@ $root.response = (function() {
|
|
|
4926
4770
|
* @property {response.IRequestError|null} [requestError] Response requestError
|
|
4927
4771
|
* @property {string|null} [closingError] Response closingError
|
|
4928
4772
|
* @property {boolean|null} [isPush] Response isPush
|
|
4773
|
+
* @property {number|Long|null} [rootSpanPtr] Response rootSpanPtr
|
|
4929
4774
|
*/
|
|
4930
4775
|
|
|
4931
4776
|
/**
|
|
@@ -4991,6 +4836,14 @@ $root.response = (function() {
|
|
|
4991
4836
|
*/
|
|
4992
4837
|
Response.prototype.isPush = false;
|
|
4993
4838
|
|
|
4839
|
+
/**
|
|
4840
|
+
* Response rootSpanPtr.
|
|
4841
|
+
* @member {number|Long|null|undefined} rootSpanPtr
|
|
4842
|
+
* @memberof response.Response
|
|
4843
|
+
* @instance
|
|
4844
|
+
*/
|
|
4845
|
+
Response.prototype.rootSpanPtr = null;
|
|
4846
|
+
|
|
4994
4847
|
// OneOf field names bound to virtual getters and setters
|
|
4995
4848
|
var $oneOfFields;
|
|
4996
4849
|
|
|
@@ -5005,6 +4858,12 @@ $root.response = (function() {
|
|
|
5005
4858
|
set: $util.oneOfSetter($oneOfFields)
|
|
5006
4859
|
});
|
|
5007
4860
|
|
|
4861
|
+
// Virtual OneOf for proto3 optional field
|
|
4862
|
+
Object.defineProperty(Response.prototype, "_rootSpanPtr", {
|
|
4863
|
+
get: $util.oneOfGetter($oneOfFields = ["rootSpanPtr"]),
|
|
4864
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
4865
|
+
});
|
|
4866
|
+
|
|
5008
4867
|
/**
|
|
5009
4868
|
* Creates a new Response instance using the specified properties.
|
|
5010
4869
|
* @function create
|
|
@@ -5041,6 +4900,8 @@ $root.response = (function() {
|
|
|
5041
4900
|
writer.uint32(/* id 5, wireType 2 =*/42).string(message.closingError);
|
|
5042
4901
|
if (message.isPush != null && Object.hasOwnProperty.call(message, "isPush"))
|
|
5043
4902
|
writer.uint32(/* id 6, wireType 0 =*/48).bool(message.isPush);
|
|
4903
|
+
if (message.rootSpanPtr != null && Object.hasOwnProperty.call(message, "rootSpanPtr"))
|
|
4904
|
+
writer.uint32(/* id 7, wireType 0 =*/56).uint64(message.rootSpanPtr);
|
|
5044
4905
|
return writer;
|
|
5045
4906
|
};
|
|
5046
4907
|
|
|
@@ -5099,6 +4960,10 @@ $root.response = (function() {
|
|
|
5099
4960
|
message.isPush = reader.bool();
|
|
5100
4961
|
break;
|
|
5101
4962
|
}
|
|
4963
|
+
case 7: {
|
|
4964
|
+
message.rootSpanPtr = reader.uint64();
|
|
4965
|
+
break;
|
|
4966
|
+
}
|
|
5102
4967
|
default:
|
|
5103
4968
|
reader.skipType(tag & 7);
|
|
5104
4969
|
break;
|
package/build-ts/index.d.ts
CHANGED
|
@@ -5,8 +5,7 @@
|
|
|
5
5
|
* - Native bindings auto-generated by napi-rs (moved to ./native.js)
|
|
6
6
|
* - All TypeScript client-side APIs from ./src/
|
|
7
7
|
*/
|
|
8
|
-
|
|
9
|
-
export declare const Level: typeof Native.Level, MAX_REQUEST_ARGS_LEN: number, DEFAULT_REQUEST_TIMEOUT_IN_MILLISECONDS: number, DEFAULT_CONNECTION_TIMEOUT_IN_MILLISECONDS: number, DEFAULT_INFLIGHT_REQUESTS_LIMIT: number, AsyncClient: typeof Native.AsyncClient, StartSocketConnection: typeof Native.StartSocketConnection, log: typeof Native.log, InitInternalLogger: typeof Native.InitInternalLogger, valueFromSplitPointer: typeof Native.valueFromSplitPointer, createLeakedStringVec: typeof Native.createLeakedStringVec, Script: typeof Native.Script, ClusterScanCursor: typeof Native.ClusterScanCursor, getStatistics: typeof Native.getStatistics;
|
|
8
|
+
export * from "../build-ts/native";
|
|
10
9
|
export * from "./BaseClient.js";
|
|
11
10
|
export * from "./Batch.js";
|
|
12
11
|
export * from "./Commands.js";
|
|
@@ -14,6 +13,7 @@ export * from "./Errors.js";
|
|
|
14
13
|
export * from "./GlideClient.js";
|
|
15
14
|
export * from "./GlideClusterClient.js";
|
|
16
15
|
export * from "./Logger.js";
|
|
16
|
+
export * from "./OpenTelemetry.js";
|
|
17
17
|
export * from "./server-modules/GlideFt.js";
|
|
18
18
|
export * from "./server-modules/GlideFtOptions.js";
|
|
19
19
|
export * from "./server-modules/GlideJson.js";
|
package/build-ts/index.js
CHANGED
|
@@ -17,35 +17,11 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
17
17
|
if (k2 === undefined) k2 = k;
|
|
18
18
|
o[k2] = m[k];
|
|
19
19
|
}));
|
|
20
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
21
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
22
|
-
}) : function(o, v) {
|
|
23
|
-
o["default"] = v;
|
|
24
|
-
});
|
|
25
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
26
|
-
var ownKeys = function(o) {
|
|
27
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
28
|
-
var ar = [];
|
|
29
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
30
|
-
return ar;
|
|
31
|
-
};
|
|
32
|
-
return ownKeys(o);
|
|
33
|
-
};
|
|
34
|
-
return function (mod) {
|
|
35
|
-
if (mod && mod.__esModule) return mod;
|
|
36
|
-
var result = {};
|
|
37
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
38
|
-
__setModuleDefault(result, mod);
|
|
39
|
-
return result;
|
|
40
|
-
};
|
|
41
|
-
})();
|
|
42
20
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
43
21
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
44
22
|
};
|
|
45
23
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
-
|
|
47
|
-
const Native = __importStar(require("../build-ts/native"));
|
|
48
|
-
exports.Level = Native.Level, exports.MAX_REQUEST_ARGS_LEN = Native.MAX_REQUEST_ARGS_LEN, exports.DEFAULT_REQUEST_TIMEOUT_IN_MILLISECONDS = Native.DEFAULT_REQUEST_TIMEOUT_IN_MILLISECONDS, exports.DEFAULT_CONNECTION_TIMEOUT_IN_MILLISECONDS = Native.DEFAULT_CONNECTION_TIMEOUT_IN_MILLISECONDS, exports.DEFAULT_INFLIGHT_REQUESTS_LIMIT = Native.DEFAULT_INFLIGHT_REQUESTS_LIMIT, exports.AsyncClient = Native.AsyncClient, exports.StartSocketConnection = Native.StartSocketConnection, exports.log = Native.log, exports.InitInternalLogger = Native.InitInternalLogger, exports.valueFromSplitPointer = Native.valueFromSplitPointer, exports.createLeakedStringVec = Native.createLeakedStringVec, exports.Script = Native.Script, exports.ClusterScanCursor = Native.ClusterScanCursor, exports.getStatistics = Native.getStatistics;
|
|
24
|
+
__exportStar(require("../build-ts/native"), exports);
|
|
49
25
|
// Export TypeScript APIs
|
|
50
26
|
__exportStar(require("./BaseClient.js"), exports);
|
|
51
27
|
__exportStar(require("./Batch.js"), exports);
|
|
@@ -54,6 +30,7 @@ __exportStar(require("./Errors.js"), exports);
|
|
|
54
30
|
__exportStar(require("./GlideClient.js"), exports);
|
|
55
31
|
__exportStar(require("./GlideClusterClient.js"), exports);
|
|
56
32
|
__exportStar(require("./Logger.js"), exports);
|
|
33
|
+
__exportStar(require("./OpenTelemetry.js"), exports);
|
|
57
34
|
__exportStar(require("./server-modules/GlideFt.js"), exports);
|
|
58
35
|
__exportStar(require("./server-modules/GlideFtOptions.js"), exports);
|
|
59
36
|
__exportStar(require("./server-modules/GlideJson.js"), exports);
|
package/build-ts/native.d.ts
CHANGED
|
@@ -15,7 +15,61 @@ export const MAX_REQUEST_ARGS_LEN: number;
|
|
|
15
15
|
export const DEFAULT_REQUEST_TIMEOUT_IN_MILLISECONDS: number;
|
|
16
16
|
export const DEFAULT_CONNECTION_TIMEOUT_IN_MILLISECONDS: number;
|
|
17
17
|
export const DEFAULT_INFLIGHT_REQUESTS_LIMIT: number;
|
|
18
|
+
/**
|
|
19
|
+
* Configuration for OpenTelemetry integration in the Node.js client.
|
|
20
|
+
*
|
|
21
|
+
* This struct allows you to configure how telemetry data (traces and metrics) is exported to an OpenTelemetry collector.
|
|
22
|
+
* - `traces`: Optional configuration for exporting trace data. If `None`, trace data will not be exported.
|
|
23
|
+
* - `metrics`: Optional configuration for exporting metrics data. If `None`, metrics data will not be exported.
|
|
24
|
+
* - `flush_interval_ms`: Optional interval in milliseconds between consecutive exports of telemetry data. If `None`, a default value will be used.
|
|
25
|
+
*
|
|
26
|
+
* At least one of traces or metrics must be provided.
|
|
27
|
+
*/
|
|
28
|
+
export interface OpenTelemetryConfig {
|
|
29
|
+
/** Optional configuration for exporting trace data. If `None`, trace data will not be exported. */
|
|
30
|
+
traces?: OpenTelemetryTracesConfig;
|
|
31
|
+
/** Optional configuration for exporting metrics data. If `None`, metrics data will not be exported. */
|
|
32
|
+
metrics?: OpenTelemetryMetricsConfig;
|
|
33
|
+
/** Optional interval in milliseconds between consecutive exports of telemetry data. If `None`, the default `DEFAULT_FLUSH_SIGNAL_INTERVAL_MS` will be used. */
|
|
34
|
+
flushIntervalMs?: number;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Configuration for exporting OpenTelemetry traces.
|
|
38
|
+
*
|
|
39
|
+
* - `endpoint`: The endpoint to which trace data will be exported. Expected format:
|
|
40
|
+
* - For gRPC: `grpc://host:port`
|
|
41
|
+
* - For HTTP: `http://host:port` or `https://host:port`
|
|
42
|
+
* - For file exporter: `file:///absolute/path/to/folder/file.json`
|
|
43
|
+
* - `sample_percentage`: The percentage of requests to sample and create a span for, used to measure command duration. If `None`, a default value DEFAULT_TRACE_SAMPLE_PERCENTAGE will be used.
|
|
44
|
+
* Note: There is a tradeoff between sampling percentage and performance. Higher sampling percentages will provide more detailed telemetry data but will impact performance.
|
|
45
|
+
* It is recommended to keep this number low (1-5%) in production environments unless you have specific needs for higher sampling rates.
|
|
46
|
+
*/
|
|
47
|
+
export interface OpenTelemetryTracesConfig {
|
|
48
|
+
/** The endpoint to which trace data will be exported. */
|
|
49
|
+
endpoint: string;
|
|
50
|
+
/**
|
|
51
|
+
* The percentage of requests to sample and create a span for, used to measure command duration. If `None`, a default value DEFAULT_TRACE_SAMPLE_PERCENTAGE will be used.
|
|
52
|
+
* Note: There is a tradeoff between sampling percentage and performance. Higher sampling percentages will provide more detailed telemetry data but will impact performance.
|
|
53
|
+
* It is recommended to keep this number low (1-5%) in production environments unless you have specific needs for higher sampling rates.
|
|
54
|
+
*/
|
|
55
|
+
samplePercentage?: number;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Configuration for exporting OpenTelemetry metrics.
|
|
59
|
+
*
|
|
60
|
+
* - `endpoint`: The endpoint to which metrics data will be exported. Expected format:
|
|
61
|
+
* - For gRPC: `grpc://host:port`
|
|
62
|
+
* - For HTTP: `http://host:port` or `https://host:port`
|
|
63
|
+
* - For file exporter: `file:///absolute/path/to/folder/file.json`
|
|
64
|
+
*/
|
|
65
|
+
export interface OpenTelemetryMetricsConfig {
|
|
66
|
+
/** The endpoint to which metrics data will be exported. */
|
|
67
|
+
endpoint: string;
|
|
68
|
+
}
|
|
18
69
|
export declare function StartSocketConnection(): Promise<string>;
|
|
70
|
+
export declare function InitOpenTelemetry(
|
|
71
|
+
openTelemetryConfig: OpenTelemetryConfig,
|
|
72
|
+
): void;
|
|
19
73
|
export declare function log(
|
|
20
74
|
logLevel: Level,
|
|
21
75
|
logIdentifier: string,
|
|
@@ -48,6 +102,9 @@ export declare function valueFromSplitPointer(
|
|
|
48
102
|
export declare function createLeakedStringVec(
|
|
49
103
|
message: Array<Uint8Array>,
|
|
50
104
|
): [number, number];
|
|
105
|
+
/** Creates an open telemetry span with the given name and returns a pointer to the span */
|
|
106
|
+
export declare function createLeakedOtelSpan(name: string): [number, number];
|
|
107
|
+
export declare function dropOtelSpan(spanPtr: bigint): void;
|
|
51
108
|
export declare function getStatistics(): object;
|
|
52
109
|
export declare class AsyncClient {
|
|
53
110
|
static CreateConnection(connectionAddress: string): AsyncClient;
|
|
@@ -60,6 +117,15 @@ export declare class Script {
|
|
|
60
117
|
constructor(code: string | Uint8Array);
|
|
61
118
|
/** Returns the hash of the script. */
|
|
62
119
|
getHash(): string;
|
|
120
|
+
/**
|
|
121
|
+
* Decrements the script's reference count in the local container.
|
|
122
|
+
* Removes the script when the count reaches zero.
|
|
123
|
+
*
|
|
124
|
+
* This method is primarily intended for testing or manual cleanup.
|
|
125
|
+
* It does not need to be called explicitly, as the script will be automatically
|
|
126
|
+
* released when dropped.
|
|
127
|
+
*/
|
|
128
|
+
release(): void;
|
|
63
129
|
}
|
|
64
130
|
/**
|
|
65
131
|
* This struct is used to keep track of the cursor of a cluster scan.
|
package/build-ts/native.js
CHANGED
|
@@ -337,10 +337,13 @@ const {
|
|
|
337
337
|
DEFAULT_INFLIGHT_REQUESTS_LIMIT,
|
|
338
338
|
AsyncClient,
|
|
339
339
|
StartSocketConnection,
|
|
340
|
+
InitOpenTelemetry,
|
|
340
341
|
log,
|
|
341
342
|
InitInternalLogger,
|
|
342
343
|
valueFromSplitPointer,
|
|
343
344
|
createLeakedStringVec,
|
|
345
|
+
createLeakedOtelSpan,
|
|
346
|
+
dropOtelSpan,
|
|
344
347
|
Script,
|
|
345
348
|
ClusterScanCursor,
|
|
346
349
|
getStatistics,
|
|
@@ -356,10 +359,13 @@ module.exports.DEFAULT_INFLIGHT_REQUESTS_LIMIT =
|
|
|
356
359
|
DEFAULT_INFLIGHT_REQUESTS_LIMIT;
|
|
357
360
|
module.exports.AsyncClient = AsyncClient;
|
|
358
361
|
module.exports.StartSocketConnection = StartSocketConnection;
|
|
362
|
+
module.exports.InitOpenTelemetry = InitOpenTelemetry;
|
|
359
363
|
module.exports.log = log;
|
|
360
364
|
module.exports.InitInternalLogger = InitInternalLogger;
|
|
361
365
|
module.exports.valueFromSplitPointer = valueFromSplitPointer;
|
|
362
366
|
module.exports.createLeakedStringVec = createLeakedStringVec;
|
|
367
|
+
module.exports.createLeakedOtelSpan = createLeakedOtelSpan;
|
|
368
|
+
module.exports.dropOtelSpan = dropOtelSpan;
|
|
363
369
|
module.exports.Script = Script;
|
|
364
370
|
module.exports.ClusterScanCursor = ClusterScanCursor;
|
|
365
371
|
module.exports.getStatistics = getStatistics;
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
|
|
3
3
|
*/
|
|
4
|
-
import { DecoderOption, GlideRecord, GlideReturnType, GlideString } from "
|
|
5
|
-
import { GlideClient } from "../GlideClient";
|
|
6
|
-
import { GlideClusterClient } from "../GlideClusterClient";
|
|
7
|
-
import { Field, FtAggregateOptions, FtCreateOptions, FtSearchOptions } from "./GlideFtOptions";
|
|
4
|
+
import { DecoderOption, GlideRecord, GlideReturnType, GlideString, GlideClient, GlideClusterClient, Field, FtAggregateOptions, FtCreateOptions, FtSearchOptions } from "..";
|
|
8
5
|
/** Response type of {@link GlideFt.info | ft.info} command. */
|
|
9
6
|
export type FtInfoReturnType = Record<string, GlideString | number | GlideString[] | Record<string, GlideString | Record<string, GlideString | number>[]>>;
|
|
10
7
|
/**
|