odigos
odigos copied to clipboard
add resource detectors to nodejs instrumentation agent
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