{"version":3,"file":"internal-types.js","sourceRoot":"","sources":["../../src/internal-types.ts"],"names":[],"mappings":"","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { Span } from '@opentelemetry/api';\nimport type * as restify from 'restify';\nimport { LayerType } from './types';\n\ndeclare interface RequestWithRoute extends restify.Request {\n  route: { path: string };\n  getRoute: () => { path: string };\n}\n\nexport declare type Request = RequestWithRoute;\nexport declare type Metadata = {\n  path?: string;\n  methodName?: string;\n  type: LayerType;\n};\n\nexport type NestedRequestHandlers = Array<\n  NestedRequestHandlers | restify.RequestHandler\n>;\n\n/**\n * extends opentelemetry/api Span object to instrument the root span name of http instrumentation\n */\nexport interface InstrumentationSpan extends Span {\n  name?: string;\n}\n"]}