UNPKG

@zerosuxx/opentelemetry-nestjs

Version:

OpenTelemetry module for Nestjs with auto instrumentation and resource detection. Initially forked from https://github.com/overbit/opentelemetry-nestjs.git

9 lines (7 loc) 250 B
import { SetMetadata } from '@nestjs/common'; import { Constants } from '../../Constants'; /** * Decorator to mark all methods of a class as a traceable */ export const Traceable = (name?: string) => SetMetadata(Constants.TRACE_METADATA, name);