Runtime package.json check causes breakage when bundled #1361
Labels
api: logging
Issues related to the googleapis/nodejs-logging API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
If
@google-cloud/logging-min
or@google-cloud/logging
is bundled (say, via esbuild), it crashes at runtime as the instrumentation code wants to accesspackage.json
.nodejs-logging/src/utils/instrumentation.ts
Lines 189 to 199 in 90bb09f
getNodejsLibraryVersion
should be inlined during build-step.Environment details
@google-cloud/logging
version: 10.2.0Steps to reproduce
await log.write(entry)
The text was updated successfully, but these errors were encountered: