1.0.14 • Published 6 months ago

core-sre-replace-env v1.0.14

Weekly downloads
-
License
ISC
Repository
-
Last release
6 months ago

core-sre-replace-env

Use this package together with core-sre-otel-web, this script will replace the otlp endpoint and service name placeholders on the core-sre-otel-web library with OTEL_SERVICE_NAME and OTEL_EXPORTER_OTLP_ENDPOINT from the env variables.

Installation

npm install core-sre-replace-env

Usage

Option 1 - via ENV

add REPLACE_FILE, the target file path(glob) to your javascript file where the core-sre-otel-web is bundled with.

export REPLACE_FILE = app/main.*.js

package.json

{
    "scripts": {
        "start": "replace && node index.js"
    }
}

Option 2 - via args

{
   "scripts": {
      "start": "replace app/main.*.js && node index.js"
   }
}
1.0.14

6 months ago

1.0.13

6 months ago

1.0.12

6 months ago

1.0.11

6 months ago

1.0.10

6 months ago

1.0.9

6 months ago

1.0.8

6 months ago

1.0.7

6 months ago

1.0.6

6 months ago

1.0.5

6 months ago

1.0.4

6 months ago

1.0.3

6 months ago

1.0.2

6 months ago

1.0.1

6 months ago

1.0.0

6 months ago