@elasticdash/tracing 0.0.3 → 0.0.5

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.cjs CHANGED
@@ -152,7 +152,7 @@ function _flattenAndSerializeMetadata(metadata, type) {
152
152
  // src/tracerProvider.ts
153
153
  var import_core2 = require("@elasticdash/core");
154
154
  var import_api = require("@opentelemetry/api");
155
- var LANGFUSE_GLOBAL_SYMBOL = Symbol.for("langfuse");
155
+ var ELASTICDASH_GLOBAL_SYMBOL = Symbol.for("langfuse");
156
156
  function createState() {
157
157
  return {
158
158
  isolatedTracerProvider: null
@@ -168,8 +168,8 @@ function getGlobalState() {
168
168
  );
169
169
  return initialState;
170
170
  }
171
- if (!g[LANGFUSE_GLOBAL_SYMBOL]) {
172
- Object.defineProperty(g, LANGFUSE_GLOBAL_SYMBOL, {
171
+ if (!g[ELASTICDASH_GLOBAL_SYMBOL]) {
172
+ Object.defineProperty(g, ELASTICDASH_GLOBAL_SYMBOL, {
173
173
  value: initialState,
174
174
  writable: false,
175
175
  // lock the slot (not the contents)
@@ -177,7 +177,7 @@ function getGlobalState() {
177
177
  enumerable: false
178
178
  });
179
179
  }
180
- return g[LANGFUSE_GLOBAL_SYMBOL];
180
+ return g[ELASTICDASH_GLOBAL_SYMBOL];
181
181
  } catch (err) {
182
182
  if (err instanceof Error) {
183
183
  (0, import_core2.getGlobalLogger)().error(`Failed to access global state: ${err.message}`);
@@ -197,8 +197,8 @@ function getLangfuseTracerProvider() {
197
197
  }
198
198
  function getLangfuseTracer() {
199
199
  return getLangfuseTracerProvider().getTracer(
200
- import_core2.LANGFUSE_TRACER_NAME,
201
- import_core2.LANGFUSE_SDK_VERSION
200
+ import_core2.ELASTICDASH_TRACER_NAME,
201
+ import_core2.ELASTICDASH_SDK_VERSION
202
202
  );
203
203
  }
204
204