Skip to content

Commit

Permalink
fix(nestjs): remove nestjs type from exported Instrumentation (#992)
Browse files Browse the repository at this point in the history
Co-authored-by: Rauno Viskus <[email protected]>
  • Loading branch information
Amir Blum and rauno56 authored May 3, 2022
1 parent 8786cbe commit eba9531
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,14 @@ import {
InstrumentationNodeModuleFile,
isWrapped,
} from '@opentelemetry/instrumentation';
import type * as NestJS from '@nestjs/core';
import type { NestFactory } from '@nestjs/core/nest-factory.js';
import type { RouterExecutionContext } from '@nestjs/core/router/router-execution-context.js';
import type { Controller } from '@nestjs/common/interfaces';
import { SemanticAttributes } from '@opentelemetry/semantic-conventions';
import { VERSION } from './version';
import { AttributeNames, NestType } from './enums';

export class Instrumentation extends InstrumentationBase<typeof NestJS> {
export class Instrumentation extends InstrumentationBase<any> {
static readonly COMPONENT = '@nestjs/core';
static readonly COMMON_ATTRIBUTES = {
component: Instrumentation.COMPONENT,
Expand Down

0 comments on commit eba9531

Please sign in to comment.