@kurrent/opentelemetry
Version:
KurrentDB NodeJS Client SDK interceptors for tracing with OpenTelemetry
14 lines • 532 B
JavaScript
;
/* eslint-disable @typescript-eslint/no-explicit-any */
Object.defineProperty(exports, "__esModule", { value: true });
exports.hasConvertGrpcEventMethod = hasConvertGrpcEventMethod;
exports.isJSONEventData = isJSONEventData;
function hasConvertGrpcEventMethod(obj
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
) {
return typeof obj.convertGrpcEvent === "function";
}
function isJSONEventData(event) {
return event.contentType === "application/json";
}
//# sourceMappingURL=utils.js.map