Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@opentelemetry/instrumentation-undici

Package Overview
Dependencies
Maintainers
3
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/instrumentation-undici - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

10

build/src/undici.js

@@ -179,7 +179,11 @@ "use strict";

const [k, v] = headerEntries[i];
if (typeof request.headers === 'string') {
if (typeof request.addHeader === 'function') {
request.addHeader(k, v);
}
else if (typeof request.headers === 'string') {
request.headers += `${k}: ${v}\r\n`;
}
else {
request.addHeader(k, v);
else if (Array.isArray(request.headers)) {
// undici@6.11.0 accidentally, briefly removed `request.addHeader()`.
request.headers.push(k, v);
}

@@ -186,0 +190,0 @@ }

@@ -1,2 +0,2 @@

export declare const VERSION = "0.1.0";
export declare const VERSION = "0.2.0";
//# sourceMappingURL=version.d.ts.map

@@ -20,3 +20,3 @@ "use strict";

// this is autogenerated file, see scripts/version-update.js
exports.VERSION = '0.1.0';
exports.VERSION = '0.2.0';
//# sourceMappingURL=version.js.map
{
"name": "@opentelemetry/instrumentation-undici",
"version": "0.1.0",
"description": "OpenTelemetry undici/fetch automatic instrumentation package.",
"version": "0.2.0",
"description": "OpenTelemetry instrumentation for undici and Node.js fetch().",
"main": "build/src/index.js",

@@ -17,3 +17,2 @@ "types": "build/src/index.d.ts",

"lint:fix": "eslint . --ext .ts --fix",
"codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../../",
"watch": "tsc -w",

@@ -57,6 +56,6 @@ "precompile": "tsc --version && lerna run version:update --scope @opentelemetry/instrumentation-undici --include-dependencies",

"superagent": "8.0.9",
"test-all-versions": "6.0.0",
"test-all-versions": "6.1.0",
"ts-mocha": "10.0.0",
"typescript": "4.4.4",
"undici": "6.10.1"
"undici": "6.11.1"
},

@@ -68,7 +67,7 @@ "peerDependencies": {

"@opentelemetry/core": "^1.8.0",
"@opentelemetry/instrumentation": "^0.50.0"
"@opentelemetry/instrumentation": "^0.51.0"
},
"homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/opentelemetry-instrumentation-undici#readme",
"sideEffects": false,
"gitHead": "fe18e2fbb2a6535cb72f314fdb1550a3a4160403"
"gitHead": "96a87b48934f0afcf1fe637eed6704f35bd8e973"
}

@@ -17,2 +17,6 @@ # OpenTelemetry Undici/fetch Instrumentation for Node.js

## Supported Versions
- `undici@>=5.12.0`
## Usage

@@ -71,17 +75,17 @@

| Attribute | Short Description | Notes |
| ------------ | ---------------------------------- | ----------------- |
| `http.request.method` | HTTP request method. | Key: `HTTP_REQUEST_METHOD` |
| `http.request.method_original` | Original HTTP method sent by the client in the request line. | Key: `HTTP_REQUEST_METHOD_ORIGINAL` |
| `url.full` | Absolute URL describing a network resource according to [RFC3986](https://www.rfc-editor.org/rfc/rfc3986). | Key: `URL_FULL` |
| `url.path` | The [URI path](https://www.rfc-editor.org/rfc/rfc3986#section-3.3) component. | Key: `URL_PATH` |
| `url.query` | The [URI query](https://www.rfc-editor.org/rfc/rfc3986#section-3.4) component. | Key: `URL_QUERY` |
| `url.scheme` | HTTP request method. | Key: `URL_SCHEME` |
| `server.address` | Server domain name, IP address or Unix domain socket name. | Key: `HTTP_REQUEST_METHOD` |
| `server.port` | Server port number. | Key: `HTTP_REQUEST_METHOD` |
| `user_agent.original` | Value of the HTTP User-Agent header sent by the client. | Key: `USER_AGENT_ORIGINAL` |
| `network.peer.address` | Peer address of the network connection - IP address or Unix domain socket name. | Key: `NETWORK_PEER_ADDRESS` |
| `network.peer.port` | Peer port number of the network connection. | Key: `NETWORK_PEER_PORT` |
| `http.response.status_code` | [HTTP response status code](https://tools.ietf.org/html/rfc7231#section-6). | Key: `HTTP_RESPONSE_STATUS_CODE` |
| `error.type` | Describes a class of error the operation ended with. | Key: `ERROR_TYPE` |
| Attribute | Short Description |
| ------------------------------ | ---------------------------------------------------------------------------------------------------------- |
| `error.type` | Describes a class of error the operation ended with. |
| `http.request.method` | HTTP request method. |
| `http.request.method_original` | Original HTTP method sent by the client in the request line. |
| `http.response.status_code` | [HTTP response status code](https://tools.ietf.org/html/rfc7231#section-6). |
| `network.peer.address` | Peer address of the network connection - IP address or Unix domain socket name. |
| `network.peer.port` | Peer port number of the network connection. |
| `server.address` | Server domain name, IP address or Unix domain socket name. |
| `server.port` | Server port number. |
| `url.full` | Absolute URL describing a network resource according to [RFC3986](https://www.rfc-editor.org/rfc/rfc3986). |
| `url.path` | The [URI path](https://www.rfc-editor.org/rfc/rfc3986#section-3.3) component. |
| `url.query` | The [URI query](https://www.rfc-editor.org/rfc/rfc3986#section-3.4) component. |
| `url.scheme` | HTTP request method. |
| `user_agent.original` | Value of the HTTP User-Agent header sent by the client. |

@@ -88,0 +92,0 @@ ## Useful links

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc