Skip to content

Commit 3162e6e

Browse files
nicohrubecclaude
andcommitted
ref: Replace @fastify/otel display names with Sentry identifier
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 75be960 commit 3162e6e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

packages/node/src/integrations/tracing/fastify/vendored/instrumentation.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export class FastifyOtelInstrumentation extends InstrumentationBase<FastifyOtelI
118118
done();
119119
};
120120
emptyPlugin[Symbol.for('skip-override')] = true;
121-
emptyPlugin[Symbol.for('fastify.display-name')] = '@fastify/otel';
121+
emptyPlugin[Symbol.for('fastify.display-name')] = PACKAGE_NAME;
122122
message.fastify.register(emptyPlugin);
123123
};
124124
dc.subscribe('fastify.initialization', this._handleInitialization);
@@ -143,10 +143,10 @@ export class FastifyOtelInstrumentation extends InstrumentationBase<FastifyOtelI
143143

144144
const pluginAny = FastifyInstrumentationPlugin as any;
145145
pluginAny[Symbol.for('skip-override')] = true;
146-
pluginAny[Symbol.for('fastify.display-name')] = '@fastify/otel';
146+
pluginAny[Symbol.for('fastify.display-name')] = PACKAGE_NAME;
147147
pluginAny[Symbol.for('plugin-meta')] = {
148148
fastify: SUPPORTED_VERSIONS,
149-
name: '@fastify/otel',
149+
name: PACKAGE_NAME,
150150
};
151151

152152
return FastifyInstrumentationPlugin;
@@ -261,7 +261,7 @@ export class FastifyOtelInstrumentation extends InstrumentationBase<FastifyOtelI
261261
}
262262

263263
const attributes: Record<string, string> = {
264-
[ATTRIBUTE_NAMES.ROOT]: '@fastify/otel',
264+
[ATTRIBUTE_NAMES.ROOT]: PACKAGE_NAME,
265265
[ATTR_HTTP_REQUEST_METHOD]: request.method,
266266
[ATTR_URL_PATH]: request.url,
267267
};

0 commit comments

Comments
 (0)