isGenAiInstrumentorCode function

bool isGenAiInstrumentorCode(
  1. String? codeFilename
)

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);
}