@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.mjs CHANGED
@@ -2623,22 +2623,19 @@ __export(tracing_exports, {
2623
2623
 
2624
2624
  // src/tracing/init.ts
2625
2625
  var ENV_VARS = {
2626
- HOST: ["GATEWAY_HOST", "GATEWAY_HOST"],
2627
- PUBLIC_KEY: ["GATEWAY_PUBLIC_KEY", "GATEWAY_PUBLIC_KEY"],
2628
- SECRET_KEY: ["GATEWAY_SECRET_KEY", "GATEWAY_SECRET_KEY"],
2629
- ENDPOINT: ["GATEWAY_OTLP_ENDPOINT", "GATEWAY_OTLP_ENDPOINT"]
2626
+ HOST: "GATEWAY_HOST",
2627
+ PUBLIC_KEY: "GATEWAY_PUBLIC_KEY",
2628
+ SECRET_KEY: "GATEWAY_SECRET_KEY",
2629
+ ENDPOINT: "GATEWAY_OTLP_ENDPOINT"
2630
2630
  };
2631
2631
  var DEFAULT_OTLP_PATH = "/api/public/otel/v1/traces";
2632
2632
  var state = {
2633
2633
  initialized: false,
2634
2634
  provider: null
2635
2635
  };
2636
- function getEnv(keys) {
2637
- for (const key of keys) {
2638
- const value = process.env[key];
2639
- if (value) return value;
2640
- }
2641
- return void 0;
2636
+ function getEnv(key) {
2637
+ const value = process.env[key];
2638
+ return value ? value : void 0;
2642
2639
  }
2643
2640
  function log(message, ...args) {
2644
2641
  if (state.debug) {