Skip to content

Commit 40b9842

Browse files
committed
add example inline to auto intr
1 parent a72b982 commit 40b9842

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

content/en/llm_observability/instrumentation/auto_instrumentation.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,12 @@ The LangChain integration instruments the following methods:
108108

109109
**Note**: For best results, assign templates to variables with meaningful names, as auto-instrumentation uses these names to identify prompts.
110110

111+
```python
112+
# "translation_template" will be used to identify the template in Datadog
113+
translation_template = PromptTemplate.from_template("Translate {text} to {language}")
114+
chain = translation_template | llm
115+
```
116+
111117
## Amazon Bedrock
112118

113119
The Amazon Bedrock integration provides automatic tracing for the Amazon Bedrock Runtime Python SDK's chat model calls (using [Boto3][5]/[Botocore][6]).

0 commit comments

Comments
 (0)