openllmetry-js icon indicating copy to clipboard operation
openllmetry-js copied to clipboard

Bug: incompatibilities with CloudFlare workers

Open nirga opened this issue 1 year ago • 2 comments

✘ [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");
     ╵                       ~~~~~~~

nirga avatar Aug 23 '24 04:08 nirga