Skip to content

Commit

Permalink
fix(resources): lint wait for async attributes for detecting resources
Browse files Browse the repository at this point in the history
  • Loading branch information
ziolekjj committed May 9, 2024
1 parent 56c21e9 commit 7f4ed08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/opentelemetry-resources/src/detect-resources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const detectResourcesSync = (
if (isPromiseLike<Resource>(resourceOrPromise)) {
const createPromise = async () => {
const resolvedResource = await resourceOrPromise;
// await resolvedResource.waitForAsyncAttributes?.();
await resolvedResource.waitForAsyncAttributes?.();
return resolvedResource.attributes;
};
resource = new Resource({}, createPromise());
Expand Down

0 comments on commit 7f4ed08

Please sign in to comment.