CodeLocationProperty Struct
Identifies a code location to instrument.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_applicationsignals as applicationsignals } from 'aws-cdk-lib';
const codeLocationProperty: applicationsignals.CfnInstrumentationConfig.CodeLocationProperty = {
filePath: 'filePath',
language: 'language',
// the properties below are optional
className: 'className',
codeUnit: 'codeUnit',
lineNumber: 123,
methodName: 'methodName',
};
Properties
classNameoptionalstringclass_nameoptionalstrclassNameoptionalStringClassNameoptionalstringClassNameoptional*string#The class or type name that contains the method.
codeUnitoptionalstringcode_unitoptionalstrcodeUnitoptionalStringCodeUnitoptionalstringCodeUnitoptional*string#The package, module, or namespace that contains the target code.
The source file path relative to the project or source root.
The programming language for this instrumentation point.
lineNumberoptionalnumberline_numberoptionalint | floatlineNumberoptionalNumberLineNumberoptionaldoubleLineNumberoptional*float64#The line number to instrument.
methodNameoptionalstringmethod_nameoptionalstrmethodNameoptionalStringMethodNameoptionalstringMethodNameoptional*string#The method or function name to instrument.