Skip to content

🐛 Bug Report: Requirements for Langchain example #1096

@damianoneill

Description

@damianoneill

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.

image

🤖 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

image

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions