Home / npm packages / @opentelemetry/resources

@opentelemetry/resources source code

Every file of @opentelemetry/resources@2.11.0 as published on npm: 195 files, 232 KB. Search them by exact text or regex, in milliseconds.

It uses: child_process, process.env, the fs module, crypto.

What @opentelemetry/resources uses

APIIn @opentelemetry/resources
eval()
runs a string as JavaScript
NoWho does
new Function()
builds a function from a string, like eval (with or without new)
NoWho does
child_process
starts other programs
Yes: 6 files
e.g. build/esm/detectors/platform/node/machine-id/execAsync.js
See the lines
process.env
reads environment variables
Yes: 3 files
e.g. build/esm/detectors/platform/node/machine-id/getMachineId-win.js
See the lines
the fs module
reads and writes files
Yes: 6 files
e.g. build/esm/detectors/platform/node/machine-id/getMachineId-bsd.js
See the lines
http / https
makes or serves HTTP requests with Node's own modules
NoWho does
fetch()
makes HTTP requests
NoWho does
XMLHttpRequest
makes HTTP requests the old browser way
NoWho does
crypto
hashes, encrypts or makes random numbers
Yes: 3 files
e.g. build/esm/detectors/platform/node/ServiceInstanceIdDetector.js
See the lines
WebAssembly
loads WebAssembly code
NoWho does
document.cookie
reads or writes browser cookies
NoWho does
install scripts
runs a script when it's installed
NoWho does

Exact matches in the published files, so a mention in a comment counts too: open the lines to check.

Largest files

FileSize
build/src/semconv.js17 KB
build/esm/semconv.js16 KB
build/esnext/semconv.js16 KB
build/esm/semconv.d.ts16 KB
build/esnext/semconv.d.ts16 KB
build/src/semconv.d.ts16 KB
LICENSE11 KB
build/src/ResourceImpl.js6.1 KB
build/esm/ResourceImpl.js5.5 KB
build/esnext/ResourceImpl.js5.5 KB
build/src/detectors/EnvDetector.js4.7 KB
build/esm/detectors/EnvDetector.js4.6 KB
build/esnext/detectors/EnvDetector.js4.6 KB
package.json3.0 KB
README.md2.1 KB
build/src/index.js2.0 KB
build/esm/Resource.d.ts1.8 KB
build/esnext/Resource.d.ts1.8 KB
build/src/Resource.d.ts1.8 KB
build/esm/detectors/platform/node/ProcessDetector.js1.7 KB
build/esnext/detectors/platform/node/ProcessDetector.js1.7 KB
build/esm/detectors/EnvDetector.d.ts1.7 KB
build/esnext/detectors/EnvDetector.d.ts1.7 KB
build/src/detectors/EnvDetector.d.ts1.7 KB
build/src/detectors/platform/node/ProcessDetector.js1.6 KB
build/esm/types.d.ts1.5 KB
build/esnext/types.d.ts1.5 KB
build/src/types.d.ts1.5 KB
build/src/detectors/index.js1.3 KB
build/src/detectors/platform/node/utils.js1.3 KB

Questions

How many files are in @opentelemetry/resources?

Version 2.11.0 of @opentelemetry/resources publishes 195 files of source, 232 KB in all, not counting images, fonts and source maps.

Does @opentelemetry/resources use eval?

No: @opentelemetry/resources doesn't call eval() anywhere in its published files.

Does @opentelemetry/resources start other programs?

Yes: @opentelemetry/resources uses child_process in 6 of its files.

Does @opentelemetry/resources run an install script?

No: @opentelemetry/resources has no preinstall, install or postinstall script in its package.json.

npm packages that use…

Every package we've indexed →

Search your own code like this

The same engine answers over your documents and repositories: exact text and regex, every match counted, from your code or your AI agent.

See StackGrep Engine