@withgateway/sdk 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -2696,22 +2696,19 @@ __export(tracing_exports, {
2696
2696
 
2697
2697
  // src/tracing/init.ts
2698
2698
  var ENV_VARS = {
2699
- HOST: ["GATEWAY_HOST", "GATEWAY_HOST"],
2700
- PUBLIC_KEY: ["GATEWAY_PUBLIC_KEY", "GATEWAY_PUBLIC_KEY"],
2701
- SECRET_KEY: ["GATEWAY_SECRET_KEY", "GATEWAY_SECRET_KEY"],
2702
- ENDPOINT: ["GATEWAY_OTLP_ENDPOINT", "GATEWAY_OTLP_ENDPOINT"]
2699
+ HOST: "GATEWAY_HOST",
2700
+ PUBLIC_KEY: "GATEWAY_PUBLIC_KEY",
2701
+ SECRET_KEY: "GATEWAY_SECRET_KEY",
2702
+ ENDPOINT: "GATEWAY_OTLP_ENDPOINT"
2703
2703
  };
2704
2704
  var DEFAULT_OTLP_PATH = "/api/public/otel/v1/traces";
2705
2705
  var state = {
2706
2706
  initialized: false,
2707
2707
  provider: null
2708
2708
  };
2709
- function getEnv(keys) {
2710
- for (const key of keys) {
2711
- const value = process.env[key];
2712
- if (value) return value;
2713
- }
2714
- return void 0;
2709
+ function getEnv(key) {
2710
+ const value = process.env[key];
2711
+ return value ? value : void 0;
2715
2712
  }
2716
2713
  function log(message, ...args) {
2717
2714
  if (state.debug) {