Skip to content

Commit

Permalink
chore(simple-resource): update span name
Browse files Browse the repository at this point in the history
  • Loading branch information
stfsy committed Feb 22, 2024
1 parent becb48b commit 0e895df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/simple-resource-storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ module.exports = class {
* @param {GetOptions} options
*/
async getAllChildren(resourceIds, childName, { withMetadata = false, projection } = {}) {
return withActiveSpan(`${name}#get-all-one-to-many-resources-by-id`, { resourceIds, resourceName: this._collectionName, databaseName: this._databaseName }, async () => {
return withActiveSpan(`${name}#get-all-simple-resource-children`, { resourceIds, resourceName: this._collectionName, databaseName: this._databaseName }, async () => {

const lookupPipeline = getSingleLookupPipeline({ rootId: this._toStringIfArray(resourceIds), childCollectionName: 'queues' })
const childResourcesPipeline = joinAndQueryChildResourcesPipeline({ parentCollectionName: 'queues', childCollectionName: 'listeners', options: { withMetadata, projection } })
Expand Down

0 comments on commit 0e895df

Please sign in to comment.