Mojule Docs

Configuration

Mojule consumes Anthropic's first-party OpenTelemetry. These are the environment keys the OTEL config sets and the identity attributes Anthropic attaches — there is no Mojule agent, binary, or local config file.

OTEL environment keys

The managed-settings.json env block (Claude Code) and the Cowork Monitoring panel set the same underlying OTEL export. The keys:

CLAUDE_CODE_ENABLE_TELEMETRY
1 — enables Anthropic's native exporter
CLAUDE_CODE_ENHANCED_TELEMETRY_BETA
1 — required for trace span emission
OTEL_LOGS_EXPORTER
otlp
OTEL_METRICS_EXPORTER
otlp
OTEL_TRACES_EXPORTER
otlp
OTEL_LOG_USER_PROMPTS
1 — emit prompt text (Claude Code ships off)
OTEL_LOG_TOOL_DETAILS
1 — emit tool inputs/parameters (Claude Code ships off)
OTEL_EXPORTER_OTLP_PROTOCOL
http/json
OTEL_EXPORTER_OTLP_ENDPOINT
https://ingest.mojule.cloud
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT
https://ingest.mojule.cloud/v1/traces — traces silently do not emit without the explicit signal endpoint
OTEL_EXPORTER_OTLP_HEADERS
Authorization=Bearer <your-token>
OTEL_RESOURCE_ATTRIBUTES
mojule.tenant_id=<your-tenant-id> (API-key / Bedrock / Vertex only)

Identity attributes

When a user is signed in with a Claude Team or Enterprise account, Anthropic auto-attaches identity to every event. Mojule keys tenancy on organization.id and attributes activity per-person via user.email.

Resource attributes (auto-attached)

json
{
  "organization.id": "org_...",
  "user.email": "engineer@acme.com",
  "user.account_uuid": "...",
  "session.id": "...",
  "terminal.type": "cli | vscode | cursor | cowork"
}
The cowork terminal type maps to Claude Cowork; the cli, vscode, and cursor types map to Claude Code. No other surface emits OTEL.

Content toggles

Anthropic gates content emission behind two export flags. Mojule's managed-settings template sets both — session content is the signal the intelligence features run on:

OTEL_LOG_USER_PROMPTS
Emits prompt text. Claude Code ships off (the prompt arrives as the literal "<REDACTED>"); Claude Cowork ships on.
OTEL_LOG_TOOL_DETAILS
Emits tool inputs and parameters (e.g. bash commands, file paths). Claude Code ships off; Claude Cowork ships on.
Captured content is governed, not discarded: content-bearing attributes are split out at ingest and stored encrypted (app-layer AES-256-GCM), retained for your org's configured window (default 90 days) and then purged, readable only by org admins and the session's own user, with every content read audit-logged.

API-key, Bedrock, and Vertex mode

These auth modes do not attach an organization id. Add a tenant resource attribute so events stay attributed to your org:

Shell

bash
OTEL_RESOURCE_ATTRIBUTES=mojule.tenant_id=<your-tenant-id>

Keep resource attributes coarse (team, cost center, tenant id). Do not put per-session high-cardinality values here.