text: \              -v /sys/fs/cgroup/:/host/sys/fs/cgroup:ro \              -e DD_API_KEY=<DATADOG_API_KEY> \              -p 127.0.0.1:8126:8126/tcp \              -p 127.0.0.1:8125:8125/udp \              -e DD_DOGSTATSD_NON_LOCAL_TRAFFIC=true \              -e DD_APM_ENABLED=true \              gcr.io/datadoghq/agent:latestInstall the Datadog APM Python library.pip install ddtrace>=1.17The LangChain integration can be enabled automatically when you prefix your LangChain Python application command with ddtrace-run:DD_SERVICE="my-service" DD_ENV="staging" DD_API_KEY=<DATADOG_API_KEY> ddtrace-run python <your-app>.pyNote: If the Agent is using a non-default hostname or port, be sure to also set DD_AGENT_HOST, DD_TRACE_AGENT_PORT, or DD_DOGSTATSD_PORT.Additionally, the LangChain integration can be enabled programmatically by adding patch_all() or patch(langchain=True) before the first import of langchain in your application.Note that using ddtrace-run or patch_all() will also enable the requests and aiohttp integrations which trace HTTP requests to LLM providers, as well as the openai integration which traces requests to the OpenAI library.from ddtrace import config, patch# Note: be sure to configure the integration before calling ``patch()``!#