Skip to content
Merged
Changes from 1 commit
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { forwardRef } from 'react';
import { ArrowRight } from 'lucide-react';

import { useAgentexClient } from '@/components/providers';
import { useSafeSearchParams } from '@/hooks/use-safe-search-params';
import { cn } from '@/lib/utils';

type InvestigateTracesButtonProps = {
Expand All @@ -18,7 +19,16 @@ export const InvestigateTracesButton = forwardRef<
InvestigateTracesButtonProps
>(({ className, disabled = false, traceId, ...props }, ref) => {
const { sgpAppURL } = useAgentexClient();
const sgpTracesURL = `${sgpAppURL}/beta/monitor?trace_id=${traceId}&tt-trace-id=${traceId}`;
const { sgpAccountID } = useSafeSearchParams();

const params = new URLSearchParams({
trace_id: traceId,
'tt-trace-id': traceId,
});
if (sgpAccountID) {
params.set('account_id', sgpAccountID);
}
const sgpTracesURL = `${sgpAppURL}/beta/monitor?${params.toString()}`;

@lucyakoroleva lucyakoroleva Jun 16, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dont think we need beta (it just redirects to /monitor)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call, removed


if (!sgpAppURL) {
return null;
Expand Down
Loading