Skip to content

Commit baf9945

Browse files
committed
Reformat with new eslint rules
1 parent 053e707 commit baf9945

File tree

3 files changed

+14
-20
lines changed

3 files changed

+14
-20
lines changed

packages/node/src/integrations/tracing/fastify/index.ts

+7-8
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,21 @@
1+
import * as diagnosticsChannel from 'node:diagnostics_channel';
2+
import { FastifyOtelInstrumentation } from '@fastify/otel';
3+
import type { Instrumentation, InstrumentationConfig } from '@opentelemetry/instrumentation';
14
import type { IntegrationFn, Span } from '@sentry/core';
2-
import FastifyOtelInstrumentation from '@fastify/otel';
3-
import type { FastifyInstance, FastifyReply, FastifyRequest } from './types';
45
import {
56
captureException,
67
defineIntegration,
78
getClient,
89
getIsolationScope,
10+
logger,
911
SEMANTIC_ATTRIBUTE_SENTRY_OP,
1012
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
11-
parseSemver,
12-
logger,
1313
spanToJSON,
1414
} from '@sentry/core';
15-
import { generateInstrumentOnce } from '../../otel/instrument';
16-
import { FastifyInstrumentationV3 } from './v3/instrumentation';
17-
import * as diagnosticsChannel from 'node:diagnostics_channel';
1815
import { DEBUG_BUILD } from '../../../debug-build';
19-
import type { Instrumentation, InstrumentationConfig } from '@opentelemetry/instrumentation';
16+
import { generateInstrumentOnce } from '../../../otel/instrument';
17+
import type { FastifyInstance, FastifyReply, FastifyRequest } from './types';
18+
import { FastifyInstrumentationV3 } from './v3/instrumentation';
2019

2120
interface FastifyHandlerOptions {
2221
/**

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

+6-10
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
* limitations under the License.
2121
*/
2222

23-
import { type Attributes, SpanStatusCode, context, trace } from '@opentelemetry/api';
24-
import { RPCType, getRPCMetadata } from '@opentelemetry/core';
23+
import { type Attributes, context, SpanStatusCode, trace } from '@opentelemetry/api';
24+
import { getRPCMetadata, RPCType } from '@opentelemetry/core';
2525
import {
2626
InstrumentationBase,
2727
InstrumentationNodeModuleDefinition,
@@ -30,17 +30,12 @@ import {
3030
import { SEMATTRS_HTTP_ROUTE } from '@opentelemetry/semantic-conventions';
3131
import type { Span } from '@sentry/core';
3232
import {
33-
SEMANTIC_ATTRIBUTE_SENTRY_OP,
34-
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
3533
getClient,
3634
getIsolationScope,
35+
SEMANTIC_ATTRIBUTE_SENTRY_OP,
36+
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
3737
spanToJSON,
3838
} from '@sentry/core';
39-
40-
import { AttributeNames, FastifyNames, FastifyTypes } from './enums/AttributeNames';
41-
42-
import type { PluginFastifyReply } from './internal-types';
43-
4439
import type {
4540
FastifyErrorCodes,
4641
FastifyInstance,
@@ -49,7 +44,8 @@ import type {
4944
HandlerOriginal,
5045
HookHandlerDoneFunction,
5146
} from '../types';
52-
47+
import { AttributeNames, FastifyNames, FastifyTypes } from './enums/AttributeNames';
48+
import type { PluginFastifyReply } from './internal-types';
5349
import type { FastifyInstrumentationConfig } from './types';
5450
import { endSpan, safeExecuteInTheMiddleMaybePromise, startSpan } from './utils';
5551
/** @knipignore */

packages/node/src/integrations/tracing/fastify/v3/utils.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@
1919
* limitations under the License.
2020
*/
2121

22-
import { type Attributes, type Span, SpanStatusCode, type Tracer } from '@opentelemetry/api';
22+
import { type Attributes, type Span, type Tracer, SpanStatusCode } from '@opentelemetry/api';
2323
import { spanRequestSymbol } from './constants';
24-
2524
import type { PluginFastifyReply } from './internal-types';
2625

2726
/**

0 commit comments

Comments
 (0)