File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 11import pytest
2+ import httpx
3+ from openai import OpenAI
4+ from opentelemetry .trace import SpanKind , StatusCode
5+ from langtrace_python_sdk .constants .instrumentation .common import SpanAttributes
26from langtrace_python_sdk .constants .instrumentation .openai import APIS
7+ from langtrace_python_sdk .instrumentation .openai import OpenAIInstrumentation
38from tests .utils import assert_token_count
49from importlib_metadata import version as v
5- from langtrace .trace_attributes import SpanAttributes
6- from openai import OpenAI
7- import httpx
810
11+ # Initialize OpenAI instrumentation
12+ instrumentor = OpenAIInstrumentation ()
13+ instrumentor .instrument ()
914
1015@pytest .mark .vcr ()
1116def test_embeddings_base_url (exporter , openai_client ):
You can’t perform that action at this time.
0 commit comments