Options
All
  • Public
  • Public/Protected
  • All
Menu

An interface that represents a resource. A Resource describes the entity for which signals (metrics or trace) are collected.

Hierarchy

  • IResource

Implemented by

Index

Properties

asyncAttributesPending?: boolean

Check if async attributes have resolved. This is useful to avoid awaiting waitForAsyncAttributes (which will introduce asynchronous behavior) when not necessary.

returns

true if the resource "attributes" property is not yet settled to its final value

attributes: Attributes
returns

the Resource's attributes.

Methods

  • waitForAsyncAttributes(): Promise<void>
  • Returns 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.

    Returns Promise<void>

Generated using TypeDoc