opentelemetry-js icon indicating copy to clipboard operation
opentelemetry-js copied to clipboard

Consolidate sync and async resource interfaces

Open dyladan opened this issue 2 years ago • 2 comments
trafficstars

In #3460 we introduced resources which may be sync or async. In a future version we should consolidate the interfaces into a single point of entry.

Because the resource class can now contain async unresolved resource attributes, we can remove the detectResourcesAsync. All resource detectors can return a sync resource that may contain async attributes.

dyladan avatar Feb 01 '23 20:02 dyladan