Skip to content

Commit

Permalink
Add jsdocs
Browse files Browse the repository at this point in the history
  • Loading branch information
svetlanabrennan committed Oct 16, 2024
1 parent 8554500 commit efdd04c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions lib/metrics/recorders/record-metrics.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
const { DB, ALL } = require('../../metrics/names')
const { DESTINATIONS } = require('../../config/attribute-filter')

/**
* @this ParsedStatement
* @param {TraceSegment} segment - The segment being recorded.
* @param {string} [scope] - The scope of the segment.
*/

function _recordMetrics(segment, scope) {
const duration = segment.getDurationInMillis()
const exclusive = segment.getExclusiveDurationInMillis()
Expand Down
2 changes: 1 addition & 1 deletion lib/metrics/recorders/record-operation-metrics.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const metrics = require('../../metrics/names')
/**
* Records all the metrics required for database operations.
*
* - `_recordOperationMetrics(segment [, scope])`
* - `recordOperationMetrics(segment [, scope])`
*
* @private
* @this DatastoreShim
Expand Down

0 comments on commit efdd04c

Please sign in to comment.