isGenAiInstrumentorCode function
Returns true when codeFilename belongs to
opentelemetry-instrumentation-google-genai.
Implementation
bool isGenAiInstrumentorCode(String? codeFilename) {
if (codeFilename == null || codeFilename.isEmpty) {
return false;
}
return codeFilename.replaceAll(r'\', '/').contains(genAiInstrumentorModulePath);
}