@opentelemetry/instrumentation-fastify 0.52.0 → 0.53.1

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/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  > [!IMPORTANT]
7
7
  > This component is **deprecated** in favor of the official instrumentation package [`@fastify/otel`](https://www.npmjs.com/package/@fastify/otel), maintained by the Fastify authors.
8
- > Please see [here](https://github.com/fastify/otel?tab=readme-ov-file#usage) for instructions on how to use `@fastify/otel`.
8
+ > Please check [the offical Fastify plugin's README.md](https://github.com/fastify/otel?tab=readme-ov-file#usage) for instructions on how to use `@fastify/otel`.
9
9
  >
10
10
  > We will stop publishing new versions of `@opentelemetry/instrumentation-fastify` on June 30, 2025.
11
11
 
@@ -53,9 +53,9 @@ See [examples/fastify](https://github.com/open-telemetry/opentelemetry-js-contri
53
53
 
54
54
  ## Fastify Instrumentation Options
55
55
 
56
- | Options | Type | Example | Description |
57
- | -------------- | ---------------------------- | -------------------------------- | ------------------------------------------------------------------------------ |
58
- | `requestHook` | `FastifyCustomAttributeFunction` | `(span, requestInfo) => {}` | Function for adding custom attributes to Fastify requests. Receives parameters: `Span, FastifyRequestInfo`. |
56
+ | Options | Type | Example | Description |
57
+ |---------------|----------------------------------|-----------------------------|-------------------------------------------------------------------------------------------------------------|
58
+ | `requestHook` | `FastifyCustomAttributeFunction` | `(span, requestInfo) => {}` | Function for adding custom attributes to Fastify requests. Receives parameters: `Span, FastifyRequestInfo`. |
59
59
 
60
60
  ### Using `requestHook`
61
61
 
@@ -81,7 +81,7 @@ This package uses `@opentelemetry/semantic-conventions` version `1.22+`, which i
81
81
  Attributes collected:
82
82
 
83
83
  | Attribute | Short Description |
84
- | ------------ | ---------------------------------- |
84
+ |--------------|------------------------------------|
85
85
  | `http.route` | The matched route (path template). |
86
86
 
87
87
  ## Useful links
@@ -1,3 +1,3 @@
1
- export declare const PACKAGE_VERSION = "0.52.0";
1
+ export declare const PACKAGE_VERSION = "0.53.1";
2
2
  export declare const PACKAGE_NAME = "@opentelemetry/instrumentation-fastify";
3
3
  //# sourceMappingURL=version.d.ts.map
@@ -17,6 +17,6 @@
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.PACKAGE_NAME = exports.PACKAGE_VERSION = void 0;
19
19
  // this is autogenerated file, see scripts/version-update.js
20
- exports.PACKAGE_VERSION = '0.52.0';
20
+ exports.PACKAGE_VERSION = '0.53.1';
21
21
  exports.PACKAGE_NAME = '@opentelemetry/instrumentation-fastify';
22
22
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4DAA4D;AAC/C,QAAA,eAAe,GAAG,QAAQ,CAAC;AAC3B,QAAA,YAAY,GAAG,wCAAwC,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// this is autogenerated file, see scripts/version-update.js\nexport const PACKAGE_VERSION = '0.52.0';\nexport const PACKAGE_NAME = '@opentelemetry/instrumentation-fastify';\n"]}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4DAA4D;AAC/C,QAAA,eAAe,GAAG,QAAQ,CAAC;AAC3B,QAAA,YAAY,GAAG,wCAAwC,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// this is autogenerated file, see scripts/version-update.js\nexport const PACKAGE_VERSION = '0.53.1';\nexport const PACKAGE_NAME = '@opentelemetry/instrumentation-fastify';\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentelemetry/instrumentation-fastify",
3
- "version": "0.52.0",
3
+ "version": "0.53.1",
4
4
  "description": "OpenTelemetry instrumentation for `fastify` http web application framework",
5
5
  "main": "build/src/index.js",
6
6
  "types": "build/src/index.d.ts",
@@ -48,25 +48,17 @@
48
48
  "@fastify/express": "^3.0.0",
49
49
  "@opentelemetry/api": "^1.3.0",
50
50
  "@opentelemetry/context-async-hooks": "^2.0.0",
51
- "@opentelemetry/contrib-test-utils": "^0.54.0",
52
- "@opentelemetry/instrumentation-http": "^0.207.0",
51
+ "@opentelemetry/contrib-test-utils": "^0.56.0",
52
+ "@opentelemetry/instrumentation-http": "^0.208.0",
53
53
  "@opentelemetry/sdk-trace-base": "^2.0.0",
54
54
  "@opentelemetry/sdk-trace-node": "^2.0.0",
55
- "@types/mocha": "10.0.10",
56
- "@types/node": "18.15.3",
57
- "@types/semver": "7.5.8",
58
- "fastify": "4.18.0",
59
- "nyc": "17.1.0",
60
- "rimraf": "5.0.10",
61
- "semver": "^7.5.4",
62
- "test-all-versions": "6.1.0",
63
- "typescript": "5.0.4"
55
+ "fastify": "4.18.0"
64
56
  },
65
57
  "dependencies": {
66
58
  "@opentelemetry/core": "^2.0.0",
67
- "@opentelemetry/instrumentation": "^0.207.0",
59
+ "@opentelemetry/instrumentation": "^0.208.0",
68
60
  "@opentelemetry/semantic-conventions": "^1.27.0"
69
61
  },
70
62
  "homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/packages/instrumentation-fastify#readme",
71
- "gitHead": "2801ab2f0f9243b154a624298dacb7228c4f70cd"
63
+ "gitHead": "66935ac724cc271f70028035e534d47a4dfbcf12"
72
64
  }