Commit 8d2d890
docs: document custom SpanProcessor filtering in A365 migration guide (#96)
* docs: document custom SpanProcessor filtering in A365 migration guide
Add section showing how to use span_processors parameter to filter
console/exporter output to only A365 observability scopes (invoke_agent,
chat, execute_tool, output_messages). Addresses #86.
* fix: use on_end filtering with wrapped processor per review feedback
- Move span filtering from on_start to on_end where gen_ai.operation.name is finalized
- Replace private span._context mutation with a wrapper SpanProcessor pattern
- Set enable_console=False and manage ConsoleSpanExporter internally
* Update span processor
* Fix imports
* Update
* enable console exporter
* Update api
---------
Co-authored-by: Radhika Gupta <guptaradhika@microsoft.com>1 parent 5a6cf33 commit 8d2d890
1 file changed
Lines changed: 61 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
353 | 414 | | |
354 | 415 | | |
355 | 416 | | |
| |||
0 commit comments