Skip to content

Commit 42af26a

Browse files
committed
feat(instrumentation-llamaindex): migrate to OTel 1.40 GenAI semantic conventions
1 parent ef88403 commit 42af26a

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

packages/instrumentation-llamaindex/test/instrumentation.test.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
import { context, DiagLogger } from "@opentelemetry/api";
17+
import { context, diag, DiagLogger } from "@opentelemetry/api";
1818
import { AsyncHooksContextManager } from "@opentelemetry/context-async-hooks";
1919
import { LlamaIndexInstrumentation } from "../src/instrumentation";
2020
import * as assert from "assert";
@@ -212,13 +212,7 @@ describe("Test LlamaIndex instrumentation", async function () {
212212
// No HTTP, no Polly, no API keys needed.
213213
// ─────────────────────────────────────────────────────────────────────────────
214214

215-
const noopDiag: DiagLogger = {
216-
verbose: () => {},
217-
debug: () => {},
218-
info: () => {},
219-
warn: () => {},
220-
error: () => {},
221-
};
215+
const noopDiag: DiagLogger = diag;
222216

223217
function makeMockChat(options: {
224218
responseContent?: string;

0 commit comments

Comments
 (0)