promptlayer 1.0.13__tar.gz → 1.0.14__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of promptlayer might be problematic. Click here for more details.
- {promptlayer-1.0.13 → promptlayer-1.0.14}/PKG-INFO +1 -1
- {promptlayer-1.0.13 → promptlayer-1.0.14}/promptlayer/__init__.py +1 -1
- {promptlayer-1.0.13 → promptlayer-1.0.14}/promptlayer/promptlayer.py +5 -5
- {promptlayer-1.0.13 → promptlayer-1.0.14}/pyproject.toml +1 -1
- {promptlayer-1.0.13 → promptlayer-1.0.14}/LICENSE +0 -0
- {promptlayer-1.0.13 → promptlayer-1.0.14}/README.md +0 -0
- {promptlayer-1.0.13 → promptlayer-1.0.14}/promptlayer/groups/__init__.py +0 -0
- {promptlayer-1.0.13 → promptlayer-1.0.14}/promptlayer/groups/groups.py +0 -0
- {promptlayer-1.0.13 → promptlayer-1.0.14}/promptlayer/promptlayer_base.py +0 -0
- {promptlayer-1.0.13 → promptlayer-1.0.14}/promptlayer/span_exporter.py +0 -0
- {promptlayer-1.0.13 → promptlayer-1.0.14}/promptlayer/templates.py +0 -0
- {promptlayer-1.0.13 → promptlayer-1.0.14}/promptlayer/track/__init__.py +0 -0
- {promptlayer-1.0.13 → promptlayer-1.0.14}/promptlayer/track/track.py +0 -0
- {promptlayer-1.0.13 → promptlayer-1.0.14}/promptlayer/types/__init__.py +0 -0
- {promptlayer-1.0.13 → promptlayer-1.0.14}/promptlayer/types/prompt_template.py +0 -0
- {promptlayer-1.0.13 → promptlayer-1.0.14}/promptlayer/utils.py +0 -0
|
@@ -374,14 +374,14 @@ class PromptLayer:
|
|
|
374
374
|
else:
|
|
375
375
|
return self._run_internal(**_run_internal_kwargs)
|
|
376
376
|
|
|
377
|
-
def traceable(self,
|
|
377
|
+
def traceable(self, attributes=None):
|
|
378
378
|
def decorator(func):
|
|
379
379
|
@wraps(func)
|
|
380
380
|
def sync_wrapper(*args, **kwargs):
|
|
381
381
|
if self.tracer:
|
|
382
382
|
with self.tracer.start_as_current_span(func.__name__) as span:
|
|
383
|
-
if
|
|
384
|
-
for key, value in
|
|
383
|
+
if attributes:
|
|
384
|
+
for key, value in attributes.items():
|
|
385
385
|
span.set_attribute(key, value)
|
|
386
386
|
|
|
387
387
|
span.set_attribute(
|
|
@@ -398,8 +398,8 @@ class PromptLayer:
|
|
|
398
398
|
async def async_wrapper(*args, **kwargs):
|
|
399
399
|
if self.tracer:
|
|
400
400
|
with self.tracer.start_as_current_span(func.__name__) as span:
|
|
401
|
-
if
|
|
402
|
-
for key, value in
|
|
401
|
+
if attributes:
|
|
402
|
+
for key, value in attributes.items():
|
|
403
403
|
span.set_attribute(key, value)
|
|
404
404
|
|
|
405
405
|
span.set_attribute(
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|