
Product
Introducing Repository Access Permissions and Custom Roles
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.
@mastra/arthur
Advanced tools
Affected versions:
Arthur AI observability provider for Mastra - exports traces using OpenInference semantic conventions
Export Mastra traces to Arthur AI using OpenInference Semantic Conventions.
npm install @mastra/arthur
Add ArthurExporter to your Mastra configuration to export traces to Arthur. The exporter automatically reads credentials from environment variables, enabling zero-config setup.
Set environment variables:
ARTHUR_API_KEY=your-api-key
ARTHUR_BASE_URL=https://app.arthur.ai
ARTHUR_TASK_ID=your-task-id # optional, associates traces with a specific Arthur task
import { ArthurExporter } from '@mastra/arthur';
import { Mastra } from '@mastra/core/mastra';
const mastra = new Mastra({
...,
observability: {
configs: {
arthur: {
serviceName: 'my-service',
exporters: [new ArthurExporter()],
},
},
},
});
import { ArthurExporter } from '@mastra/arthur';
import { Mastra } from '@mastra/core/mastra';
const mastra = new Mastra({
...,
observability: {
configs: {
arthur: {
serviceName: 'my-service',
exporters: [
new ArthurExporter({
apiKey: 'your-api-key',
endpoint: 'https://app.arthur.ai',
}),
],
},
},
},
});
new ArthurExporter({
// Required at runtime (or set ARTHUR_API_KEY env var)
apiKey: 'your-api-key',
// Required at runtime (or set ARTHUR_BASE_URL env var)
endpoint: 'https://app.arthur.ai',
// Optional headers added to each OTLP request
headers: {
'x-custom-header': 'value',
},
// Optional log level for debugging
logLevel: 'debug',
// Optional batch size for the underlying BatchSpanProcessor
batchSize: 512,
// Optional timeout for span export
timeout: 30000,
// Optional resource attributes added to each span
resourceAttributes: {
'custom.attribute': 'value',
},
});
Custom span attributes are serialized into the OpenInference metadata payload. Add them through tracingOptions.metadata:
await agent.generate(input, {
tracingOptions: {
metadata: {
companyId: 'acme-co',
},
},
});
This exporter follows the OpenInference Semantic Conventions for generative AI applications. All agent runs, tool calls, and LLM generations are automatically tagged with the correct span kinds and attributes.
Apache 2.0
FAQs
Arthur AI observability provider for Mastra - exports traces using OpenInference semantic conventions
The npm package @mastra/arthur receives a total of 832 weekly downloads. As such, @mastra/arthur popularity was classified as not popular.
We found that @mastra/arthur demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.