Claude Code

Claude Code Telemetry (OTel): What Your Employer Can See

By Gabriel Ceicoschi

May 31, 2026

Claude Code AI Security GDPR Compliance Data Privacy AI Governance Software Engineering
An orange strip is visible through openings in a charcoal masking plate above a pale work tile, representing observable work data.

What Claude Code OpenTelemetry monitoring actually captures

Picture a Monday morning, first day back from leave. You open a terminal. Claude Code shows a consent prompt you have never seen before, asking you to accept a managed setting an employer set, an OTEL_EXPORTER_OTLP_ENDPOINT, the OpenTelemetry endpoint Claude Code will export telemetry to.

You hit no. The prompt comes back the next session. You restart Claude Code. Same prompt. You open Teams and find a thread already running, engineers cracking big-brother jokes, the person responsible for the Claude Code rollout answering questions. You add yours. Why is this being pushed without anyone being told what it captures, who can read it, and how long it is kept.

The choice on screen is binary. Yes, I trust these settings. Or No, exit Claude Code. Red pill or blue pill, with no third option for "let me read what I'm signing first." Anthropic's own warning text on that prompt names the stakes plainly: "Your organization has configured managed settings that could allow execution of arbitrary code or interception of your prompts and responses." That is not the language of cost tracking. Current versions also show a narrower prompt when the only change is where telemetry goes: "Your organization has configured Claude Code to send telemetry to the destination below. Depending on your organization's settings, this can include the content of your prompts and responses." I checked both strings in Claude Code 2.1.301.

That hypothetical is the whole article. The rest is me thinking about it without picking the easy answer.

What does "Your organization has configured managed settings" mean in Claude Code?

It means your company has pushed settings to Claude Code that you cannot change yourself, and at least one of them is the kind Claude Code asks you to approve before it runs. These are settings that could execute code on your machine or send your session data somewhere, and a telemetry endpoint set through OTEL_EXPORTER_OTLP_ENDPOINT is the most common reason people see the message. Approving it does not by itself mean anyone reads your prompts. Prompt and response content is only exported when the organization also turns on switches like OTEL_LOG_USER_PROMPTS, which are covered below. Rejecting it closes Claude Code, and since v2.1.251 the dialog comes back whenever the approved settings change, listing only what changed.

If you see the message, the useful move is to ask whoever owns the rollout three questions before you approve: which managed settings were added, which OTEL_LOG_* content switches are on, and where the collector sends the data and for how long. If the message shows up on machines you administer, publish those answers before the rollout reaches developers. I describe what a defensible setup looks like in the rollout section further down, and it is the kind of configuration work we do in AI Projects.

What the setting actually does

OTel on Claude Code is not only cost tracking. The Anthropic dashboard and the Claude Code agent SDK already expose cost and usage data without OTel. The reason an organization wires up an OpenTelemetry exporter is usually that they want more than cost: traces, correlation, attribution, auditing, and the ability to join AI telemetry with their existing observability and finance stack. Those are reasonable goals.

The honest part is that OTel only carries what the application instruments and what the collector forward. Depending on implementation, that can include:

  • Prompts and responses, as documented in OpenTelemetry's GenAI observability blog and in Anthropic's monitoring guide. Prompt text needs OTEL_LOG_USER_PROMPTS. Response text needs OTEL_LOG_ASSISTANT_RESPONSES, which falls back to the prompt setting when unset
  • Tool and MCP invocations, including success or failure states. Parameters such as Bash commands and tool input need OTEL_LOG_TOOL_DETAILS, and tool output needs OTEL_LOG_TOOL_CONTENT
  • File paths read or modified, also gated by OTEL_LOG_TOOL_DETAILS
  • Human approval decisions for tool calls: whether a call was allowed or denied, and whether the config, a hook, or the user decided
  • Full API request and response bodies with OTEL_LOG_RAW_API_BODIES, which include the entire conversation history
  • Model names, token counts, timing, latency, and error information per Claude Code's monitoring docs
What OTel can capture What OTel cannot capture
Prompts you typed (OTEL_LOG_USER_PROMPTS) Model's hidden chain-of-thought
Responses received (OTEL_LOG_ASSISTANT_RESPONSES) Reasoning steps inside the model
Tool and MCP invocations + parameters (OTEL_LOG_TOOL_DETAILS) Content you never submitted
File paths read or modified (OTEL_LOG_TOOL_DETAILS) Data on other employees' sessions
Human approval decisions Local clipboard or IDE state
Model name, token counts, latency, errors Anything redacted at the collector before export

All of those content switches are off by default. Someone has to turn them on. What it does not include is the model's hidden chain of thought. The pipe can expose what you typed and what came back. It does not expose the model's private reasoning. The distinction matters when imagining the worst case, because the worry should be specific.

OpenTelemetry's own security guidance on handling sensitive data is explicit that implementers must minimize, redact, hash, or drop sensitive attributes rather than assume telemetry is safe by default. Unless that work is done, the same pipeline can become a broad surveillance layer rather than a scoped observability one. The Art of CTO has a good walkthrough of how to set this up in a privacy-aware way.

The honest first question is not "do you trust your employer" It is "what is the collector dropping before it leaves the machine, who configured it, and where is that written down?"

What changed since May 2026

I wrote this piece at the end of May. Claude Code has shipped a run of telemetry changes since then, and most of them move control over the pipe from the developer to the organization. Here is what the changelog and the monitoring docs confirm.

  • The managed endpoint wins (v2.1.217, July 21). When managed settings set OTEL_EXPORTER_OTLP_ENDPOINT, a developer-set signal-specific endpoint can no longer redirect telemetry away from it. Claude Code removes the conflicting developer-set variables at startup and logs a warning in the debug log.
  • Beta tracing follows the same rule (v2.1.251, August 28). Claude Code removes a developer-set BETA_TRACING_ENDPOINT when managed settings decide where logs or traces go. Before this release, that variable could redirect detailed beta traces even when the organization had pinned the collector.
  • The approval prompt shows only what changed (v2.1.251). When settings that need approval change, the dialog comes back and lists only the settings that changed since you last approved. In a running session it can appear within an hour. If you reject, Claude Code exits.
  • The organization can see its own policy (v2.1.274, September 17). A new claude_code.managed_settings_resolved event reports which managed sources a session used. With OTEL_LOG_MANAGED_SETTINGS=1 it also carries a redacted copy of the settings and a digest.
  • Repositories can't switch telemetry on (v2.1.282, September 24). Project and local settings now ignore OTel variables that turn on export, set the endpoint, or capture content, such as CLAUDE_CODE_ENABLE_TELEMETRY and OTEL_LOG_*. A repository can still turn a signal off.

For employees, this cuts both ways. Once your organization pins a collector, you can no longer override where your telemetry goes. A repository you cloned can't opt you in either. The party that controls content capture is the one that owns managed settings, so that is where your questions go.

For employers, the policy you set is now the policy that runs, and the resolved-settings event lets you check which machines run it. That also removes the argument that developers configured it themselves. If prompts leave the machine, your managed settings sent them.

Why companies want this, in good faith

Companies rarely frame this as employee surveillance. They frame it as observability, security, governance, and ROI measurement, and those motives are often real. Datadog's piece on Claude Code monitoring and Elastic's security-labs walkthrough both make the case. So does Jellyfish on Claude Code analytics and Harmonic's security practitioner guide.

If I were the CTO signing off, here is what I'd tell myself.

The company is about to spend serious money on this tool. The native dashboard is thin. I cannot allocate cost by team, correlate usage with outcomes, see where the agent fails, or build the executive dashboard I owe finance. I also have a security problem: Claude Code reads files, writes code, calls tools, and touches infrastructure, which makes it part of the operational attack surface. Traces are how I reconstruct incidents and detect misuse. And I have a training problem: I want to know where engineers are stuck so I can build the right enablement.

Those are real reasons. I could sign off on them.

What I couldn't sign off on is the path of least resistance, where security wants traces, finance wants attribution, legal wants auditability, and HR wants investigatory capability, until a system justified as observability becomes an always-on record of how people think through problems. That is the scope creep that most privacy practitioners flag before any of these rollouts begin.

The same instinct shows up around outliers. In any large organization, some people will misunderstand the tool, some will use it casually for personal tasks, and a smaller number may use it in clearly unauthorized ways. Telemetry feels attractive because it promises evidence when aggregate anomalies appear, as the IBA notes in its guidance on AI in employee disputes. That is also a real problem. But the answer to a few outliers is rarely "log everyone forever."

What employees give up by saying yes

The most important thing many employees give up is not secrecy but cognitive privacy. AI coding assistants create a space where people think aloud, ask naive questions, test bad ideas, and iterate toward a solution. That space becomes less candid once prompts can be centrally searched or reviewed, as the American Psychological Association documents on electronic monitoring.

OTel-backed collection wont expose the model's internal reasoning, but it can still expose what the engineer typed: messy prompts, mistaken assumptions, internal URLs, partial credentials pasted by accident, vulnerability descriptions, abandoned experiments. Even if a policy says content will not be used for performance management, employees can reasonably ask what technically prevents that later if the data already exists. Dutch works council guidance covers this exact question.

There is also a concentration risk. Centralizing rich prompt logs creates a high-value target accessible to internal admins and, in some cases, third-party observability vendors. If the backend is breached, misconfigured, or over-shared internally, the consequence can be much worse than losing ordinary application logs because prompt content often contains business context, architecture detail, and sensitive mistakes in unusually compact form.

The boring worst case

If I were the employee, what would worry me here isn't the dramatic version. It's the quiet one.

Someone in middle management discovers they can rank engineers by prompts per day, rework ratio, average iterations to convergence. It looks objective. It moves into HR conversations. Performance reviews start citing telemetry the engineer did not know was being watched at that resolution. Reputations bend on numbers nobody agreed should exist.

This is not paranoia. It is the natural drift of any rich measurement system that lives near HR. The seat-based SaaS era avoided this problem by accident, because seats did not produce a per-person performance signal. Usage-priced AI plus content-level telemetry produces exactly that signal, and produces it whether the organization meant to or not.

The receipts that should worry an employee are boring on purpose. A session spent on a false lead. A prompt asking how to phrase a hard message to a colleague. A debugging spiral that exposes a mental model of a system before it's cleaned up. None of it is misuse. All of it is intimate.

We treat Teams as a communication channel with privacy rules. AI is also a communication channel, and a more intimate one. The difference is that Teams records a finished message. AI records the rough draft of how you think before the message exists.

The European frame: GDPR, the AI Act, works councils

This is where the conversation in Europe diverges from the same conversation in the US, and that divergence matters even if your employer is global.

GDPR. Employee-linked prompt and telemetry data is personal data. Systematic monitoring of workers is often high-risk processing that requires strict necessity, proportionality, transparency, and usually a Data Protection Impact Assessment. Blanket collection of full AI session content is difficult to justify if less intrusive alternatives can reach the same result.

The AI Act. The Act adds a layer when AI systems are used to monitor or evaluate workers or influence employment-related decisions. If Claude Code telemetry is later used to assess productivity, rank employees, or support disciplinary decisions, the organization risks moving closer to a regulated high-risk employment use case with significantly heavier governance duties, as Recital 57 of the Act outlines. Enforcement is hybrid: the EU AI Office oversees general-purpose model providers, while member states designate national market surveillance authorities for other AI systems, including workplace deployments. In practice, implementation has lagged, which means formal enforcement is real but uneven.

Dutch works councils. In the Netherlands, the practical control point is closer than the regulator. Dutch works councils have consent rights over policies involving employee monitoring. Dutch commentary has specifically highlighted privacy and tracking as areas where works councils should intervene early, and dutch-law.com summarizes the rules on monitoring employees in the Netherlands. If a Dutch employer is pushing OTel without that conversation, that is not a procurement question, it is a works council question.

When the prompt pops up on your terminal in Europe, you have the right to ask whether there is a DPIA, what lawful basis the rollout is using, and whether the works council has been consulted. Asking those questions is not adversarial. It is the thing the law expects.

The psychology of being watched

Electronic monitoring is associated with worse mental-health and workplace outcomes. The American Psychological Association reports that monitored workers were more likely to feel tense or stressed, more likely to rate their mental health as poor or fair, and more likely to say work harmed their mental health than non-monitored workers. European research on AI monitoring finds the same pattern, and a 2023 PMC paper traces the mechanism.

The mechanism matters. Monitoring reduces perceived autonomy, increases impression management, and weakens psychological safety, especially in knowledge work where experimentation and error are part of the job. In AI-assisted coding, this is especially damaging because the highest-value use of the tool often involves exploratory, imperfect, unpolished interaction. The more an organization monitors AI use at the content layer, the more likely workers are to use the tool in a guarded, superficial, less innovative way. Over time, that produces more distant workers, more defensive behavior, and less organizational learning, even if short-term compliance visibility improves.

That is the paradox. The thing you measured got smaller because you measured it.

How this compares with monitoring you already accepted

Organizations already monitor many things. Teams, Microsoft 365, and related compliance suites can give administrators broad access to messages, files, call metadata, presence data, and discovery workflows. Many employees underestimate how normal this already is in corporate environments, including activity tracking inside Microsoft Teams.

Companies can also inspect network traffic at different levels. URL logging records visited domains and timing. SSL or HTTPS interception can, when properly deployed with a corporate root certificate, decrypt and inspect some categories of traffic on managed devices for security purposes, though Broadcom's privacy guidance makes clear that the legal basis in Europe is narrow. In European contexts, this is generally easier to justify for narrow security purposes than for generalized productivity surveillance, and still requires transparency and proportionality.

The crucial comparison is this: email and Teams mostly capture finished communications. Full AI prompt monitoring captures the rough draft of thought and exploration before it becomes a work product. That is why many employees experience it as more intimate and more invasive than ordinary business-system logging.

What a sane rollout looks like

A privacy-aware organization can still measure value and reduce risk without normalizing content surveillance. The defensible design usually looks like this:

  1. Metadata first. Model, latency, failures, token counts, coarse tool categories. The Claude Code monitoring docs already cover most of this without content capture.
  2. Redact or drop sensitive attributes at the collector, not after storage. OpenTelemetry's own guidance is the reference.
  3. Separate observability from HR and performance evaluation. Structural, not "we promise."
  4. Limit access through role-based controls and audited access paths.
  5. Short retention windows by default. Long retention only on documented investigation cause.
  6. Involve works councils or employee representatives before rollout in jurisdictions where required, per Dutch works council guidance.
  7. Document a DPIA and publish a plain-language explanation of what is collected and why.

That program will not satisfy organizations that want the most complete possible visibility. It is, however, far more likely to survive legal, ethical, and cultural scrutiny.

The outlier problem, treated like adults

Organizations face real misuse problems. Some employees do not understand what data should never be entered into an AI tool. Some use company tools for clearly personal work. A smaller number behave recklessly or opportunistically. But this is not a new governance problem. The closest analogies are email misuse, internet misuse, BYOD, and phone-system abuse. In each case, mature organizations eventually converged on the same pattern: clear acceptable use policies, training, aggregate monitoring, technical controls, and targeted investigation on cause, rather than permanent content-level surveillance for everyone. MWH's employee monitoring overview frames the same playbook.

A proportionate response to AI tool misuse typically includes:

  • An AI acceptable use policy with examples of permitted and prohibited use
  • Mandatory onboarding and periodic refresher training
  • Budget and rate limits per user or team
  • DLP or pattern-based controls for credentials, PII, and regulated data where feasible
  • Aggregate anomaly detection for unusually high usage or unusual patterns
  • A documented escalation path for targeted review requiring authorization and oversight

This is usually more defensible than building a system that records every prompt by default.

Where I'd change my mind

I'd flip to yes the day an organization showed four things in writing.

Scope. Metadata only, with explicit redaction of prompt and response content at the collector.

Access. A short named list of who can read what, with audited access paths.

Retention. Short windows by default. Long retention only on documented investigation cause.

Separation. Telemetry stays out of HR and performance evaluation. Structural, not promised.

That is not unreasonable. It is the same thing mature organizations did with email, internet, and BYOD after the first decade of getting it wrong.

Conclusion

Saying yes to Claude Code monitoring is not agreeing to a setting. It may be agreeing to a new relationship between workers, employers, and AI-assisted thought. For employers, the appeal is real: observability, governance, cost control, auditability. For employees, the concern is equally real: once the system can capture prompts, responses, and tool traces, it can become a mechanism of visibility far beyond ordinary software telemetry.

The strongest answer is usually neither absolute trust nor absolute rejection. It is a demand for scope, safeguards, proportionality, and alternatives. Where those do not exist, privacy-aware employees are rational to prefer local models, self-hosted options, or tools with narrower and more transparent logging. Where organizations want adoption without alienation, they should design for minimum necessary monitoring rather than maximum possible capture.

A managed setting in your terminal is not the form factor of a policy decision. It is the form factor of a checkbox. Treat it like the policy decision it actually is.

Frequently Asked Questions

What does "Your organization has configured managed settings" mean in Claude Code?

Your company has pushed settings to Claude Code that you cannot change yourself, and at least one of them needs your approval because it could run code or send session data elsewhere. A telemetry endpoint is the most common cause. Approving does not by itself export your prompts. That only happens if the organization also turns on content switches such as OTEL_LOG_USER_PROMPTS. Rejecting closes Claude Code.

Does saying yes automatically mean my employer reads every prompt?

Not necessarily. The setting enables the capability for telemetry export, but what is actually stored and reviewed depends on the organization's collector configuration, backend, retention policy, and access controls. The problem for employees is that capability without clear scope is already a meaningful risk.

Can a company claim this is only for cost tracking?

It can claim that, but basic cost tracking already exists through native Claude Code and Anthropic usage tooling. OpenTelemetry becomes more attractive when the company wants richer tracing, correlation, investigation, and potentially content-level visibility.

If I use a different AI tool, am I private again?

Not automatically. Vendor telemetry, company API keys, network logging, endpoint agents, or SSL inspection may still expose usage depending on the setup. True privacy is strongest when prompts stay local and off the company network.

Are local models good enough to replace Claude Code?

For some tasks, yes. For others, not yet. Local models can be excellent for routine coding, scaffolding, autocomplete, and low-sensitivity work, but frontier hosted models often remain better at deep reasoning and complex agentic tasks unless the employee has strong local hardware.

Can my employer already see my Teams messages and files?

In many Microsoft 365 environments, administrators can access broad compliance and discovery capabilities for messages, files, and related metadata. That is one reason prompt monitoring feels like a boundary shift: it moves AI conversations into the same visibility zone as enterprise messaging, but at the level of rough drafts rather than finished communication.

Should I ask for a DPIA or works council approval?

In Europe, especially in the Netherlands, yes. If AI prompt monitoring is being rolled out, asking whether there is a DPIA, what lawful basis is relied on, and whether the works council approved the system is the right move.

Is full-content monitoring necessary to measure ROI?

Usually not. ROI can often be estimated with metadata, cost and usage dashboards, surveys, output metrics, and targeted sampling rather than always-on content capture. Full-content logging may improve investigation and analysis, but it also raises legal and trust costs.

Can the AI Act or GDPR really apply to developer prompt logs?

Yes. If prompt logs can be tied to identifiable employees, GDPR clearly applies, and systematic monitoring can trigger heightened duties such as a DPIA. If AI tooling is used to monitor, evaluate, or influence decisions about workers, AI Act issues become more relevant as well.

What is the safest implementation path?

Start with metadata-only collection, aggressive redaction, short retention, role-based access, a documented escalation path, and a clear separation between technical observability and HR decision-making. Treat content capture as an exception-based capability, not a default.

What about employees who misuse the tool for personal work?

That is primarily a policy and governance issue, not a justification for universal content surveillance. Mature responses include acceptable use policies, training, anomaly detection, rate limits, DLP, and targeted investigation on cause.

Can HTTPS interception solve this more quietly at the network level?

In some environments, HTTPS interception can expose traffic to many web services on managed devices, but it is a blunt instrument, legally sensitive, and often technically limited by certificate pinning or app behavior. It is generally easier to justify for security filtering than for broad employee productivity surveillance.

What should a transparent internal communication say?

It should state what is collected, what is not collected, where it is stored, who can access it, how long it is kept, what legal basis is relied on, whether works council consultation occurred, whether content is used in HR decisions, and what alternatives exist for higher-sensitivity work.

Where would AI help your team?

Tell us about your team and the work you want to change. We'll help you pick the right next step.