Skip to content

Commit 98a2c37

Browse files
committed
chore(node): Format code with Prettier
1 parent 2a6cd6e commit 98a2c37

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

packages/node/src/integrations/tracing/hono/instrumentation.ts

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { InstrumentationBase,InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation';
1+
import { InstrumentationBase, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation';
22
import type { HandlerInterface, Hono, HonoInstance, MiddlewareHandlerInterface, OnHandlerInterface } from './types';
33

44
const PACKAGE_NAME = '@sentry/instrumentation-hono';
@@ -17,11 +17,7 @@ export class HonoInstrumentation extends InstrumentationBase {
1717
*/
1818
public init(): InstrumentationNodeModuleDefinition[] {
1919
return [
20-
new InstrumentationNodeModuleDefinition(
21-
'hono',
22-
['>=4.0.0 <5'],
23-
moduleExports => this._patch(moduleExports),
24-
),
20+
new InstrumentationNodeModuleDefinition('hono', ['>=4.0.0 <5'], moduleExports => this._patch(moduleExports)),
2521
];
2622
}
2723

@@ -54,7 +50,7 @@ export class HonoInstrumentation extends InstrumentationBase {
5450
* Patches the route handler to instrument it.
5551
*/
5652
private _patchHandler(): (original: HandlerInterface) => HandlerInterface {
57-
return function(original: HandlerInterface) {
53+
return function (original: HandlerInterface) {
5854
return function wrappedHandler(this: HonoInstance, ...args: unknown[]) {
5955
// TODO: Add OpenTelemetry tracing logic here
6056
return original.apply(this, args);
@@ -66,7 +62,7 @@ export class HonoInstrumentation extends InstrumentationBase {
6662
* Patches the 'on' handler to instrument it.
6763
*/
6864
private _patchOnHandler(): (original: OnHandlerInterface) => OnHandlerInterface {
69-
return function(original: OnHandlerInterface) {
65+
return function (original: OnHandlerInterface) {
7066
return function wrappedHandler(this: HonoInstance, ...args: unknown[]) {
7167
// TODO: Add OpenTelemetry tracing logic here
7268
return original.apply(this, args);
@@ -78,7 +74,7 @@ export class HonoInstrumentation extends InstrumentationBase {
7874
* Patches the middleware handler to instrument it.
7975
*/
8076
private _patchMiddlewareHandler(): (original: MiddlewareHandlerInterface) => MiddlewareHandlerInterface {
81-
return function(original: MiddlewareHandlerInterface) {
77+
return function (original: MiddlewareHandlerInterface) {
8278
return function wrappedHandler(this: HonoInstance, ...args: unknown[]) {
8379
// TODO: Add OpenTelemetry tracing logic here
8480
return original.apply(this, args);

0 commit comments

Comments
 (0)