|
25 | 25 | * limitations under the License. |
26 | 26 | */ |
27 | 27 |
|
28 | | -import { getRPCMetadata, RPCType } from '@opentelemetry/core'; |
29 | 28 | import type { Attributes } from '@opentelemetry/api'; |
30 | | -import { trace, context, diag, SpanStatusCode } from '@opentelemetry/api'; |
31 | | -import type * as express from 'express'; |
32 | | -import type { ExpressInstrumentationConfig, ExpressRequestInfo } from './types'; |
33 | | -import { ExpressLayerType } from './enums/ExpressLayerType'; |
34 | | -import { AttributeNames } from './enums/AttributeNames'; |
35 | | -import { asErrorAndMessage, getLayerMetadata, getLayerPath, isLayerIgnored, storeLayerPath } from './utils'; |
| 29 | +import { SpanStatusCode, context, diag, trace } from '@opentelemetry/api'; |
| 30 | +import { RPCType, getRPCMetadata } from '@opentelemetry/core'; |
36 | 31 | import { |
37 | 32 | InstrumentationBase, |
38 | 33 | InstrumentationNodeModuleDefinition, |
39 | 34 | isWrapped, |
40 | 35 | safeExecuteInTheMiddle, |
41 | 36 | } from '@opentelemetry/instrumentation'; |
42 | 37 | import { SEMATTRS_HTTP_ROUTE } from '@opentelemetry/semantic-conventions'; |
| 38 | +import type * as express from 'express'; |
| 39 | +import { AttributeNames } from './enums/AttributeNames'; |
| 40 | +import { ExpressLayerType } from './enums/ExpressLayerType'; |
43 | 41 | import type { ExpressLayer, ExpressRouter, PatchedRequest } from './internal-types'; |
44 | | -import { kLayerPatched, _LAYERS_STORE_PROPERTY } from './internal-types'; |
| 42 | +import { _LAYERS_STORE_PROPERTY, kLayerPatched } from './internal-types'; |
| 43 | +import type { ExpressInstrumentationConfig, ExpressRequestInfo } from './types'; |
| 44 | +import { asErrorAndMessage, getLayerMetadata, getLayerPath, isLayerIgnored, storeLayerPath } from './utils'; |
45 | 45 |
|
46 | 46 | export const PACKAGE_VERSION = '0.1.0'; |
47 | 47 | export const PACKAGE_NAME = '@sentry/instrumentation-express-v5'; |
|
0 commit comments