This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ATTR_METADATA_KEY } from './constants'; | |
import { AttrKey, AttrMetadata } from './types'; | |
/** | |
* Sets a custom attribute key on a parameter so that it can be picked up | |
* by the Span decorator and mapped to the args values. | |
*/ | |
export function Attr(key: AttrKey): ParameterDecorator { | |
return function ( | |
target: NonNullable<unknown>, |