You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The DocumentChangeKind.String() method returns a string representation
of the kind:
* DocumentAdded: "Added"
* DocumentModified: "Modified"
* DocumentRemoved: "Removed"
resolvesgoogleapis#11578
The DocumentChangeKind.String() method returns a string representation
of the kind:
* DocumentAdded: "Added"
* DocumentModified: "Modified"
* DocumentRemoved: "Removed"
resolvesgoogleapis#11578
Is your feature request related to a problem? Please describe.
I'm adding metrics to my database watch client. I want to know how many of each type of event we are seeing.
DocumentChangeKind is an integer so if we include that in our metric, we will see a number instead of a readable kind.
Describe the solution you'd like
Add a .String() method to
type DocumentChangeKind int
so that we can see the name of the event kind instead of a number.google-cloud-go/firestore/watch.go
Lines 40 to 49 in 90140b1
I'd like to make a PR for this, if it is approved. Here's the code I would add:
Describe alternatives you've considered
Maintaining my own would be annoying and problematic if Firestore adds more event kinds.
The text was updated successfully, but these errors were encountered: