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

10 lines (8 loc) 264 B
import { SetMetadata } from '@nestjs/common'; import { Constants } from '../../Constants'; /** * A decorator to mark a method as a span * @param name The name of the span */ export const Span = (name?: string) => SetMetadata(Constants.TRACE_METADATA, name);