From 7f4ed0859ecd7922f51aac50238176291cbda1ba Mon Sep 17 00:00:00 2001 From: Jakub Date: Thu, 9 May 2024 11:16:54 +0200 Subject: [PATCH] fix(resources): lint wait for async attributes for detecting resources --- packages/opentelemetry-resources/src/detect-resources.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/opentelemetry-resources/src/detect-resources.ts b/packages/opentelemetry-resources/src/detect-resources.ts index 28ab5eeccf..0bfa13cac8 100644 --- a/packages/opentelemetry-resources/src/detect-resources.ts +++ b/packages/opentelemetry-resources/src/detect-resources.ts @@ -70,7 +70,7 @@ export const detectResourcesSync = ( if (isPromiseLike(resourceOrPromise)) { const createPromise = async () => { const resolvedResource = await resourceOrPromise; - // await resolvedResource.waitForAsyncAttributes?.(); + await resolvedResource.waitForAsyncAttributes?.(); return resolvedResource.attributes; }; resource = new Resource({}, createPromise());