Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Strands AgentsのトレースをDatadogとLangfuseへ流すときに気をつけた...
Search
Mitsuhiro Komuro (nekorush14)
September 19, 2026
Technology
13
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Strands AgentsのトレースをDatadogとLangfuseへ流すときに気をつけたこと / Sending trace of Strands Agents to Datadog and Langfuse
隅田川.dev vol.7 LT会 で発表したスライドです。
イベントページ:
https://sumidagawa-dev.connpass.com/event/404393/
Mitsuhiro Komuro (nekorush14)
September 19, 2026
More Decks by Mitsuhiro Komuro (nekorush14)
See All by Mitsuhiro Komuro (nekorush14)
Strands AgentsからADKの実装を呼んでGoogle検索を実現した話 / Calling ADK for Google Search from Strands Agents
nekorush14
0
15
AI-DLCをチーム開発に適用しようとしている話 / Trying to apply AI-DLC to the team
nekorush14
0
930
AIが自律的に回る開発ループを設計してチーム開発に組み込む
nekorush14
0
440
Human-in-the-LoopなAIAgentを支えるガードレール設計 / Designing HITL AI Guardrails
nekorush14
0
170
Other Decks in Technology
See All in Technology
脆弱性診断って、何をしているの? 〜弱点を見つけて、会社の改善につなげるまで〜
keeg
0
830
会社説明資料
persolserverworks
0
9.7k
freeeらしさをAIとともに作る / Creating the freee Experience with AI
ymrl
0
220
AI時代だからこそ推したい!Gitコマンド再入門
munakata
0
170
OpenSharing について熱く語る〜AI アセットの共有について〜
kameitomohiro
0
250
今こそ知りたいAmplifyGen2
mkdev10
2
160
組み立てて楽しむ AWS Blocks 入門
kmiya84377
0
230
おそらく日本で唯一のDevRelインターン生として
husengs7
0
170
二歩目のフロントエンド・ウェブアクセシビリティ
camiha
2
330
AIに攻撃される前に、AIに攻撃させる
tsuchikazu
0
170
V8のArray.prototype.flatを最大約20倍速くするまでと、巨大OSSへの大規模コミットの道のり
riyaamemiya
0
180
AgentCoreで実践するハーネスエンジニアリング
yakumo
1
300
Featured
See All Featured
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
320
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.4k
The SEO identity crisis: Don't let AI make you average
varn
0
580
Side Projects
sachag
456
43k
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.5k
First, design no harm
axbom
PRO
2
1.3k
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
590
Tell your own story through comics
letsgokoyo
1
1.1k
AI Search: Where Are We & What Can We Do About It?
aleyda
0
8.1k
Navigating Weather and Climate Data
rabernat
0
550
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
56k
Transcript
隅田川.dev vol.7 LT会 Strands AgentsのトレースをDatadogと Langfuseへ流すときに気をつけたこと Sep.19 2026 - Mitsuhiro
Komuro (@nekorush14) 1 © 2026 Wantedly, Inc.
⾃⼰紹介 Mitsuhiro Komuro Wantedly, inc. / Visit AI Squad /
Backend Enginer Tech Research / Stargazing / Music / Game and more… / @nekorush14 details © 2026 Wantedly, Inc. 2
CONTENTS 01 Strands AgentsでDatadogとLangfuseにOTelを送りたい 02 TracerProviderとSpanProcessorで実現する 03 まとめ © 2026
Wantedly, Inc. 3
01 Strands AgentsでDatadogと LangfuseにOTelを送りたい © 2026 Wantedly, Inc. 4
Strands AgentsでOTel (OpenTelemetry)を送りたい 課題の背景 既存プロダクトでは 内製 Gem により OTel 送信が計装されていた
© 2026 Wantedly, Inc. Strands Agents を使⽤する 新たな実装でも開発⽤途で OTel 送信する必要がある Strands Agents の実装に 合わせて Datadog と Langfuse へ OTel を 送信する必要があった 5
02 TracerProviderとSpanProcessorで 実現する © 2026 Wantedly, Inc. 6
TracerProviderとSpanProcessorで実現する dd-trace をベースに Langfuse にも送るようにする Strands Agents SDK の setupTracer
は複数の Trace Provider を返却不可 Datadog 公式ライブラリ (dd-trace) が提供する TracerProvider を 直接初期化して実現 Span もDatadog / Langfuse 向けに SpanProcesseor を 実装して実現 (補⾜) 開発環境で送信し、本番では送信しないようにしている © 2026 Wantedly, Inc. 7
TracerProviderとSpanProcessorで実現する 実装例 import { tracer } from 'dd-trace'; tracer.init(); //
OTelのグローバルな TracerProviderとして登録する // これにより StrandsSDKがgetTraceした時に dd-trace経由で Datadogに送信される const provider = new tracer.TracerProvider(); provider.register(); // dd-traceの型定義に addSpanProcessorは存在しないのでキャストしてから使用する provider.addSpanProcessor( // Langfuse向けに実装した SpanProcessorを指定する ); © 2026 Wantedly, Inc. 8
TracerProviderとSpanProcessorで実現する 内製 Gem と Attribute を統⼀する Strands Agents は標準で OTel
出⼒に対応している カスタム Attribute を付与することが可能 import { Agent } from '@strands-agents/sdk'; const agent = new Agent({ name: 'global.anthropic.claude-sonnet-5', traceAttributes: { // 任意のカスタム Attributeを指定できる 'session.id': 'session-id-here', 'user.id': 'user-id-here', // gen_ai.* などは SDKが自動的に生成する } }); © 2026 Wantedly, Inc. 9
03 まとめ © 2026 Wantedly, Inc. 10
まとめ TracerProviderとSpanProcessorを使って⾃前の計装をする Strands Agents は標準で OpenTelemetry 出力を サポートしている © 2026
Wantedly, Inc. TracerProvider と SpanProcessor を 組み合わせて複数の プロバイダーに送信する カスタム Attribute を 指定して既存の計装と 整合性を取る 11