MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / CreateInstrumentationExtension

Function CreateInstrumentationExtension

eval/compiler/instrumentation.cc:81–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79} // namespace
80
81ProgramOptimizerFactory CreateInstrumentationExtension(
82 InstrumentationFactory factory) {
83 return [fac = std::move(factory)](PlannerContext&, const cel::Ast& ast)
84 -> absl::StatusOr<std::unique_ptr<ProgramOptimizer>> {
85 Instrumentation ins = fac(ast);
86 if (ins) {
87 return std::make_unique<InstrumentOptimizer>(std::move(ins));
88 }
89 return nullptr;
90 };
91}
92
93} // namespace google::api::expr::runtime

Callers 3

TEST_FFunction · 0.85
EnableCoverageInRuntimeFunction · 0.85

Calls

no outgoing calls

Tested by 1

TEST_FFunction · 0.68