snowflake-sdk
Version:
Node.js driver for Snowflake
24 lines • 891 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.buildInbandTelemetryRequest = buildInbandTelemetryRequest;
function buildInbandTelemetryRequest(connectionConfig, eventType, eventData) {
return {
method: 'POST',
url: '/telemetry/send',
json: {
logs: [
{
timestamp: new Date().getTime(),
message: {
driver_type: connectionConfig.getClientType(),
driver_version: connectionConfig.getClientVersion(),
source: connectionConfig.getClientApplication() ?? connectionConfig.getClientType(),
type: eventType,
value: eventData,
},
},
],
},
};
}
//# sourceMappingURL=inband_telemetry.js.map