import { Resource } from "https://deno.land/x/observability@v0.5.1/mod.ts";
A Resource describes the entity for which a signals (metrics or trace) are collected.
Properties
Methods
merge(other: IResource | null): IResource
Returns a new, merged Resource by merging the current Resource with the other Resource. In case of a collision, other Resource takes precedence.
optional
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.
Static Properties
readonly
EMPTY: Resource