I am not seeing any spans related to the use of undici(fetch) being produced which I assume is related to the above message.
matt@matt-X570-AORUS-ELITE:~/dev/otel-example$ npm start
> otel-example@0.1.0 start
> node index.js
@opentelemetry/api: Registered a global for diag v1.8.0.
No modules instrumentation has been defined for '@opentelemetry/instrumentation-undici@0.2.0', nothing will be patched
@opentelemetry/api: Registered a global for trace v1.8.0.
@opentelemetry/api: Registered a global for context v1.8.0.
@opentelemetry/api: Registered a global for propagation v1.8.0.
Accessing resource attributes before async attributes settled
EnvDetector found resource. Resource {
_attributes: {},
asyncAttributesPending: false,
_syncAttributes: {},
_asyncAttributesPromise: Promise { {} }
}
ProcessDetector found resource. Resource {
_attributes: {
'process.pid': 165495,
'process.executable.name': 'node',
'process.executable.path': '/home/matt/.nvm/versions/node/v20.12.1/bin/node',
'process.command_args': [
'/home/matt/.nvm/versions/node/v20.12.1/bin/node',
'/home/matt/dev/otel-example/index.js'
],
'process.runtime.version': '20.12.1',
'process.runtime.name': 'nodejs',
'process.runtime.description': 'Node.js',
'process.command': '/home/matt/dev/otel-example/index.js',
'process.owner': 'matt'
},
asyncAttributesPending: false,
_syncAttributes: {},
_asyncAttributesPromise: Promise {
{
'process.pid': 165495,
'process.executable.name': 'node',
'process.executable.path': '/home/matt/.nvm/versions/node/v20.12.1/bin/node',
'process.command_args': [Array],
'process.runtime.version': '20.12.1',
'process.runtime.name': 'nodejs',
'process.runtime.description': 'Node.js',
'process.command': '/home/matt/dev/otel-example/index.js',
'process.owner': 'matt'
}
}
}
HostDetector found resource. Resource {
_attributes: { 'host.name': 'matt-X570-AORUS-ELITE', 'host.arch': 'amd64' },
asyncAttributesPending: false,
_syncAttributes: {},
_asyncAttributesPromise: Promise {
{ 'host.name': 'matt-X570-AORUS-ELITE', 'host.arch': 'amd64' }
}
}
What version of OpenTelemetry are you using?
"@opentelemetry/instrumentation-undici": "^0.2.0",
"@opentelemetry/sdk-node": "^0.51.1",
What version of Node are you using?
20.12.1
What did you do?
Running this minimal example: https://github.com/digitalbazaar/otel-example/blob/main/index.js
Which produces the following output with the message that:
No modules instrumentation has been defined for '@opentelemetry/instrumentation-undici@0.2.0', nothing will be patchedI am not seeing any spans related to the use of undici(fetch) being produced which I assume is related to the above message.
What does one need to do to get this instrumentation package working properly?
Thank you,
Matt