Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Support for Guardrails #333

Merged
merged 54 commits into from
Nov 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
5c47ced
Release 1.5.11 (#172)
karthikscale3 Jul 3, 2024
15f77fd
Release 1.5.12 (#174)
karthikscale3 Jul 3, 2024
f619e33
add download stats
yemiadej Jul 6, 2024
0996ac0
update support matrix
yemiadej Jul 6, 2024
74a8d8f
add SQLAlchemy
yemiadej Jul 8, 2024
532d528
add SQLAlchemy
yemiadej Jul 8, 2024
9caae7b
Merge pull request #176 from Scale3-Labs/yemi/s3en-2469-update-langtr…
yemiadej Jul 8, 2024
7160527
adding projectid to api call
dylanzuber-scale3 Jul 9, 2024
4bf95d2
Merge pull request #181 from Scale3-Labs/dylan/create-data-hot-fix
dylanzuber-scale3 Jul 9, 2024
0401c6c
changed string literal from output to expected output to make it clea…
dabiras3 Jul 12, 2024
5ea5aa6
Release 1.6.0 (#187)
karthikscale3 Jul 12, 2024
833c94f
Release 1.6.2 (#197)
karthikscale3 Jul 15, 2024
a62bd70
Release (#198)
karthikscale3 Jul 15, 2024
3b65f2d
Release 1.6.4 (#201)
karthikscale3 Jul 16, 2024
d14097c
Release 1.7.0 (#216)
karthikscale3 Jul 25, 2024
4a3b95d
Release 2.0.0 (#224)
karthikscale3 Aug 2, 2024
9c221d9
Release (#226)
karthikscale3 Aug 2, 2024
bd415a6
Release 2.0.2 (#228)
karthikscale3 Aug 3, 2024
9899ca5
Release 2.2.0 (#231)
karthikscale3 Aug 3, 2024
99ce36b
Release 3.0.0 (#243)
karthikscale3 Aug 14, 2024
d358327
Release 3.1.0 (#259)
karthikscale3 Sep 4, 2024
f66fc64
Release 3.0.2 (#262)
karthikscale3 Sep 5, 2024
4494373
Release 3.0.3 (#264)
karthikscale3 Sep 5, 2024
7a559de
Merge branch 'development' into release-3.0.4
darshit-s3 Sep 6, 2024
11fc863
Merge pull request #267 from Scale3-Labs/release-3.0.4
darshit-s3 Sep 7, 2024
2cf6242
Release 3.0.5 (#273)
karthikscale3 Sep 12, 2024
0c9bbfb
Release 3.0.6 (#276)
karthikscale3 Sep 12, 2024
e0fffbb
hot fix for live prompt bug (#278)
dylanzuber-scale3 Sep 19, 2024
aa8af77
Release 3.0.8 (#281)
karthikscale3 Sep 26, 2024
68075a0
Release 3.0.9 (#286)
karthikscale3 Sep 26, 2024
e95d88f
Release 3.0.10 (#290)
karthikscale3 Oct 4, 2024
291d502
Release 3.011 (#293)
karthikscale3 Oct 13, 2024
2fab20e
Docs: Typo Fix (#294)
Dnaynu Oct 13, 2024
6532732
Release 3.0.12 (#300)
karthikscale3 Oct 16, 2024
b6ec4ff
Release (#303)
karthikscale3 Oct 17, 2024
2ddf8da
Release 3.0.14 (#307)
karthikscale3 Oct 22, 2024
f79ebac
Update README.md (#308)
karthikscale3 Oct 22, 2024
de1be6c
Update README.md (#309)
karthikscale3 Oct 22, 2024
9bd0c9e
Update README.md (#312)
NishantRana07 Oct 28, 2024
9e82a02
Create contributing.md (#315)
heysagnik Oct 30, 2024
18cf0e4
merge
karthikscale3 Oct 30, 2024
0dd2027
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 Oct 30, 2024
b5608a5
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 Oct 31, 2024
21b45b5
remove api dialog
karthikscale3 Oct 31, 2024
f22fbdb
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 Nov 8, 2024
db57c2d
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 Nov 8, 2024
18eb9f5
Merge branch 'development' of github.com:Scale3-Labs/langtrace into d…
karthikscale3 Nov 12, 2024
b713527
fix
karthikscale3 Nov 12, 2024
920c634
fixes
karthikscale3 Nov 13, 2024
8c4ec90
fixes
karthikscale3 Nov 13, 2024
6415edf
fixes
karthikscale3 Nov 13, 2024
b09eedd
fixes
karthikscale3 Nov 13, 2024
8ccc358
add guardrails logo
karthikscale3 Nov 14, 2024
ecb591a
Merge branch 'development' of github.com:Scale3-Labs/langtrace into k…
karthikscale3 Nov 14, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 22 additions & 2 deletions components/shared/vendor-metadata.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,10 @@ export function vendorColor(vendor: string) {
return "bg-green-200";
}

if (vendor.includes("guardrails")) {
return "bg-green-200";
}

return "bg-gray-800";
}

Expand Down Expand Up @@ -497,8 +501,24 @@ export function VendorLogo({
<Image
alt="MongoDB Logo"
src="/mongodb.png"
width={50}
height={50}
width={30}
height={30}
className={cn(
`${color} p-[3px]`,
variant === "circular" ? "rounded-full" : "rounded-md"
)}
/>
);
}

if (vendor.includes("guardrails")) {
const color = vendorColor("guardrails");
return (
<Image
alt="Guardrails Logo"
src="/guardrails.png"
width={30}
height={30}
className={cn(
`${color} p-[3px]`,
variant === "circular" ? "rounded-full" : "rounded-md"
Expand Down
2 changes: 2 additions & 0 deletions components/traces/trace_graph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ const SpanItem: React.FC<SpanItemProps> = ({
color = "bg-blue-500";
else if (span.name.includes("mongodb") || serviceName.includes("mongodb"))
color = "bg-green-500";
else if (span.name.includes("guardrails") || serviceName.includes("guardrails"))
color = "bg-green-500";
const fillColor = color.replace("bg-", "fill-");

const vendor = getVendorFromSpan(span as any);
Expand Down
2 changes: 2 additions & 0 deletions lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -833,6 +833,8 @@ export function getVendorFromSpan(span: Span): string {
vendor = "litellm";
} else if (span.name.includes("mongodb") || serviceName.includes("mongodb")) {
vendor = "mongodb";
} else if (span.name.includes("guard") || serviceName.includes("guard")) {
vendor = "guardrails";
}
return vendor;
}
Expand Down
Binary file added public/guardrails.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.