Optional
Readonly
asyncCheck if async attributes have resolved. This is useful to avoid awaiting waitForAsyncAttributes (which will introduce asynchronous behavior) when not necessary.
Readonly
attributesOptional
waitReturns a promise that will never be rejected. Resolves when all async attributes have finished being added to this Resource's attributes. This is useful in exporters to block until resource detection has finished.
An interface that represents a resource. A Resource describes the entity for which signals (metrics or trace) are collected.
This interface is NOT user-implementable. Valid ways to obtain a Resource are by using either of these functions