- span(props?): ((target, propertyKey, descriptor) => void)
Parameters
Optional props: {
name?: string;
spanKind?: string;
}Optional name?: string
Optional spanKind?: string
Returns ((target, propertyKey, descriptor) => void)
- (target, propertyKey, descriptor): void
Parameters
- target: any
- propertyKey: string
- descriptor: PropertyDescriptor
Returns void
Description
Method decorator that wraps a method in an OpenTelemetry span with attributes for class, method, arguments, and result.