import { Instrumentation, LogRecordingInstrumentation, InstrumentationSpanInfo, InstrumentationNext, GenkitLogRecord } from './instrumentation-api.mjs'; import '@opentelemetry/api'; import './types.mjs'; import 'zod'; /** * Copyright 2025 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * The default, backwards-compatible instrumentation: exactly what * `runInNewSpan` did historically via `@opentelemetry/api`. Pure span creation; * spans only get exported if the user configured collection via * `enableTelemetry` (e.g. the GCP / Firebase plugins). * * When no collection is configured, `@opentelemetry/api`'s no-op tracer yields * all-zero ids; the composite treats those as empty. * * @hidden */ declare class OTelInstrumentation implements Instrumentation, LogRecordingInstrumentation { runInNewSpan(info: InstrumentationSpanInfo, next: InstrumentationNext): Promise; /** * Logs via the OTel logs API, correlated through the active OTel context. * A no-op unless the user configured collection with a LoggerProvider. This * preserves historical behavior exactly. */ recordLog(record: GenkitLogRecord): void; } export { OTelInstrumentation };