-
Notifications
You must be signed in to change notification settings - Fork 804
Open
Description
Which component is this bug for?
Langchain Instrumentation
📜 Description
When using the default pyproject.toml generated by
langchain app new ...
Langchain instrumentation does not occur.
👟 Reproduction steps
'''
langchain app new chat
'''
Results in the following pyproject.toml
[tool.poetry]
name = "chat"
version = "0.1.0"
description = ""
authors = ["Your Name <you@example.com>"]
readme = "README.md"
packages = [
{ include = "app" },
]
[tool.poetry.dependencies]
python = "^3.11"
uvicorn = "^0.23.2"
langserve = {extras = ["server"], version = ">=0.0.30"}
pydantic = "<2"
[tool.poetry.group.dev.dependencies]
langchain-cli = ">=0.0.15"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
👍 Expected behavior
The docs should describe what else needs to be added to show full instrumentation for a langchain example.
👎 Actual Behavior with Screenshots
This results in only the LLM being traced.
🤖 Python Version
3.11
📃 Provide any additional context for the Bug.
It looks like the following modules need to be added to get the following trace.
langchain
opentelemetry-instrumentation-fastapi
In the langchain example described here - #1043 langchain is explicitly added, and opentelemetry-instrumentation-fastapi is pulled in by chromadb.
👀 Have you spent some time to check if this bug has been raised before?
- I checked and didn't find similar issue
Are you willing to submit PR?
None
Metadata
Metadata
Assignees
Labels
No labels