Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · claude-docs

Configure a custom OpenTelemetry collector changedoffice-agents/opentelemetry

Nearest release: v2.1.336, published 2 hours after upstream edited the page. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

Upstream edited this page at 3 Dec 2026 15:57 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 3 Dec 2026 16:07 UTC.

Upstream edited
Recorded here
Lines+43added
Lines−2removed
From line 152 where the diff opens
First seen 25 Aug 2026 this site's first read of the page
Recorded edits11to this page, all time

### Address format

The whole hunk

from line 152, old and new numbered
/
lines
from line 152
152152| `error_code` | Error code from Office or from the failed request, when there is one |
153153| `http_status` | Status of a failed HTTP request, when there is one |
154154| `stack_frames` | Up to three stack frames, each a function name, a script file or URL, and a line number, without the error message. By default the add-in cuts each URL down to its scheme, host, port, and path |
155| `reason`, `outcome`, `kind`, `attempts`, `count`, `cap` | Values that add detail to some messages, usually a fixed code or a count. A few hold a short phrase from the add-in's code. The `reason` of a skill that failed to load holds that error's text, and the `reason` of a settings document the add-in could not read can quote a value from that document |
155| `reason`, `outcome`, `kind`, `attempts`, `count`, `cap` | Values that add detail to some messages, usually a fixed code or a count. A few hold a short phrase from the add-in's code. The `reason` of a settings document the add-in could not read can quote a value from that document |
156156| `session_id` | Same value as `session.id` on spans |
157157| `surface`, `vendor` | Same values as `agent.surface` and `agent.vendor` on spans |
158158| `office.platform`, `office.host_detail` | The Office platform and, in Outlook, the Outlook client, when the add-in recorded them |
from line 185
185185call to your backend, so no credential needs to appear in export headers
186186that reach every signed-in user's browser.
187187 
188### Address format
189 
190Set `otlp_endpoint` to the collector's base URL: a full URL that starts
191with `https://` and does not end in `/v1/traces`. The add-in appends
192`/v1/traces` for spans and `/v1/logs` for log records.
193 
194Browsers block requests from the add-in to most `http://` addresses. Some
195browsers allow the user's own machine, such as `localhost`, and others do
196not.
197 
198The add-in refuses an address that has any of these faults:
199 
200* It is not a valid URL. A space in or just after the host name makes it
201 invalid.
202* It uses a scheme other than `https://` or `http://`. This happens when a host
203 name and port leave out `https://`: the browser reads the host name as the
204 scheme.
205* It contains a user name or password. If your collector needs credentials,
206 send them in `otlp_headers`.
207* It leads to the add-in's own server. This happens when an address leaves out
208 `https://`, or has a stray space after `https:`.
209 
210Once the add-in has loaded a refused address, and until a corrected address
211takes effect:
212 
213* The add-in sends no traces or logs, to your collector or to Anthropic, and
214 does not send the headers you configured.
215* Metrics and usage events are not affected. They report that an address was
216 refused, without the address.
217* The task pane shows no message. The browser console of the task pane shows
218 one warning that starts with `[claude] Telemetry collector not used`.
219 
220When a corrected address takes effect depends on where you set it:
221 
222| Where the address is set | When the correction takes effect |
223| - | - |
224| Claude admin console | The next time the add-in loads |
225| Enterprise Admin Console | As [Change settings or turn off sign-in](https://claude.com/docs/office-agents/admin-console.md#change-settings-or-turn-off-sign-in) describes |
226| Bootstrap endpoint response | When the add-in next loads, or at its next scheduled call to the endpoint, before the response expires |
227| Manifest URL or Entra ID claim | For users who are already connected, after they log out and sign in again. Logging out deletes their saved Outlook conversations and writing style |
228 
188229## Set up the collector
189230 
190231Configuration differs by how your users sign in.
from line 250
209250 
210251| Key | Format | Description |
211252| - | - | - |
212| `otlp_endpoint` | HTTPS URL | Collector base URL. Trailing slashes are stripped |
253| `otlp_endpoint` | HTTPS URL | Collector base URL. One trailing slash is stripped |
213254| `otlp_headers` | `key1=value1,key2=value2` | Optional authentication headers |
214255| `otlp_resource_attributes` | `key1=value1,key2=value2` | Optional attributes added to the resource of every span and log record. See [Label spans with resource attributes](#label-spans-with-resource-attributes) |
215256 
Feedback