@mastra/observability 1.17.3 → 1.17.4

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
@@ -6717,7 +6717,7 @@ var MastraPlatformExporter = class extends BaseExporter {
6717
6717
  if (rawProjectId !== void 0 && !VALID_PROJECT_ID.test(rawProjectId)) throw createInvalidProjectIdError(rawProjectId);
6718
6718
  const projectId = rawProjectId;
6719
6719
  if (!accessToken) this.setDisabled("MASTRA_PLATFORM_ACCESS_TOKEN environment variable not set.", "debug");
6720
- const tracesEndpointOverride = config.tracesEndpoint ?? process.env.MASTRA_CLOUD_TRACES_ENDPOINT;
6720
+ const tracesEndpointOverride = config.tracesEndpoint ?? (process.env.MASTRA_CLOUD_TRACES_ENDPOINT || process.env.MASTRA_PLATFORM_OBSERVABILITY_ENDPOINT || void 0);
6721
6721
  let baseEndpoint;
6722
6722
  let tracesEndpoint;
6723
6723
  if (tracesEndpointOverride) tracesEndpoint = resolveExplicitSignalEndpoint("traces", tracesEndpointOverride, projectId);