Skip to content

fix(llmobs): change default model_provider and model_name to unknown for google integrations#17546

Open
XG-xin wants to merge 6 commits intomainfrom
xinyuan/unknown-provider-google-genai
Open

fix(llmobs): change default model_provider and model_name to unknown for google integrations#17546
XG-xin wants to merge 6 commits intomainfrom
xinyuan/unknown-provider-google-genai

Conversation

@XG-xin
Copy link
Copy Markdown
Contributor

@XG-xin XG-xin commented Apr 15, 2026

Description

When the provider and model names are empty or cannot be extracted, change the default "model_provider" and "model_name" from "custom" to "unknown" for Google integrations (GenAI, vertexai, google adk)

This is to ensure the behavior is consistent amount other interrogations (previous change to openai/anthropic/litellm).

MLOB-6716

Testing

Manually testing locally with these case:

  • Set model name to a dummy model "some-unknown-model" -> model_provider:unknown, model_name: some-unknown-model
image
  • Set model name to empty string -> both model_provider and model_name are unknown
image

Risks

Additional Notes

@datadog-prod-us1-4

This comment has been minimized.

@cit-pr-commenter-54b7da
Copy link
Copy Markdown

cit-pr-commenter-54b7da bot commented Apr 15, 2026

Codeowners resolved as

releasenotes/notes/unknown-provider-google-genai-3a2f335265d6278a.yaml  @DataDog/apm-python

@XG-xin XG-xin marked this pull request as ready for review April 15, 2026 19:11
@XG-xin XG-xin requested review from a team as code owners April 15, 2026 19:11
Copy link
Copy Markdown
Collaborator

@emmettbutler emmettbutler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

release note seems fine

Comment thread ddtrace/llmobs/_integrations/google_utils.py Outdated
Comment thread releasenotes/notes/unknown-provider-google-genai-3a2f335265d6278a.yaml Outdated
XG-xin and others added 2 commits April 15, 2026 17:08
Co-authored-by: Yun Kim <35776586+Yun-Kim@users.noreply.github.com>
@XG-xin XG-xin requested a review from Yun-Kim April 16, 2026 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants