@mastra/observability 1.11.1-alpha.0 → 1.11.1
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 +48 -0
- package/dist/exporters/base.d.ts +1 -1
- package/dist/exporters/base.d.ts.map +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -13985,9 +13985,9 @@ var BaseExporter = class {
|
|
|
13985
13985
|
*
|
|
13986
13986
|
* @param reason - Reason why the exporter is disabled
|
|
13987
13987
|
*/
|
|
13988
|
-
setDisabled(reason) {
|
|
13988
|
+
setDisabled(reason, level = "warn") {
|
|
13989
13989
|
this.#disabled = true;
|
|
13990
|
-
this.logger
|
|
13990
|
+
this.logger[level](`${this.name} disabled: ${reason}`);
|
|
13991
13991
|
}
|
|
13992
13992
|
/**
|
|
13993
13993
|
* Apply the customSpanFormatter if configured.
|
|
@@ -15171,7 +15171,7 @@ var CloudExporter = class extends BaseExporter {
|
|
|
15171
15171
|
const rawProjectId = config2.projectId ?? process.env.MASTRA_PROJECT_ID;
|
|
15172
15172
|
const projectId = rawProjectId && VALID_PROJECT_ID.test(rawProjectId) ? rawProjectId : void 0;
|
|
15173
15173
|
if (!accessToken) {
|
|
15174
|
-
this.setDisabled("MASTRA_CLOUD_ACCESS_TOKEN environment variable not set.");
|
|
15174
|
+
this.setDisabled("MASTRA_CLOUD_ACCESS_TOKEN environment variable not set.", "debug");
|
|
15175
15175
|
}
|
|
15176
15176
|
const tracesEndpointOverride = config2.tracesEndpoint ?? process.env.MASTRA_CLOUD_TRACES_ENDPOINT;
|
|
15177
15177
|
let baseEndpoint;
|