newrelic 12.19.0 → 12.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NEWS.md +40 -0
- package/THIRD_PARTY_NOTICES.md +637 -7
- package/lib/collector/facts.js +1 -1
- package/lib/config/default.js +57 -1
- package/lib/config/index.js +13 -4
- package/lib/feature_flags.js +10 -10
- package/lib/instrumentation/@google/genai.js +289 -0
- package/lib/instrumentation/openai.js +27 -25
- package/lib/instrumentations.js +1 -0
- package/lib/llm-events/error-message.js +17 -2
- package/lib/llm-events/google-genai/chat-completion-message.js +46 -0
- package/lib/llm-events/google-genai/chat-completion-summary.js +24 -0
- package/lib/llm-events/google-genai/embedding.js +25 -0
- package/lib/llm-events/google-genai/event.js +29 -0
- package/lib/llm-events/google-genai/index.js +18 -0
- package/lib/metrics/names.js +6 -0
- package/lib/otel/attr-reconciler.js +7 -9
- package/lib/otel/bootstrap-metrics.js +58 -0
- package/lib/otel/context.js +1 -1
- package/lib/otel/exception-mapping.js +25 -0
- package/lib/otel/fake-span.js +1 -1
- package/lib/otel/rules.js +55 -26
- package/lib/otel/segment-synthesis.js +6 -6
- package/lib/otel/segments/consumer.js +7 -20
- package/lib/otel/segments/database.js +40 -75
- package/lib/otel/segments/http-external.js +25 -25
- package/lib/otel/segments/internal.js +2 -2
- package/lib/otel/segments/producer.js +5 -15
- package/lib/otel/segments/server.js +6 -49
- package/lib/otel/setup.js +26 -6
- package/lib/otel/span-processor.js +144 -116
- package/lib/otel/transformation-rules.json +1228 -0
- package/lib/otel/utils.js +162 -0
- package/lib/serverless/aws-lambda.js +15 -2
- package/lib/shim/datastore-shim.js +1 -1
- package/lib/transaction/tracer/index.js +1 -1
- package/lib/utilization/common.js +11 -4
- package/lib/utilization/gcp-info.js +13 -9
- package/package.json +4 -1
- package/lib/otel/attr-mapping/db.js +0 -83
- package/lib/otel/attr-mapping/exceptions.js +0 -23
- package/lib/otel/attr-mapping/faas.js +0 -25
- package/lib/otel/attr-mapping/http.js +0 -193
- package/lib/otel/attr-mapping/messaging.js +0 -105
- package/lib/otel/attr-mapping/utils.js +0 -75
- package/lib/otel/rules.json +0 -500
package/NEWS.md
CHANGED
|
@@ -1,3 +1,43 @@
|
|
|
1
|
+
### v12.21.0 (2025-06-04)
|
|
2
|
+
|
|
3
|
+
#### Features
|
|
4
|
+
|
|
5
|
+
* Added `@google/genai` Gemini AI LLM instrumentation ([#3119](https://github.com/newrelic/node-newrelic/pull/3119)) ([7f28a29](https://github.com/newrelic/node-newrelic/commit/7f28a293fbd623464ed1f3f809de59eaea0ff367))
|
|
6
|
+
* Updated opentelemetry bridge to rely on configuration based transformation rules ([#3125](https://github.com/newrelic/node-newrelic/pull/3125)) ([ad116d2](https://github.com/newrelic/node-newrelic/commit/ad116d2aa49818c2824bca606a22c48abecf9580))
|
|
7
|
+
|
|
8
|
+
#### Bug fixes
|
|
9
|
+
|
|
10
|
+
* Refactored getHostnameSafe to accommodate GCP ([#3132](https://github.com/newrelic/node-newrelic/pull/3132)) ([f1eea8d](https://github.com/newrelic/node-newrelic/commit/f1eea8d076586cd0b6c4d671c261deefe5e0f027))
|
|
11
|
+
* Updated openai instrumentation to work with 5.0.0+ ([#3129](https://github.com/newrelic/node-newrelic/pull/3129)) ([09146a9](https://github.com/newrelic/node-newrelic/commit/09146a9d550c0cdbb23ec54325be6f8343db8b78))
|
|
12
|
+
* Updated rules to work with 1.17.0 and 1.24.0 for consumer and producer span kind ([#3128](https://github.com/newrelic/node-newrelic/pull/3128)) ([686c747](https://github.com/newrelic/node-newrelic/commit/686c747cedc2582061608c20402f11912092d5b5))
|
|
13
|
+
|
|
14
|
+
#### Documentation
|
|
15
|
+
|
|
16
|
+
* Updated compatibility report ([#3124](https://github.com/newrelic/node-newrelic/pull/3124)) ([c51d45f](https://github.com/newrelic/node-newrelic/commit/c51d45f4fc3c4fd56bdaa80c1028a83c7f4aadd2)) ([#3117](https://github.com/newrelic/node-newrelic/pull/3117)) ([084e599](https://github.com/newrelic/node-newrelic/commit/084e599428ac9c21e6991e27b5c154db2830ce17))
|
|
17
|
+
|
|
18
|
+
#### Miscellaneous chores
|
|
19
|
+
|
|
20
|
+
* Added preliminary otel configuration ([#3121](https://github.com/newrelic/node-newrelic/pull/3121)) ([664ee4a](https://github.com/newrelic/node-newrelic/commit/664ee4ae956d9cc6ebc6b68ad79a47948510422f))
|
|
21
|
+
|
|
22
|
+
### v12.20.0 (2025-05-27)
|
|
23
|
+
|
|
24
|
+
#### Features
|
|
25
|
+
|
|
26
|
+
* Added support for OTEL metrics API ([#3109](https://github.com/newrelic/node-newrelic/pull/3109)) ([4a57721](https://github.com/newrelic/node-newrelic/commit/4a5772142817afd7ffda0659bad5c9328263fbd0))
|
|
27
|
+
|
|
28
|
+
#### Bug fixes
|
|
29
|
+
|
|
30
|
+
* Fixed common.getKeys logic ([#3114](https://github.com/newrelic/node-newrelic/pull/3114)) ([01d4fa5](https://github.com/newrelic/node-newrelic/commit/01d4fa586e0bc9d9eefdbc416d94f8e4b2ad6504))
|
|
31
|
+
* Fixed Google Cloud Run hostname issue ([#3111](https://github.com/newrelic/node-newrelic/pull/3111)) ([e233fb7](https://github.com/newrelic/node-newrelic/commit/e233fb722760a7683a78145d2953d40b22a27f3a))
|
|
32
|
+
|
|
33
|
+
#### Documentation
|
|
34
|
+
|
|
35
|
+
* Updated compatibility report ([#3106](https://github.com/newrelic/node-newrelic/pull/3106)) ([3c47406](https://github.com/newrelic/node-newrelic/commit/3c47406257ee76d47a878bb71bce902e11211e3a))
|
|
36
|
+
|
|
37
|
+
#### Miscellaneous chores
|
|
38
|
+
|
|
39
|
+
* Added event source type to txn name for Lambda APM Mode ([#3110](https://github.com/newrelic/node-newrelic/pull/3110)) ([ddc2e2a](https://github.com/newrelic/node-newrelic/commit/ddc2e2ad962d72c0dd99f0c16436e7f64e23dce0))
|
|
40
|
+
|
|
1
41
|
### v12.19.0 (2025-05-20)
|
|
2
42
|
|
|
3
43
|
#### Features
|