@mastra/observability 0.0.0-main-test-05-11-2025-2-20251105214713 → 0.0.0-main-test-05-11-2025-2-20251105233020
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 +5 -3
- package/README.md +18 -20
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/instances/base.d.ts +1 -1
- package/dist/instances/index.d.ts +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -95,7 +95,7 @@ var CloudExporter = class extends BaseExporter {
|
|
|
95
95
|
"MASTRA_CLOUD_ACCESS_TOKEN environment variable not set. \u{1F680} Sign up for Mastra Cloud at https://cloud.mastra.ai to see your traces online and obtain your access token."
|
|
96
96
|
);
|
|
97
97
|
}
|
|
98
|
-
const endpoint = config.endpoint ?? process.env.
|
|
98
|
+
const endpoint = config.endpoint ?? process.env.MASTRA_CLOUD_TRACES_ENDPOINT ?? "https://api.mastra.ai/ai/spans/publish";
|
|
99
99
|
this.config = {
|
|
100
100
|
logger: this.logger,
|
|
101
101
|
logLevel: config.logLevel ?? LogLevel.INFO,
|
|
@@ -1587,7 +1587,7 @@ var BaseObservabilityInstance = class extends MastraBase {
|
|
|
1587
1587
|
// Utility Methods
|
|
1588
1588
|
// ============================================================================
|
|
1589
1589
|
/**
|
|
1590
|
-
* Check if
|
|
1590
|
+
* Check if a trace should be sampled
|
|
1591
1591
|
*/
|
|
1592
1592
|
shouldSample(options) {
|
|
1593
1593
|
const { sampling } = this.config;
|