diff --git a/README.md b/README.md index aefff080..a580bcbe 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,8 @@ [![NPM SDK](https://img.shields.io/npm/v/%40langtrase%2Ftypescript-sdk?style=flat-square&logo=npm&label=typescript-sdk&color=green)](https://github.com/Scale3-Labs/langtrace-typescript-sdk) [![NPM Downloads](https://img.shields.io/npm/dm/%40langtrase%2Ftypescript-sdk?style=flat-square&logo=npm)](https://www.npmjs.com/package/@langtrase/typescript-sdk) [![PyPI SDK](https://img.shields.io/pypi/v/langtrace-python-sdk?style=flat-square&logo=python&label=python-sdk&color=green)](https://github.com/Scale3-Labs/langtrace-python-sdk) - [![Downloads](https://static.pepy.tech/badge/langtrace-python-sdk/month)](https://pepy.tech/project/langtrace-python-sdk) + [![PyPI Downloads](https://static.pepy.tech/badge/langtrace-python-sdk/month)](https://pepy.tech/project/langtrace-python-sdk) + [![Total PyPI Downloads](https://static.pepy.tech/badge/langtrace-python-sdk)](https://static.pepy.tech/badge/langtrace-python-sdk) [![Deploy](https://railway.app/button.svg)](https://railway.app/template/8dNq1c?referralCode=MA2S9H) @@ -202,7 +203,7 @@ Langtrace automatically captures traces from the following vendors and framework | Groq | ✅ | ✅ | | Perplexity | ✅ | ✅ | | Gemini | ✅ | ✅ | -| AWS Bedrock | ✅ | ❌ | +| AWS Bedrock | ✅ | ✅ | | Mistral | ❌ | ✅ | ### LLM Frameworks @@ -217,6 +218,7 @@ Langtrace automatically captures traces from the following vendors and framework | Ollama | ❌ | ✅ | | VertexAI | ✅ | ✅ | | Vercel AI | ✅ | ❌ | +| GuardrailsAI | ❌ | ✅ | ### Vector Databases | Database | TypeScript SDK | Python SDK | @@ -226,6 +228,7 @@ Langtrace automatically captures traces from the following vendors and framework | QDrant | ✅ | ✅ | | Weaviate | ✅ | ✅ | | PGVector | ✅ | ✅ (SQLAlchemy) | +| MongoDB | ❌ | ✅ | --- @@ -315,4 +318,4 @@ Absolutely! We love developers and welcome contributions. Get involved early by Programming Languages: Typescript and Python. Framework knowledge: NextJS. Database: Postgres and Prisma ORM. -Nice to haves: Opentelemetry instrumentation framework, experience with distributed tracing. +Nice to haves: Opentelemetry instrumentation framework, experience with distributed tracing. \ No newline at end of file diff --git a/app/(protected)/project/[project_id]/annotations/annotations.tsx b/app/(protected)/project/[project_id]/annotations/annotations.tsx index 4a0108fe..015a3d14 100644 --- a/app/(protected)/project/[project_id]/annotations/annotations.tsx +++ b/app/(protected)/project/[project_id]/annotations/annotations.tsx @@ -68,30 +68,25 @@ export default function Annotations({ email }: { email: string }) { const filters = { filters: [ { - operation: "AND", + key: "name", + operation: "EQUALS", + value: "gen_ai.content.completion", + type: "event", + }, + { + operation: "OR", filters: [ { - key: "name", + key: "status_code", operation: "EQUALS", - value: "gen_ai.content.completion", - type: "event", + value: "STATUS_CODE_OK", + type: "property", }, { - operation: "OR", - filters: [ - { - key: "status_code", - operation: "EQUALS", - value: "STATUS_CODE_OK", - type: "property", - }, - { - key: "status_code", - operation: "EQUALS", - value: "1", - type: "property", - }, - ], + key: "status_code", + operation: "EQUALS", + value: "1", + type: "property", }, ], }, diff --git a/components/shared/vendor-metadata.tsx b/components/shared/vendor-metadata.tsx index 45fef035..e84a9002 100644 --- a/components/shared/vendor-metadata.tsx +++ b/components/shared/vendor-metadata.tsx @@ -18,6 +18,10 @@ export function vendorBadgeColor(vendor: string) { return "bg-blue-500"; } + if (vendor.includes("mistral")) { + return "bg-orange-500"; + } + if (vendor.includes("anthropic")) { return "bg-yellow-500"; } @@ -86,6 +90,10 @@ export function vendorColor(vendor: string) { return "bg-blue-200"; } + if (vendor.includes("mistral")) { + return "bg-orange-200"; + } + if (vendor.includes("anthropic")) { return "bg-yellow-200"; } @@ -495,6 +503,22 @@ export function VendorLogo({ ); } + if (vendor.includes("mistral")) { + const color = vendorColor("mistral"); + return ( + Mistral Logo + ); + } + if (vendor.includes("mongodb")) { const color = vendorColor("mongodb"); return ( diff --git a/components/traces/trace_graph.tsx b/components/traces/trace_graph.tsx index 3d9f39c5..5bdebe57 100644 --- a/components/traces/trace_graph.tsx +++ b/components/traces/trace_graph.tsx @@ -126,6 +126,8 @@ const SpanItem: React.FC = ({ color = "bg-green-500"; else if (span.name.includes("guardrails") || serviceName.includes("guardrails")) color = "bg-green-500"; + else if (span.name.includes("mistral") || serviceName.includes("mistral")) + color = "bg-orange-500"; const fillColor = color.replace("bg-", "fill-"); const vendor = getVendorFromSpan(span as any); diff --git a/lib/utils.ts b/lib/utils.ts index 94677d5b..f0216bf9 100644 --- a/lib/utils.ts +++ b/lib/utils.ts @@ -835,6 +835,8 @@ export function getVendorFromSpan(span: Span): string { vendor = "mongodb"; } else if (span.name.includes("guard") || serviceName.includes("guard")) { vendor = "guardrails"; + } else if (span.name.includes("mistral") || serviceName.includes("mistral")) { + vendor = "mistral"; } return vendor; } diff --git a/public/mistral.png b/public/mistral.png new file mode 100644 index 00000000..ca9193e9 Binary files /dev/null and b/public/mistral.png differ