measurement.js 534 B

123456789101112131415161718
  1. Object.defineProperty(exports, '__esModule', { value: true });
  2. const utils = require('./utils.js');
  3. /**
  4. * Adds a measurement to the current active transaction.
  5. */
  6. function setMeasurement(name, value, unit) {
  7. // eslint-disable-next-line deprecation/deprecation
  8. const transaction = utils.getActiveTransaction();
  9. if (transaction) {
  10. // eslint-disable-next-line deprecation/deprecation
  11. transaction.setMeasurement(name, value, unit);
  12. }
  13. }
  14. exports.setMeasurement = setMeasurement;
  15. //# sourceMappingURL=measurement.js.map