Skip to content

Commit d611496

Browse files
committed
formatting
1 parent a4e0ccc commit d611496

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

portkey_ai/api_resources/instrumentation/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"langgraph": LanggraphInstrumentor,
1717
}
1818

19+
1920
def initialize_instrumentation(api_key: str, base_url: str):
2021
tracer_provider = TracerProvider()
2122
exporter = PortkeySpanExporter(api_key=api_key, base_url=base_url)

portkey_ai/api_resources/instrumentation/litellm/patch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def traced_func(wrapped, instance, args, kwargs):
4343

4444
try:
4545
set_members(span, instance, module_name, class_name)
46-
except Exception as e:
46+
except Exception:
4747
span.set_attribute(f"{module_name}.{class_name}.error", instance)
4848

4949
set_span_attribute(span, "result", result)

portkey_ai/api_resources/instrumentation/openai/patch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def traced_func(wrapped, instance, args, kwargs):
3030

3131
try:
3232
set_members(span, instance, module_name, class_name)
33-
except Exception as e:
33+
except Exception:
3434
span.set_attribute(f"{module_name}.{class_name}.error", instance)
3535

3636
set_span_attribute(span, "result", result)

0 commit comments

Comments
 (0)