Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 180a8ab

Browse files
authored
Updating tracing doc for new spans (#272)
2 parents ea63a99 + 1b12fce commit 180a8ab

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

docs/tracing.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ By default, the SDK traces the following:
3535
- Function tool calls are each wrapped in `function_span()`
3636
- Guardrails are wrapped in `guardrail_span()`
3737
- Handoffs are wrapped in `handoff_span()`
38+
- Audio inputs (speech-to-text) are wrapped in a `transcription_span()`
39+
- Audio outputs (text-to-speech) are wrapped in a `speech_span()`
40+
- Related audio spans may be parented under a `speech_group_span()`
3841

3942
By default, the trace is named "Agent trace". You can set this name if you use `trace`, or you can can configure the name and other properties with the [`RunConfig`][agents.run.RunConfig].
4043

@@ -76,7 +79,11 @@ Spans are automatically part of the current trace, and are nested under the near
7679

7780
## Sensitive data
7881

79-
Some spans track potentially sensitive data. For example, the `generation_span()` stores the inputs/outputs of the LLM generation, and `function_span()` stores the inputs/outputs of function calls. These may contain sensitive data, so you can disable capturing that data via [`RunConfig.trace_include_sensitive_data`][agents.run.RunConfig.trace_include_sensitive_data].
82+
Certain spans may capture potentially sensitive data.
83+
84+
The `generation_span()` stores the inputs/outputs of the LLM generation, and `function_span()` stores the inputs/outputs of function calls. These may contain sensitive data, so you can disable capturing that data via [`RunConfig.trace_include_sensitive_data`][agents.run.RunConfig.trace_include_sensitive_data].
85+
86+
Similarly, Audio spans include base64-encoded PCM data for input and output audio by default. You can disable capturing this audio data by configuring [`VoicePipelineConfig.trace_include_sensitive_audio_data`][agents.voice.pipeline_config.VoicePipelineConfig.trace_include_sensitive_audio_data].
8087

8188
## Custom tracing processors
8289

0 commit comments

Comments
 (0)