LangChain インテグレーションのメトリクス

LangChain の監視に使う Datadog の公式インテグレーションです。収集するメトリクスは 6 件あります。

公式の紹介文 (英語)

Optimize LangChain usage: prompt sampling and performance and cost metrics.

種別の内訳

  • gauge (その時点の値): 4 件
  • count (集計間隔内の発生回数): 2 件

メトリクスの一覧

説明は公式の定義の英文をそのまま載せています。

メトリクス種別単位
langchain.request.durationRequest duration distribution.gaugenanosecond
langchain.request.errorNumber of errors.counterror
langchain.tokens.completionNumber of tokens used in the completion of a response.gaugetoken/request
langchain.tokens.promptNumber of tokens used in the prompt of a request.gaugetoken/request
langchain.tokens.totalTotal number of tokens used in a request and response.gaugetoken/request
langchain.tokens.total_costEstimated cost in USD based on token usage.countdollar

公式ドキュメント

LangChain インテグレーションの公式ドキュメント

メトリクスの名前と説明は Datadog の公式インテグレーションの定義 (Copyright Datadog, Inc.・BSD-3-Clause) を英文のまま載せています。利用条件の全文は サイトについてにあります。