add label to tts stt spans (#909)

Co-authored-by: Markus Frindt <m.frindt@cognigy.com>
This commit is contained in:
Markus Frindt
2024-09-25 22:44:15 +02:00
committed by GitHub
parent 724d4fb713
commit 402adc2098
4 changed files with 14 additions and 8 deletions

View File

@@ -128,7 +128,8 @@ class TtsTask extends Task {
const {span} = this.startChildSpan('tts-generation', {
'tts.vendor': vendor,
'tts.language': language,
'tts.voice': voice
'tts.voice': voice,
'tts.label': label || 'None',
});
this.otelSpan = span;
}