Skip to content

Commit

Permalink
[feat]: support exempalr (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin6025 authored Sep 18, 2023
1 parent f2251a8 commit 3e848aa
Show file tree
Hide file tree
Showing 75 changed files with 2,117 additions and 969 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ require (
github.com/klauspost/cpuid/v2 v2.0.9 // indirect
github.com/leodido/go-urn v1.2.1 // indirect
github.com/lindb/client_go v0.0.2
github.com/lindb/common v0.0.2
github.com/lindb/common v0.0.4
github.com/mattn/go-isatty v0.0.18 // indirect
github.com/mattn/go-sqlite3 v1.14.15 // indirect
github.com/microsoft/go-mssqldb v0.17.0 // indirect
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ github.com/lib/pq v1.10.2 h1:AqzbZs4ZoCBp+GtejcpCpcxM3zlSMx29dXbUSeVtJb8=
github.com/lib/pq v1.10.2/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o=
github.com/lindb/client_go v0.0.2 h1:YoW/B7rSWLmHRn1yA3J837RyKBThZERXBKuDZ8/JB34=
github.com/lindb/client_go v0.0.2/go.mod h1:WoS2VzbWjgKzOm7VGDpO126dXbp8zASCjY1X5aDgMFY=
github.com/lindb/common v0.0.2 h1:cxxAnZcIpIoG9iFsH/Md1q6J75hL7XOMXt5j6ZYTepc=
github.com/lindb/common v0.0.2/go.mod h1:LdGzS89fh2gFpsYsfLNvr2mccm8eOb8A4oNjNvorTyw=
github.com/lindb/common v0.0.4 h1:Avv0CYSDmK3j3s/yBezlia4sT+jHEo+8GTnnY0/k/Bo=
github.com/lindb/common v0.0.4/go.mod h1:LdGzS89fh2gFpsYsfLNvr2mccm8eOb8A4oNjNvorTyw=
github.com/mattn/go-colorable v0.1.1/go.mod h1:FuOcm+DKB9mbwrcAfNl7/TZVBZ6rcnceauSikq3lYCQ=
github.com/mattn/go-colorable v0.1.6/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc=
github.com/mattn/go-isatty v0.0.5/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s=
Expand Down
3 changes: 2 additions & 1 deletion http/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import (
"github.com/gin-contrib/cors"
"github.com/gin-gonic/gin"
"github.com/lindb/common/pkg/http/middleware"
"github.com/lindb/common/pkg/logger"

"github.com/lindb/linsight/config"
)
Expand Down Expand Up @@ -71,7 +72,7 @@ func (s *Server) initialize() {
// Using middlewares on group.
s.engine.Use(middleware.Recovery())
// use AccessLog to log panic error with zap
s.engine.Use(middleware.AccessLog())
s.engine.Use(middleware.AccessLog(logger.GetLogger(logger.AccessLogModule, "HTTP")))
s.engine.Use(cors.Default())
// handle static resource
handleStatic(s.engine)
Expand Down
2 changes: 1 addition & 1 deletion web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
content="Web site created using create-react-app"
/>
<link rel="icon" href="/src/images/favicon.ico">
<link rel="stylesheet" type="text/css" href="//at.alicdn.com/t/c/font_3914684_ja4h9pjnq7g.css">
<link rel="stylesheet" type="text/css" href="//at.alicdn.com/t/c/font_3914684_ubtk35oxjxg.css">
<title>Linsight</title>
</head>
<body>
Expand Down
3 changes: 2 additions & 1 deletion web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@tanstack/react-query": "^4.16.1",
"axios": "^1.3.4",
"chart.js": "^4.0.1",
"chartjs-plugin-annotation": "^2.1.2",
"chartjs-plugin-annotation": "^3.0.1",
"chokidar": "^3.5.3",
"classnames": "^2.3.2",
"cytoscape": "^3.23.0",
Expand All @@ -40,6 +40,7 @@
"moment-timezone": "^0.5.43",
"momentjs": "^2.0.0",
"qs": "^6.11.0",
"re-resizable": "^6.9.11",
"react": "^18.2.0",
"react-beautiful-dnd": "^13.1.1",
"react-dom": "^18.2.0",
Expand Down
4 changes: 2 additions & 2 deletions web/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { FeatureRepositoryInst, Component as NavItem } from '@src/types';
import { Navigate, Route, Routes } from 'react-router-dom';
import Explore from './features/explore/Explore';
import User from './features/user/User';
import TraceView from './features/trace/TraceView';
import TracePage from './features/trace/TracePage';

const Content: React.FC = React.memo(() => {
const { boot } = useContext(PlatformContext);
Expand Down Expand Up @@ -56,7 +56,7 @@ const Content: React.FC = React.memo(() => {
<Route path="/user/*" element={<User />} errorElement={<ErrorPage />} />
{/* put /explore route to fix if routes is empty infinite loop*/}
<Route path="/explore" element={<Explore />} errorElement={<ErrorPage />} />
<Route path="/trace" element={<TraceView />} errorElement={<ErrorPage />} />
<Route path="/trace" element={<TracePage />} errorElement={<ErrorPage />} />
<Route path="/*" element={<Navigate to={boot.home || '/explore'} />} errorElement={<ErrorPage />} />
</Routes>
);
Expand Down
133 changes: 0 additions & 133 deletions web/src/components/SpanView.tsx

This file was deleted.

29 changes: 0 additions & 29 deletions web/src/components/StatsList.tsx

This file was deleted.

95 changes: 0 additions & 95 deletions web/src/components/TraceFlame.tsx

This file was deleted.

7 changes: 0 additions & 7 deletions web/src/components/TraceSummary.tsx

This file was deleted.

Loading

0 comments on commit 3e848aa

Please sign in to comment.