Skip to content

Commit cb198ea

Browse files
authored
add in google genai auto-instrumentation support docs (#33436)
1 parent b6fde14 commit cb198ea

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

content/en/llm_observability/instrumentation/auto_instrumentation.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ Datadog's LLM Observability can automatically trace and annotate calls to suppor
5555
| [OpenAI](#openai), [Azure OpenAI](#openai) | >= 3.0.0 | >= 4.49.0, >= 5.25.0 (CJS), >= 5.38.0 (ESM) |
5656
| [Vercel AI SDK](#vercel-ai-sdk) | >=4.0.0 | >= 5.63.0 (CJS), >=5.63.0 (ESM) |
5757
| [VertexAI](#vertex-ai) | >= 1.0.0 | >= 5.44.0 (CJS), >=5.44.0 (ESM) |
58+
| [Google GenAI](#google-genai) | >= 1.19.0 | >= 5.81.0 (CJS), >=5.81.0 (ESM) |
5859

5960
{{% collapse-content title="Support for ESMAScript Modules (ESM)" level="h4" expanded=false id="esm-support" %}}
6061
Automatic instrumentation for ESM projects is supported starting from `dd-trace@>=5.38.0`. To enable automatic instrumentation in your ESM projects, run your application with the following Node option:
@@ -360,6 +361,25 @@ The Google GenAI integration instruments the following methods:
360361
[2]: https://ai.google.dev/api/generate-content#method:-models.generatecontent
361362
[3]: https://ai.google.dev/api/embeddings#method:-models.embedcontent
362363
{{% /tab %}}
364+
{{% tab "Node.js" %}}
365+
The Google GenAI integration automatically traces methods in the [Google GenAI Node.js SDK][1] by instrumenting the [`@google/genai` package][4].
366+
367+
**Note:** The [Google GenAI Node.js SDK][1] succeeds the [Google GenerativeAI SDK][6], and exposes both Gemini Developer API as well as Vertex.
368+
369+
### Traced methods
370+
371+
The Google GenAI integration instruments the following methods:
372+
373+
- [Generating content][2] (including [streamed calls][5])
374+
- [Embedding content][3]
375+
376+
[1]: https://ai.google.dev/gemini-api/docs#javascript
377+
[2]: https://ai.google.dev/api/generate-content#text_gen_text_only_prompt-JAVASCRIPT
378+
[3]: https://ai.google.dev/api/embeddings#embed_content-JAVASCRIPT
379+
[4]: https://www.npmjs.com/package/@google/genai
380+
[5]: https://ai.google.dev/api/generate-content#text_gen_text_only_prompt_streaming-JAVASCRIPT
381+
[6]: https://www.npmjs.com/package/@google/generative-ai
382+
{{% /tab %}}
363383
{{< /tabs >}}
364384
{{% /collapse-content %}}
365385

0 commit comments

Comments
 (0)