Skip to content

Commit d297444

Browse files
committed
run ruff for openai instrumentation
Signed-off-by: emdneto <[email protected]>
1 parent 0fb52ac commit d297444

File tree

3 files changed

+0
-4
lines changed

3 files changed

+0
-4
lines changed

instrumentation/opentelemetry-instrumentation-openai-v2/src/opentelemetry/instrumentation/openai_v2/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
---
4141
"""
4242

43-
4443
from typing import Collection
4544

4645
from wrapt import wrap_function_wrapper
@@ -55,7 +54,6 @@
5554

5655

5756
class OpenAIInstrumentor(BaseInstrumentor):
58-
5957
def instrumentation_dependencies(self) -> Collection[str]:
6058
return _instruments
6159

instrumentation/opentelemetry-instrumentation-openai-v2/src/opentelemetry/instrumentation/openai_v2/patch.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ def chat_completions_create(tracer: Tracer):
4040
"""Wrap the `create` method of the `ChatCompletion` class to trace it."""
4141

4242
def traced_method(wrapped, instance, args, kwargs):
43-
4443
llm_prompts = []
4544

4645
for item in kwargs.get("messages", []):

instrumentation/opentelemetry-instrumentation-openai-v2/src/opentelemetry/instrumentation/openai_v2/utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ def get_llm_request_attributes(
142142
kwargs,
143143
operation_name=GenAIAttributes.GenAiOperationNameValues.CHAT.value,
144144
):
145-
146145
attributes = {
147146
GenAIAttributes.GEN_AI_OPERATION_NAME: operation_name,
148147
GenAIAttributes.GEN_AI_SYSTEM: GenAIAttributes.GenAiSystemValues.OPENAI.value,

0 commit comments

Comments
 (0)