1.0.15 • Published 7 months ago

core-sre-replace-env v1.0.15

Weekly downloads
-
License
ISC
Repository
-
Last release
7 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.15

7 months ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago