New propto fields

This commit is contained in:
Zach Musgrave
2023-11-29 14:40:09 -08:00
parent 1a0499f67b
commit eef66f7fa5
2 changed files with 5 additions and 1 deletions

View File

@@ -30,6 +30,8 @@ import (
"github.com/dolthub/dolt/go/libraries/utils/iohelp"
)
var Application = eventsapi.AppID_APP_DOLT
// Emitter is an interface used for processing a batch of events
type Emitter interface {
// LogEvents takes a batch of events and processes them
@@ -110,7 +112,7 @@ func (em *GrpcEmitter) LogEvents(version string, evts []*eventsapi.ClientEvent)
Version: version,
Platform: plat,
Events: evts,
App: eventsapi.AppID_APP_DOLT,
App: Application,
}
_, err := em.client.LogEvents(ctx, &req)

View File

@@ -92,6 +92,7 @@ enum ClientEventType {
STASH_POP = 60;
SHOW = 61;
PROFILE = 62;
SQL_SERVER_HEARTBEAT = 63;
}
enum MetricID {
@@ -110,4 +111,5 @@ enum AttributeID {
enum AppID {
APP_ID_UNSPECIFIED = 0;
APP_DOLT = 1;
APP_DOLTGRES = 2;
}