We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44fd627 commit f4c60b0Copy full SHA for f4c60b0
packages/core/src/tracing/vercel-ai/index.ts
@@ -470,7 +470,9 @@ function addProviderMetadataToAttributes(attributes: SpanAttributes): void {
470
'gen_ai.usage.output_tokens.prediction_rejected',
471
openaiMetadata.rejectedPredictionTokens,
472
);
473
- setAttributeIfDefined(attributes, 'gen_ai.conversation.id', openaiMetadata.responseId);
+ if (!attributes['gen_ai.conversation.id']) {
474
+ setAttributeIfDefined(attributes, 'gen_ai.conversation.id', openaiMetadata.responseId);
475
+ }
476
}
477
478
if (providerMetadataObject.anthropic) {
0 commit comments