File tree Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -84,11 +84,11 @@ func listEvents(cmd *cobra.Command, args []string) {
84
84
return
85
85
}
86
86
defer traceeClient .CloseConnection ()
87
+
87
88
response , err := traceeClient .GetEventDefinitions (context .Background (), & pb.GetEventDefinitionsRequest {EventNames : args })
88
89
if err != nil {
89
90
cmd .PrintErrln ("Error getting event definitions: " , err )
90
91
return
91
-
92
92
}
93
93
format , err := formatter .NewFormatter (eventFormatFlag , cmd )
94
94
if err != nil {
@@ -117,6 +117,7 @@ func getEventDescriptions(cmd *cobra.Command, args []string) {
117
117
return
118
118
}
119
119
defer traceeClient .CloseConnection ()
120
+
120
121
response , err := traceeClient .GetEventDefinitions (context .Background (), & pb.GetEventDefinitionsRequest {EventNames : args })
121
122
if err != nil {
122
123
cmd .PrintErrln ("Error getting event definitions: " , err )
Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ func displayMetrics(cmd *cobra.Command, _ []string) {
77
77
return
78
78
}
79
79
defer traceeClient .CloseConnection ()
80
+
80
81
response , err := traceeClient .GetMetrics (context .Background (), & pb.GetMetricsRequest {})
81
82
if err != nil {
82
83
cmd .PrintErrln ("Error getting metrics: " , err )
@@ -100,6 +101,7 @@ func displayVersion(cmd *cobra.Command, _ []string) {
100
101
return
101
102
}
102
103
defer traceeClient .CloseConnection ()
104
+
103
105
response , err := traceeClient .GetVersion (context .Background (), & pb.GetVersionRequest {})
104
106
105
107
if err != nil {
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ func streamEvents(cmd *cobra.Command, args []string) {
36
36
return
37
37
}
38
38
defer traceeClient .CloseConnection ()
39
+
39
40
//request to stream events
40
41
req := & pb.StreamEventsRequest {Policies : args }
41
42
stream , err := traceeClient .StreamEvents (cmd .Context (), req )
You can’t perform that action at this time.
0 commit comments