@mastra/observability 1.12.0-alpha.3 → 1.12.0
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/CHANGELOG.md +118 -0
- package/dist/exporters/mastra-platform.d.ts.map +1 -1
- package/dist/index.cjs +2 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -3
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -16340,7 +16340,7 @@ var MastraPlatformExporter = class extends BaseExporter {
|
|
|
16340
16340
|
if (config2.projectId !== void 0 && !VALID_PROJECT_ID2.test(config2.projectId)) {
|
|
16341
16341
|
throw createInvalidProjectIdError2(config2.projectId);
|
|
16342
16342
|
}
|
|
16343
|
-
const accessToken = config2.accessToken
|
|
16343
|
+
const accessToken = config2.accessToken || process.env.MASTRA_PLATFORM_ACCESS_TOKEN || process.env.MASTRA_CLOUD_ACCESS_TOKEN;
|
|
16344
16344
|
const envProjectId = process.env.MASTRA_PROJECT_ID === "" ? void 0 : process.env.MASTRA_PROJECT_ID;
|
|
16345
16345
|
const rawProjectId = config2.projectId ?? envProjectId;
|
|
16346
16346
|
if (rawProjectId !== void 0 && !VALID_PROJECT_ID2.test(rawProjectId)) {
|
|
@@ -16348,7 +16348,7 @@ var MastraPlatformExporter = class extends BaseExporter {
|
|
|
16348
16348
|
}
|
|
16349
16349
|
const projectId = rawProjectId;
|
|
16350
16350
|
if (!accessToken) {
|
|
16351
|
-
this.setDisabled("
|
|
16351
|
+
this.setDisabled("MASTRA_PLATFORM_ACCESS_TOKEN environment variable not set.", "debug");
|
|
16352
16352
|
}
|
|
16353
16353
|
const tracesEndpointOverride = config2.tracesEndpoint ?? process.env.MASTRA_CLOUD_TRACES_ENDPOINT;
|
|
16354
16354
|
let baseEndpoint;
|
|
@@ -19021,7 +19021,6 @@ var PricingRegistry = class _PricingRegistry {
|
|
|
19021
19021
|
constructor(pricingModels) {
|
|
19022
19022
|
this.pricingModels = pricingModels;
|
|
19023
19023
|
}
|
|
19024
|
-
pricingModels;
|
|
19025
19024
|
static globalRegistry = null;
|
|
19026
19025
|
static fromText(pricingModelText) {
|
|
19027
19026
|
return new _PricingRegistry(parsePricingModelText(pricingModelText));
|