Skip to content

Commit

Permalink
resolved test label
Browse files Browse the repository at this point in the history
  • Loading branch information
howieleung committed Sep 12, 2024
1 parent bdfc569 commit ddc4daa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sdk/ai/ai-inference-rest/test/public/tracing.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { trace, context } from "@opentelemetry/api";
import { ChatCompletionsOutput, ModelClient } from "../../src/index.js";
import { Instrumenter, InstrumenterSpanOptions, SpanStatus, TracingContext, TracingSpan, TracingSpanOptions, useInstrumenter } from "@azure/core-tracing";

describe("chat test suite", () => {
describe("tracing test suite", () => {
let recorder: Recorder;
let client: ModelClient;
let instrumenter: MockInstrumenter;
Expand Down Expand Up @@ -80,7 +80,7 @@ describe("chat test suite", () => {
const mockSpan = createdSpan;
assert.isTrue(mockSpan.endCalled, "expected span to be ended");
assert.equal(mockSpan.name, "chat");
assert.equal(mockSpan.getAttribute("az.namespace"), "Micirsoft.CognitiveServices");
assert.equal(mockSpan.getAttribute("az.namespace"), "Microsoft.CognitiveServices");
assert.isTrue(mockSpan.getAttribute("server.address")?.toString().endsWith("azure.com"));
assert.equal(mockSpan.getAttribute("server.port"), 443);
assert.equal(mockSpan.getAttribute("gen_ai.operation.name"), "chat");
Expand Down Expand Up @@ -142,7 +142,7 @@ describe("chat test suite", () => {
const mockSpan = createdSpan;
assert.isTrue(mockSpan.endCalled, "expected span to be ended");
assert.equal(mockSpan.name, "chat");
assert.equal(mockSpan.getAttribute("az.namespace"), "Micirsoft.CognitiveServices");
assert.equal(mockSpan.getAttribute("az.namespace"), "Microsoft.CognitiveServices");
assert.isTrue(mockSpan.getAttribute("server.address")?.toString().endsWith("azure.com"));
assert.equal(mockSpan.getAttribute("server.port"), 443);
assert.equal(mockSpan.getAttribute("gen_ai.operation.name"), "chat");
Expand Down

0 comments on commit ddc4daa

Please sign in to comment.