odigos icon indicating copy to clipboard operation
odigos copied to clipboard

add resource detectors to nodejs instrumentation agent

Open blumamir opened this issue 1 year ago • 3 comments

Currently odigos nodejs instrumentation agent includes a few resource detectors.

    "@opentelemetry/resource-detector-alibaba-cloud": "0.28.1",
    "@opentelemetry/resource-detector-aws": "1.3.1",
    "@opentelemetry/resource-detector-container": "0.3.1",
    "@opentelemetry/resource-detector-gcp": "0.29.1",

Those resource detectors are installed as dependencies, but I think they should be used in code, by setting the resourceDetectors property in the NodeSDKConfiguration object here.

It seems that we can also add additional resource detectors that are currently not used. See the available detectors here

blumamir avatar Oct 04 '23 08:10 blumamir