openllmetry-js
openllmetry-js copied to clipboard
Bug: incompatibilities with CloudFlare workers
✘ [ERROR] Could not resolve "os"
../node_modules/@traceloop/node-server-sdk/dist/index.js:9:17:
9 │ var os = require('os');
╵ ~~~~
The package "os" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
✘ [ERROR] Could not resolve "fs"
../node_modules/@traceloop/node-server-sdk/dist/index.js:10:17:
10 │ var fs = require('fs');
╵ ~~~~
The package "fs" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
✘ [ERROR] Could not resolve "fs"
../node_modules/@opentelemetry/otlp-grpc-exporter-base/build/src/util.js:24:19:
24 │ const fs = require("fs");
╵ ~~~~
The package "fs" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
✘ [ERROR] Could not resolve "net"
../node_modules/@grpc/grpc-js/build/src/resolver-ip.js:19:22:
19 │ const net_1 = require("net");
╵ ~~~~~
The package "net" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
✘ [ERROR] Could not resolve "http2"
../node_modules/@grpc/grpc-js/build/src/server.js:54:22:
54 │ const http2 = require("http2");
╵ ~~~~~~~