Skip to content

Commit c112575

Browse files
committed
docs(instrumentation-fastify): deprecate instrumentation in favor of @fastify/otel
1 parent e57f3e4 commit c112575

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

plugins/node/opentelemetry-instrumentation-fastify/README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,13 @@
33
[![NPM Published Version][npm-img]][npm-url]
44
[![Apache License][license-image]][license-image]
55

6-
This module provides automatic instrumentation for the [`fastify`](https://www.fastify.io/) module, which may be loaded using the [`@opentelemetry/sdk-trace-node`](https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-sdk-trace-node) package and is included in the [`@opentelemetry/auto-instrumentations-node`](https://www.npmjs.com/package/@opentelemetry/auto-instrumentations-node) bundle.
6+
> [!IMPORTANT]
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`.
9+
>
10+
> We will stop publishing new versions of `@opentelemetry/instrumentation-fastify` on March 25, 2025.
711
8-
If total installation size is not constrained, it is recommended to use the [`@opentelemetry/auto-instrumentations-node`](https://www.npmjs.com/package/@opentelemetry/auto-instrumentations-node) bundle with [@opentelemetry/sdk-node](`https://www.npmjs.com/package/@opentelemetry/sdk-node`) for the most seamless instrumentation experience.
12+
This module provides automatic instrumentation for the [`fastify`](https://www.fastify.io/) module, which may be loaded using the [`@opentelemetry/sdk-trace-node`](https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-sdk-trace-node) package.
913

1014
Compatible with OpenTelemetry JS API and SDK `1.0+`.
1115

plugins/node/opentelemetry-instrumentation-fastify/src/instrumentation.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,11 @@ import { PACKAGE_NAME, PACKAGE_VERSION } from './version';
4747

4848
export const ANONYMOUS_NAME = 'anonymous';
4949

50-
/** Fastify instrumentation for OpenTelemetry */
50+
/**
51+
* Fastify instrumentation for OpenTelemetry
52+
* @deprecated This instrumentation is deprecated in favor of the official instrumentation package `@fastify/otel`,
53+
* which is maintained by the fastify authors.
54+
*/
5155
export class FastifyInstrumentation extends InstrumentationBase<FastifyInstrumentationConfig> {
5256
constructor(config: FastifyInstrumentationConfig = {}) {
5357
super(PACKAGE_NAME, PACKAGE_VERSION, config);

0 commit comments

Comments
 (0)