From 4f010b59da1890c041da3ec7742edce39bb9ee5d Mon Sep 17 00:00:00 2001 From: Hannah Stepanek Date: Fri, 20 Sep 2024 16:30:00 -0700 Subject: [PATCH 1/7] Add python agent release notes for 10.0 --- .../python-agent-100000.mdx | 76 +++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 src/content/docs/release-notes/agent-release-notes/python-release-notes/python-agent-100000.mdx diff --git a/src/content/docs/release-notes/agent-release-notes/python-release-notes/python-agent-100000.mdx b/src/content/docs/release-notes/agent-release-notes/python-release-notes/python-agent-100000.mdx new file mode 100644 index 00000000000..d462c43c216 --- /dev/null +++ b/src/content/docs/release-notes/agent-release-notes/python-release-notes/python-agent-100000.mdx @@ -0,0 +1,76 @@ +--- +subject: 'Python agent' +releaseDate: '2024-08-08' +version: 10.0.0 +downloadLink: 'https://pypi.python.org/pypi/newrelic' +features: ['Remove Python2.7 support', 'Add Kafka server metric', 'Add capturing of memcache host and port', 'Add support for kafka-python-ng', 'Add support for uvicorn_workers', 'Automatically detect function signature in LangChasimilarity search', 'Add environment variable for GC runtime metrics'] +bugs: ['Fix bug in graphql entity name detection', 'Fix issue in LangChain where a thread is started and the transaction context is lost', 'Fix parsing of request and response when running OpenAI via LangChain', 'Instrument new path to OpenAI chat class', 'Fix pyscopg v3 API incompatibilities'] +security: [] +--- + +## Notes + +This release of the Python agent drops support for Python2.7, adds a Kafka server metric, capturing of memcache host and port, support for [kafka-python-ng](https://pypi.org/project/kafka-python-ng/), support for [uvicorn_worker](https://pypi.org/project/uvicorn-worker/), an environment variable for GC runtime metrics, and automatically detects the function signature in [LangChain](https://pypi.org/project/langchain/) `similarity_search`. It also fixes a bug in [graphql](https://pypi.org/project/graphql/) entity name detection, an issue in [LangChain](https://pypi.org/project/langchain/) where a thread is started and the transaction context is lost, parsing of the request and response when running [OpenAI](https://pypi.org/project/openai/) via [LangChain](https://pypi.org/project/langchain/), [pyscopg](https://pypi.org/project/psycopg/) v3 API incompatibilities, and instruments a new path to the [OpenAI](https://pypi.org/project/openai/) chat class. + +Install the agent using `easy_install/pip/distribute` via the [Python Package Index](https://pypi.python.org/pypi/newrelic) or download it directly from the [New Relic download site](https://download.newrelic.com/python_agent/release). + +## New features + +* Add Kafka server metric + + * Adds a metric to capture the host and port information for Kafka entities on both consumers and producers. This metric allows the UI to link AWS information with AWS MSK entities in the service map. + +* Add capturing of memcache host and port + + * Adds capturing of host and port info on memcache libraries; bmemcached, aiomcache, and pymemcache. This allows the UI to link AWS information with AWS memcache entities in the service map. + +* Add support for [kafka-python-ng](https://pypi.org/project/kafka-python-ng/) + + * [kafka-python](https://pypi.org/project/kafka-python/) has been released under a new name: [kafka-python-ng](https://pypi.org/project/kafka-python-ng/). This continues to support kafka-python under the new package name. + +* Add support for [uvicorn_worker](https://pypi.org/project/uvicorn-worker/) + + * `uvicorn.workers` has been moved to a separate package called `uvicorn_worker`. This checks for both names of the module when reporting dispatcher information. + +* Automatically detect function signature in [LangChain](https://pypi.org/project/langchain/) `similarity_search` + + * Automatically detect the function signature when wrapping `similarity_search`. + +* Add environment variable for GC runtime metrics + + * GC runtime metircs can now be enabled/disabled via the following environment variable: NEW_RELIC_GC_RUNTIME_METRICS_ENABLED. + +## Deprecations + +* Remove Python2.7 Support + + * Removes compatibility with Python2.7. Also removes instrumentations that were only supported on Python2.7. + +## Bug fixes + +* Fix bug in graphql entity name detection + + * Previously, the graphql channel entity name would be missing the first couple characters. This bug has been fixed. + +* Fix issue in [LangChain](https://pypi.org/project/langchain/) where a thread is started and the transaction context is lost + + * Previously, when calling some chains like retreival chains, the transaction would be lost and instrumentation would be broken because a thread would be started by [LangChain](https://pypi.org/project/langchain/). This has been fixed so the transaction context is passed across threads and instrumentation still works for retreival chains. + +* Fix parsing of request and response when running [OpenAI](https://pypi.org/project/openai/) via [LangChain](https://pypi.org/project/langchain/) + + * Previously, when running [OpenAI](https://pypi.org/project/openai/) via [LangChain](https://pypi.org/project/langchain/) the request and response were a different format and were not being recorded. This issue has been fixed. + +* Instrument new path to [OpenAI](https://pypi.org/project/openai/) chat class + + * [OpenAI](https://pypi.org/project/openai/) moved the ChatCompletions class to a different path which prevented the instrumentation from being applied. This has been fixed. + +* Fix [pyscopg](https://pypi.org/project/psycopg/) v3 API incompatibilities + + * Expand DBAPI2 wrappers to allow arbitrary `kwargs` on `executemany()`. Upgrade [psycopg](https://pypi.org/project/psycopg/) v3 instrumentation to allow arbitrary `kwargs` on `executemany()`. Rename existing psycopg v3 wrapper arguments to match the upstream library's names for compatibility. + + +## Support statement + +We recommend updating to the latest agent version as soon as it's available. If you can't upgrade to the latest version, update your agents to a version no more than 90 days old. Read [more](/docs/new-relic-solutions/new-relic-one/install-configure/update-new-relic-agent/) about keeping agents up to date. + +See the New Relic Python agent [EOL policy](/docs/apm/agents/python-agent/getting-started/python-agent-eol-policy/) for information about agent releases and support dates. From 17a5131602197d314e2ea652d303e534aea61aae Mon Sep 17 00:00:00 2001 From: Hannah Stepanek Date: Tue, 24 Sep 2024 16:24:07 -0700 Subject: [PATCH 2/7] Update Python2.7 references in docs --- ...ompatibility-requirements-python-agent.mdx | 19 +------------------ ...-python-agent-gae-flexible-environment.mdx | 4 ++-- .../initialize-python-agent-api.mdx | 2 +- 3 files changed, 4 insertions(+), 21 deletions(-) diff --git a/src/content/docs/apm/agents/python-agent/getting-started/compatibility-requirements-python-agent.mdx b/src/content/docs/apm/agents/python-agent/getting-started/compatibility-requirements-python-agent.mdx index 116382a8466..258c9d7db7c 100644 --- a/src/content/docs/apm/agents/python-agent/getting-started/compatibility-requirements-python-agent.mdx +++ b/src/content/docs/apm/agents/python-agent/getting-started/compatibility-requirements-python-agent.mdx @@ -59,7 +59,7 @@ If you don't have one already, [create a New Relic account](https://newrelic.com * Python version 3.4 is supported only by Python agent versions 4.20.0.120 or lower. * Python version 3.5 is supported only by Python agent versions 5.24.0.153 or lower. * Python version 3.6 is supported only by Python agent versions 7.16.0.178 or lower. - * For Python version 2.7 follow our [end of life (EOL) support](#python-version) requirements. + * Python version 2.7 is supported only by Python agent versions 9.13.0 or lower. @@ -216,26 +216,9 @@ The following are proposed time ranges. The actual release date may vary. - - - 2.7 - - - - January 1, 2020 - - - - April 1, 2024 (see note below) - - - - Python 2.7 is no longer officially supported in subsequent framework work or maintenance, but the date that Python 2.7 will be removed from the agent is TBD. - - ## Connect the agent to other capabilities [#digital-intelligence-platform] The Python agent integrates with other capabilities to give you end-to-end visibility: diff --git a/src/content/docs/apm/agents/python-agent/hosting-services/install-python-agent-gae-flexible-environment.mdx b/src/content/docs/apm/agents/python-agent/hosting-services/install-python-agent-gae-flexible-environment.mdx index 3e5da993f00..c94f6f1d162 100644 --- a/src/content/docs/apm/agents/python-agent/hosting-services/install-python-agent-gae-flexible-environment.mdx +++ b/src/content/docs/apm/agents/python-agent/hosting-services/install-python-agent-gae-flexible-environment.mdx @@ -81,8 +81,8 @@ For more information about deploying and configuring your Node.js app in the GAE # Install the fortunes binary from the debian repositories. RUN apt-get update && apt-get install -y fortunes - # Optional: Change the -p argument to use Python 2.7. - RUN virtualenv /env -p python3.5 + # Optional: Change the -p argument to use a particular version of Python. + RUN virtualenv /env -p python3.9 # Set virtualenv environment variables. This is equivalent to running # source /env/bin/activate. diff --git a/src/content/docs/apm/agents/python-agent/python-agent-api/initialize-python-agent-api.mdx b/src/content/docs/apm/agents/python-agent/python-agent-api/initialize-python-agent-api.mdx index 5f130c9d5e9..1e947c30af5 100644 --- a/src/content/docs/apm/agents/python-agent/python-agent-api/initialize-python-agent-api.mdx +++ b/src/content/docs/apm/agents/python-agent/python-agent-api/initialize-python-agent-api.mdx @@ -101,7 +101,7 @@ If you call `initialize` with no arguments, you must have already specified your - Optional. Sets the logging level. The agent uses [Python's logging module](https://docs.python.org/2.7/library/logging.html#logging-levels). Options are the same as for the [`log_level`](/docs/agents/python-agent/installation-configuration/python-agent-configuration#log_level) option in config file. + Optional. Sets the logging level. The agent uses [Python's logging module](https://docs.python.org/3.7/library/logging.html#logging-levels). Options are the same as for the [`log_level`](/docs/agents/python-agent/installation-configuration/python-agent-configuration#log_level) option in config file. From f3041b5857f9b2d1e71d429aa2c254e24da581a8 Mon Sep 17 00:00:00 2001 From: Hannah Stepanek Date: Thu, 26 Sep 2024 14:25:36 -0700 Subject: [PATCH 3/7] Fixup: apply changes from codereview --- ...ompatibility-requirements-python-agent.mdx | 13 +++++ .../python-agent-100000.mdx | 56 +++++++++++++------ 2 files changed, 52 insertions(+), 17 deletions(-) diff --git a/src/content/docs/apm/agents/python-agent/getting-started/compatibility-requirements-python-agent.mdx b/src/content/docs/apm/agents/python-agent/getting-started/compatibility-requirements-python-agent.mdx index 258c9d7db7c..c5b6dd71500 100644 --- a/src/content/docs/apm/agents/python-agent/getting-started/compatibility-requirements-python-agent.mdx +++ b/src/content/docs/apm/agents/python-agent/getting-started/compatibility-requirements-python-agent.mdx @@ -216,6 +216,19 @@ The following are proposed time ranges. The actual release date may vary. + + + 3.7 + + + + June 27th, 2023 + + + + March 1st, 2025 + + diff --git a/src/content/docs/release-notes/agent-release-notes/python-release-notes/python-agent-100000.mdx b/src/content/docs/release-notes/agent-release-notes/python-release-notes/python-agent-100000.mdx index d462c43c216..6f119874dc1 100644 --- a/src/content/docs/release-notes/agent-release-notes/python-release-notes/python-agent-100000.mdx +++ b/src/content/docs/release-notes/agent-release-notes/python-release-notes/python-agent-100000.mdx @@ -1,28 +1,53 @@ --- subject: 'Python agent' -releaseDate: '2024-08-08' +releaseDate: '2024-09-26' version: 10.0.0 downloadLink: 'https://pypi.python.org/pypi/newrelic' -features: ['Remove Python2.7 support', 'Add Kafka server metric', 'Add capturing of memcache host and port', 'Add support for kafka-python-ng', 'Add support for uvicorn_workers', 'Automatically detect function signature in LangChasimilarity search', 'Add environment variable for GC runtime metrics'] -bugs: ['Fix bug in graphql entity name detection', 'Fix issue in LangChain where a thread is started and the transaction context is lost', 'Fix parsing of request and response when running OpenAI via LangChain', 'Instrument new path to OpenAI chat class', 'Fix pyscopg v3 API incompatibilities'] +features: ['Remove Python 2.7 support', 'Add Kafka server metric', 'Add capturing of memcache host and port', 'Add support for kafka-python-ng', 'Add support for uvicorn_workers', 'Automatically detect function signature in LangChasimilarity search', 'Add environment variable for GC runtime metrics'] +bugs: ['Fix bug in gRPC entity name detection', 'Fix issue in LangChain where a thread is started and the transaction context is lost', 'Fix parsing of request and response when running OpenAI via LangChain', 'Instrument new path to OpenAI chat class', 'Fix pyscopg v3 API incompatibilities', 'Remove versioned logic in loguru instrumentation'] security: [] --- ## Notes -This release of the Python agent drops support for Python2.7, adds a Kafka server metric, capturing of memcache host and port, support for [kafka-python-ng](https://pypi.org/project/kafka-python-ng/), support for [uvicorn_worker](https://pypi.org/project/uvicorn-worker/), an environment variable for GC runtime metrics, and automatically detects the function signature in [LangChain](https://pypi.org/project/langchain/) `similarity_search`. It also fixes a bug in [graphql](https://pypi.org/project/graphql/) entity name detection, an issue in [LangChain](https://pypi.org/project/langchain/) where a thread is started and the transaction context is lost, parsing of the request and response when running [OpenAI](https://pypi.org/project/openai/) via [LangChain](https://pypi.org/project/langchain/), [pyscopg](https://pypi.org/project/psycopg/) v3 API incompatibilities, and instruments a new path to the [OpenAI](https://pypi.org/project/openai/) chat class. +This release of the Python agent drops support for Python 2.7 and adds the following: + + * a Kafka server metric + * host and port attributes for memcache + * support for [kafka-python-ng](https://pypi.org/project/kafka-python-ng/) + * support for [uvicorn_worker](https://pypi.org/project/uvicorn-worker/) + * an environment variable for garbage collector (GC) runtime metrics + * automatic detection for the function signature in [LangChain](https://pypi.org/project/langchain/)'s similarity_search + * updated support for [OpenAI](https://pypi.org/project/openai/)'s chat class + * a fix for a bug in gRPC's entity name detection + * a fix for transaction context propagation loss in [LangChain](https://pypi.org/project/langchain/) in the case of a new thread + * parsing of the request and response when running [OpenAI](https://pypi.org/project/openai/) via [LangChain](https://pypi.org/project/langchain/) + * a fix for [pyscopg](https://pypi.org/project/psycopg/) v3 API incompatibilities + * a fix that removes versioned logic in [loguru](https://pypi.org/project/loguru/) instrumentation Install the agent using `easy_install/pip/distribute` via the [Python Package Index](https://pypi.python.org/pypi/newrelic) or download it directly from the [New Relic download site](https://download.newrelic.com/python_agent/release). +## Deprecations + +* Remove Python 2.7 Support + + * Removes compatibility with Python 2.7. Also removes support for the following libraries that were only supported on Python2.7: + * [umemcache](https://pypi.org/project/umemcache/) + * [oursql](https://pypi.org/project/oursql/) + * [pywapi](https://pypi.org/project/pywapi/) + * [Pylons](https://pypi.org/project/Pylons/) + * [web2py](https://pypi.org/project/web2py/) + * [weberror](https://pypi.org/project/WebError/) + ## New features * Add Kafka server metric * Adds a metric to capture the host and port information for Kafka entities on both consumers and producers. This metric allows the UI to link AWS information with AWS MSK entities in the service map. -* Add capturing of memcache host and port +* Add capturing of memcache `host` and `port` - * Adds capturing of host and port info on memcache libraries; bmemcached, aiomcache, and pymemcache. This allows the UI to link AWS information with AWS memcache entities in the service map. + * Adds capturing of `host` and `port` info on the following memcache libraries: [bmemcached](https://pypi.org/project/python-binary-memcached/), [aiomcache](https://pypi.org/project/aiomcache/), and [pymemcache](https://pypi.org/project/pymemcache/). This allows the UI to link AWS information with AWS memcache entities in the service map. * Add support for [kafka-python-ng](https://pypi.org/project/kafka-python-ng/) @@ -36,21 +61,15 @@ Install the agent using `easy_install/pip/distribute` via the [Python Package In * Automatically detect the function signature when wrapping `similarity_search`. -* Add environment variable for GC runtime metrics +* Add environment variable for garbage collector runtime metrics - * GC runtime metircs can now be enabled/disabled via the following environment variable: NEW_RELIC_GC_RUNTIME_METRICS_ENABLED. - -## Deprecations - -* Remove Python2.7 Support - - * Removes compatibility with Python2.7. Also removes instrumentations that were only supported on Python2.7. + * Garbage collector runtime metircs can now be enabled/disabled via the following environment variable: `NEW_RELIC_GC_RUNTIME_METRICS_ENABLED`. ## Bug fixes -* Fix bug in graphql entity name detection +* Fix bug in gRPC entity name detection - * Previously, the graphql channel entity name would be missing the first couple characters. This bug has been fixed. + * Previously, the gRPC channel entity name was missing the first character(s) in specific cases. This bug has been fixed. * Fix issue in [LangChain](https://pypi.org/project/langchain/) where a thread is started and the transaction context is lost @@ -62,12 +81,15 @@ Install the agent using `easy_install/pip/distribute` via the [Python Package In * Instrument new path to [OpenAI](https://pypi.org/project/openai/) chat class - * [OpenAI](https://pypi.org/project/openai/) moved the ChatCompletions class to a different path which prevented the instrumentation from being applied. This has been fixed. + * [OpenAI](https://pypi.org/project/openai/) moved the `ChatCompletions` class to a different path which prevented the instrumentation from being applied. This has been fixed. * Fix [pyscopg](https://pypi.org/project/psycopg/) v3 API incompatibilities * Expand DBAPI2 wrappers to allow arbitrary `kwargs` on `executemany()`. Upgrade [psycopg](https://pypi.org/project/psycopg/) v3 instrumentation to allow arbitrary `kwargs` on `executemany()`. Rename existing psycopg v3 wrapper arguments to match the upstream library's names for compatibility. +* Remove versioned logic in loguru instrumentation + + * Removed versioned logic in [loguru](https://pypi.org/project/loguru/) instrumentation to fix a bug that occurred when the version was undeterminable. ## Support statement From 2a39f318a7189924309bcb7566472871c9a5eed9 Mon Sep 17 00:00:00 2001 From: Hannah Stepanek Date: Thu, 26 Sep 2024 14:26:31 -0700 Subject: [PATCH 4/7] Remove th and st from dates --- .../compatibility-requirements-python-agent.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content/docs/apm/agents/python-agent/getting-started/compatibility-requirements-python-agent.mdx b/src/content/docs/apm/agents/python-agent/getting-started/compatibility-requirements-python-agent.mdx index c5b6dd71500..33814dae641 100644 --- a/src/content/docs/apm/agents/python-agent/getting-started/compatibility-requirements-python-agent.mdx +++ b/src/content/docs/apm/agents/python-agent/getting-started/compatibility-requirements-python-agent.mdx @@ -222,11 +222,11 @@ The following are proposed time ranges. The actual release date may vary. - June 27th, 2023 + June 27, 2023 - March 1st, 2025 + March 1, 2025 From b7af525d95690fd13098f12b4903294a730a6f9e Mon Sep 17 00:00:00 2001 From: Hannah Stepanek Date: Thu, 26 Sep 2024 14:37:29 -0700 Subject: [PATCH 5/7] Fixup: more review changes --- .../python-release-notes/python-agent-100000.mdx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/content/docs/release-notes/agent-release-notes/python-release-notes/python-agent-100000.mdx b/src/content/docs/release-notes/agent-release-notes/python-release-notes/python-agent-100000.mdx index 6f119874dc1..06854be0a9b 100644 --- a/src/content/docs/release-notes/agent-release-notes/python-release-notes/python-agent-100000.mdx +++ b/src/content/docs/release-notes/agent-release-notes/python-release-notes/python-agent-100000.mdx @@ -3,7 +3,7 @@ subject: 'Python agent' releaseDate: '2024-09-26' version: 10.0.0 downloadLink: 'https://pypi.python.org/pypi/newrelic' -features: ['Remove Python 2.7 support', 'Add Kafka server metric', 'Add capturing of memcache host and port', 'Add support for kafka-python-ng', 'Add support for uvicorn_workers', 'Automatically detect function signature in LangChasimilarity search', 'Add environment variable for GC runtime metrics'] +features: ['Remove Python 2.7 support', 'Add Kafka server metric', 'Add capturing of memcache host and port', 'Add support for kafka-python-ng', 'Add support for uvicorn_workers', 'Automatically detect function signature in LangChain similarity search', 'Add environment variable for GC runtime metrics'] bugs: ['Fix bug in gRPC entity name detection', 'Fix issue in LangChain where a thread is started and the transaction context is lost', 'Fix parsing of request and response when running OpenAI via LangChain', 'Instrument new path to OpenAI chat class', 'Fix pyscopg v3 API incompatibilities', 'Remove versioned logic in loguru instrumentation'] security: [] --- @@ -17,7 +17,7 @@ This release of the Python agent drops support for Python 2.7 and adds the follo * support for [kafka-python-ng](https://pypi.org/project/kafka-python-ng/) * support for [uvicorn_worker](https://pypi.org/project/uvicorn-worker/) * an environment variable for garbage collector (GC) runtime metrics - * automatic detection for the function signature in [LangChain](https://pypi.org/project/langchain/)'s similarity_search + * automatic detection for the function signature in [LangChain](https://pypi.org/project/langchain/)'s `similarity_search` * updated support for [OpenAI](https://pypi.org/project/openai/)'s chat class * a fix for a bug in gRPC's entity name detection * a fix for transaction context propagation loss in [LangChain](https://pypi.org/project/langchain/) in the case of a new thread @@ -31,7 +31,7 @@ Install the agent using `easy_install/pip/distribute` via the [Python Package In * Remove Python 2.7 Support - * Removes compatibility with Python 2.7. Also removes support for the following libraries that were only supported on Python2.7: + * Removes compatibility with Python 2.7. Also removes support for the following libraries that were only supported on Python 2.7: * [umemcache](https://pypi.org/project/umemcache/) * [oursql](https://pypi.org/project/oursql/) * [pywapi](https://pypi.org/project/pywapi/) @@ -63,7 +63,7 @@ Install the agent using `easy_install/pip/distribute` via the [Python Package In * Add environment variable for garbage collector runtime metrics - * Garbage collector runtime metircs can now be enabled/disabled via the following environment variable: `NEW_RELIC_GC_RUNTIME_METRICS_ENABLED`. + * Garbage collector runtime metrics can now be enabled/disabled via the following environment variable: `NEW_RELIC_GC_RUNTIME_METRICS_ENABLED`. ## Bug fixes @@ -73,7 +73,7 @@ Install the agent using `easy_install/pip/distribute` via the [Python Package In * Fix issue in [LangChain](https://pypi.org/project/langchain/) where a thread is started and the transaction context is lost - * Previously, when calling some chains like retreival chains, the transaction would be lost and instrumentation would be broken because a thread would be started by [LangChain](https://pypi.org/project/langchain/). This has been fixed so the transaction context is passed across threads and instrumentation still works for retreival chains. + * Previously, when LangChain called certain chains, such as retrieval chains, LangChain started a thread that caused the transaction to be lost, resulting in broken instrumentation. This has been fixed so the transaction context is passed across threads and instrumentation still works for retrieval chains. * Fix parsing of request and response when running [OpenAI](https://pypi.org/project/openai/) via [LangChain](https://pypi.org/project/langchain/) From 30928fac84993233ba857168a3273e422deeaf5b Mon Sep 17 00:00:00 2001 From: Hannah Stepanek Date: Thu, 26 Sep 2024 14:43:46 -0700 Subject: [PATCH 6/7] Fixup: code review feedback changes --- .../python-release-notes/python-agent-100000.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/release-notes/agent-release-notes/python-release-notes/python-agent-100000.mdx b/src/content/docs/release-notes/agent-release-notes/python-release-notes/python-agent-100000.mdx index 06854be0a9b..e22836f8a24 100644 --- a/src/content/docs/release-notes/agent-release-notes/python-release-notes/python-agent-100000.mdx +++ b/src/content/docs/release-notes/agent-release-notes/python-release-notes/python-agent-100000.mdx @@ -3,7 +3,7 @@ subject: 'Python agent' releaseDate: '2024-09-26' version: 10.0.0 downloadLink: 'https://pypi.python.org/pypi/newrelic' -features: ['Remove Python 2.7 support', 'Add Kafka server metric', 'Add capturing of memcache host and port', 'Add support for kafka-python-ng', 'Add support for uvicorn_workers', 'Automatically detect function signature in LangChain similarity search', 'Add environment variable for GC runtime metrics'] +features: ['Remove Python 2.7 support', 'Add Kafka server metric', 'Add capturing of memcache host and port', 'Add support for kafka-python-ng', 'Add support for uvicorn_workers', 'Automatically detect function signature in LangChain similarity search', 'Add environment variable for garbage collector runtime metrics'] bugs: ['Fix bug in gRPC entity name detection', 'Fix issue in LangChain where a thread is started and the transaction context is lost', 'Fix parsing of request and response when running OpenAI via LangChain', 'Instrument new path to OpenAI chat class', 'Fix pyscopg v3 API incompatibilities', 'Remove versioned logic in loguru instrumentation'] security: [] --- From 2862936a858d3f7eeab5b5f3dedc49d648b4e649 Mon Sep 17 00:00:00 2001 From: Hannah Stepanek Date: Thu, 26 Sep 2024 14:44:26 -0700 Subject: [PATCH 7/7] Fixup: code review feedback changes Co-authored-by: Uma Annamalai --- .../python-release-notes/python-agent-100000.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/release-notes/agent-release-notes/python-release-notes/python-agent-100000.mdx b/src/content/docs/release-notes/agent-release-notes/python-release-notes/python-agent-100000.mdx index e22836f8a24..3bb6a17ad76 100644 --- a/src/content/docs/release-notes/agent-release-notes/python-release-notes/python-agent-100000.mdx +++ b/src/content/docs/release-notes/agent-release-notes/python-release-notes/python-agent-100000.mdx @@ -79,7 +79,7 @@ Install the agent using `easy_install/pip/distribute` via the [Python Package In * Previously, when running [OpenAI](https://pypi.org/project/openai/) via [LangChain](https://pypi.org/project/langchain/) the request and response were a different format and were not being recorded. This issue has been fixed. -* Instrument new path to [OpenAI](https://pypi.org/project/openai/) chat class +* Instrument new path to [OpenAI](https://pypi.org/project/openai/) chat completions class * [OpenAI](https://pypi.org/project/openai/) moved the `ChatCompletions` class to a different path which prevented the instrumentation from being applied. This has been fixed.