Skip to content

Commit f01cba4

Browse files
committed
Merge branch 'development' of github.com:Scale3-Labs/langtrace-python-sdk into development
2 parents e3c2b24 + 30260f6 commit f01cba4

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def main():
194194
from langtrace_python_sdk import with_langtrace_root_span, with_additional_attributes
195195

196196

197-
@with_additional_attributes({"user.id": "1234", "user.feedback.rating": 1})
197+
@with_additional_attributes({"user.id": "1234"})
198198
def api_call1():
199199
response = client.chat.completions.create(
200200
model="gpt-4",
@@ -204,7 +204,7 @@ def api_call1():
204204
return response
205205

206206

207-
@with_additional_attributes({"user.id": "5678", "user.feedback.rating": -1})
207+
@with_additional_attributes({"user.id": "5678"})
208208
def api_call2():
209209
response = client.chat.completions.create(
210210
model="gpt-4",
@@ -253,6 +253,7 @@ Langtrace automatically captures traces from the following vendors:
253253
| CrewAI | Framework | :x: | :white_check_mark: |
254254
| Ollama | Framework | :x: | :white_check_mark: |
255255
| VertexAI | Framework | :x: | :white_check_mark: |
256+
| Vercel AI SDK| Framework | :white_check_mark: | :x: |
256257
| Pinecone | Vector Database | :white_check_mark: | :white_check_mark: |
257258
| ChromaDB | Vector Database | :white_check_mark: | :white_check_mark: |
258259
| QDrant | Vector Database | :white_check_mark: | :white_check_mark: |

src/langtrace_python_sdk/extensions/langtrace_exporter.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,11 @@ def export(self, spans: typing.Sequence[ReadableSpan]) -> SpanExportResult:
9797
response = requests.post(
9898
url=f"{self.api_host}",
9999
data=json.dumps(data),
100-
headers={"Content-Type": "application/json", "x-api-key": self.api_key},
100+
headers={
101+
"Content-Type": "application/json",
102+
"x-api-key": self.api_key,
103+
"User-Agent": "LangtraceExporter",
104+
},
101105
timeout=20,
102106
)
103107

src/langtrace_python_sdk/utils/llm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def get_langtrace_attributes(version, service_provider, vendor_type="llm"):
9292
SpanAttributes.LANGTRACE_SERVICE_VERSION: version,
9393
SpanAttributes.LANGTRACE_SERVICE_NAME: service_provider,
9494
SpanAttributes.LANGTRACE_SERVICE_TYPE: vendor_type,
95-
SpanAttributes.LLM_SYSTEM: service_provider,
95+
SpanAttributes.LLM_SYSTEM: service_provider.lower(),
9696
}
9797

9898

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "2.2.9"
1+
__version__ = "2.2.11"

0 commit comments

Comments
 (0)