1
00:00:01,161 --> 00:00:05,344
If you've ever had a telemetry pipeline go
quiet at three in the morning because a

2
00:00:05,404 --> 00:00:08,007
token expired, this release is for you.

3
00:00:08,707 --> 00:00:11,289
Thanks to Jellypod AI for sponsoring this
episode.

4
00:00:12,470 --> 00:00:18,655
Codex CLI 0.170.0 shipped on November
18th, and the change I want to focus on is

5
00:00:18,856 --> 00:00:23,579
automatically refreshed authentication
headers for OpenTelemetry HTTP exporters.

6
00:00:24,573 --> 00:00:26,675
Quick tie back to an earlier episode.

7
00:00:27,015 --> 00:00:33,039
We covered the OpenTelemetry headers
helper in Codex 0.167.2.

8
00:00:33,039 --> 00:00:34,680
This release is the follow through.

9
00:00:35,120 --> 00:00:41,304
Pull request 61018 extracts the HTTP
headers helper execution into a shared crate,

10
00:00:41,805 --> 00:00:47,869
and pull request 61028, from abhinav-oai,
uses it to add refreshable headers for

11
00:00:47,989 --> 00:00:50,150
OTLP HTTP exporters.

12
00:00:50,871 --> 00:00:52,832
So the helper isn't just a one off
anymore.

13
00:00:53,152 --> 00:00:53,973
It's shared plumbing.

14
00:00:54,633 --> 00:00:55,794
What changed, exactly.

15
00:00:57,355 --> 00:01:03,060
The codex-otel crate's settings struct,
OtelSettings, has a headers_helper field.

16
00:01:03,660 --> 00:01:07,603
When it's set, Codex runs that helper to
get fresh authentication headers for the

17
00:01:07,723 --> 00:01:13,187
OTLP HTTP exporter instead of relying on a
static header you wrote into config once.

18
00:01:14,008 --> 00:01:17,951
The release notes put it plainly:
automatically refreshed authentication headers for

19
00:01:18,051 --> 00:01:20,093
OpenTelemetry HTTP exporters.

20
00:01:20,798 --> 00:01:21,659
Why does that matter?

21
00:01:22,419 --> 00:01:24,247
Think about what collectors often want.

22
00:01:24,247 --> 00:01:28,864
Rotating bearer tokens, short lived
credentials, OAuth tokens.

23
00:01:29,604 --> 00:01:33,407
If your header is baked in at startup, it
works until the token expires,

24
00:01:33,767 --> 00:01:35,408
and then exports start failing.

25
00:01:37,170 --> 00:01:40,852
That's my interpretation of the failure
mode, not something the release notes spell

26
00:01:40,972 --> 00:01:44,735
out, but it's the obvious consequence for
a long running session,

27
00:01:45,155 --> 00:01:48,758
a background process, or a CI runner that
outlives its credential.

28
00:01:49,738 --> 00:01:50,839
Now, how do you use it.

29
00:01:51,279 --> 00:01:54,021
The exporter config itself looks like what
you already know.

30
00:01:54,581 --> 00:01:59,624
In your config file, under otel, you set
the exporter to otlp http,

31
00:02:00,184 --> 00:02:02,906
with an endpoint and a protocol, binary or
json.

32
00:02:03,626 --> 00:02:08,409
The README example for logs looks like
this: exporter equals otlp http,

33
00:02:09,150 --> 00:02:14,873
endpoint equals your collector's slash v1
slash logs URL, protocol equals json.

34
00:02:16,534 --> 00:02:20,997
What's new is that headers_helper sits
beside that, so the credentials come from the

35
00:02:21,057 --> 00:02:22,838
helper rather than a hard coded map.

36
00:02:24,459 --> 00:02:25,339
One honest gap.

37
00:02:25,620 --> 00:02:30,163
The sources I have show the headers_helper
field in the Rust settings,

38
00:02:30,543 --> 00:02:35,787
set to None in the README example, but I
don't have the exact config file key or

39
00:02:35,887 --> 00:02:37,308
helper contract spelled out.

40
00:02:38,149 --> 00:02:42,953
So before you wire this into production,
check the codex-otel README and the pull

41
00:02:42,993 --> 00:02:46,555
request 61028 for how the helper is
invoked.

42
00:02:47,816 --> 00:02:49,578
I'd rather say that than invent syntax.

43
00:02:50,450 --> 00:02:50,970
Caveats.

44
00:02:51,771 --> 00:02:56,513
First, the README is clear that delivery
uses the existing best effort OTLP

45
00:02:56,813 --> 00:02:59,654
exporter, with no exactly once guarantee.

46
00:03:00,315 --> 00:03:02,015
So don't treat this as an audit trail.

47
00:03:02,856 --> 00:03:06,257
Second, there are two opt in log settings
worth knowing about.

48
00:03:06,938 --> 00:03:13,521
otel dot log_agent_responses emits final
answers from main agents and spawned task

49
00:03:13,621 --> 00:03:13,961
agents.

50
00:03:14,681 --> 00:03:19,624
otel dot log_guardian_assessments emits
Guardian review results.

51
00:03:20,124 --> 00:03:21,184
Both default to false.

52
00:03:22,425 --> 00:03:28,728
Each export is capped at 65,536 UTF 8
bytes, and the README warns the content is

53
00:03:28,768 --> 00:03:32,690
potentially sensitive, including subagent
work that never appears in the main

54
00:03:32,770 --> 00:03:33,030
answer.

55
00:03:34,076 --> 00:03:35,718
So here's the practical point.

56
00:03:36,499 --> 00:03:40,564
Refreshing credentials makes it easier to
keep a pipe open for a long time.

57
00:03:41,265 --> 00:03:46,652
That's good, and it also means you should
decide deliberately what flows through it

58
00:03:46,892 --> 00:03:48,595
before you enable those two flags.

59
00:03:49,218 --> 00:03:53,081
A handful of smaller things in 0.170.0
worth a mention.

60
00:03:53,902 --> 00:04:00,067
The TUI gets WebRTC negotiation for
realtime voice calls, pull request 61172.

61
00:04:00,907 --> 00:04:05,271
There's experimental support for
identically named MCP servers across environments,

62
00:04:05,451 --> 00:04:07,212
so same names no longer collide.

63
00:04:08,854 --> 00:04:12,777
Oversized WebSocket requests now fall back
to HTTP right away,

64
00:04:12,977 --> 00:04:14,178
without pointless retries.

65
00:04:14,778 --> 00:04:19,542
On the reliability side, MCP OAuth got
fixes for credential races during

66
00:04:19,602 --> 00:04:22,004
cancellation, login, and logout.

67
00:04:22,625 --> 00:04:26,988
Windows got fixes for atomic file writes,
sandbox permission preservation,

68
00:04:27,088 --> 00:04:28,950
and runtime registration recovery.

69
00:04:29,750 --> 00:04:34,054
And one I like for security: permission
updates and child threads no longer lose

70
00:04:34,094 --> 00:04:35,815
existing sandbox restrictions.

71
00:04:36,896 --> 00:04:38,998
That's the kind of fix you want quietly
landing.

72
00:04:39,575 --> 00:04:44,661
To try it, run npm install dash g at
openai slash codex at

73
00:04:44,741 --> 00:04:47,284
0.170.0.

74
00:04:47,284 --> 00:04:50,187
If you export telemetry, read that otel
README first.

75
00:04:50,668 --> 00:04:52,850
And maybe check your token lifetimes while
you're at it.

76
00:04:53,571 --> 00:04:56,435
Thanks again to Jellypod AI for sponsoring
this episode.

