Skip to content

Commit 55d8a25

Browse files
committed
Dropped app*, added tags
Signed-off-by: Vishal Rana <[email protected]>
1 parent 66ddf50 commit 55d8a25

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

cube.go

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ type (
4444
CubeRequest struct {
4545
ID string `json:"id"`
4646
Time time.Time `json:"time"`
47-
AppID string `json:"app_id"`
48-
AppName string `json:"app_name"`
4947
Host string `json:"host"`
5048
Path string `json:"path"`
5149
Method string `json:"method"`
@@ -58,9 +56,10 @@ type (
5856
UserAgent string `json:"user_agent"`
5957
Active int64 `json:"active"`
6058
// TODO: CPU, Uptime, Memory
61-
Language string `json:"language"`
62-
Error string `json:"error"`
63-
StackTrace string `json:"stack_trace"`
59+
Tags []string `json:"tags"`
60+
Language string `json:"language"`
61+
Error string `json:"error"`
62+
StackTrace string `json:"stack_trace"`
6463
}
6564

6665
// CubeError defines the cube error.
@@ -117,8 +116,6 @@ func (c *Cube) Start(r *http.Request, w http.ResponseWriter) (request *CubeReque
117116
request = &CubeRequest{
118117
ID: RequestID(r, w),
119118
Time: time.Now(),
120-
AppID: c.AppID,
121-
AppName: c.AppName,
122119
Host: r.Host,
123120
Path: r.URL.Path,
124121
Method: r.Method,

0 commit comments

Comments
 (0)