File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ func CodeGenRequestFieldExtractor(fullMethod string, req interface{}) map[string
32
32
return nil
33
33
}
34
34
35
- // TagedRequestFiledExtractor is a function that relies on Go struct tags to export log fields from requests.
35
+ // TagBasedRequestFieldExtractor is a function that relies on Go struct tags to export log fields from requests.
36
36
// These are usualy coming from a protoc-plugin, such as Gogo protobuf.
37
37
//
38
38
// message Metadata {
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ func TestCodeGenRequestLogFieldExtractor_ManualIsDeclared(t *testing.T) {
20
20
require .EqualValues (t , valMap , map [string ]interface {}{"value" : "my_value" })
21
21
}
22
22
23
- func TestTagedRequestFiledExtractor_PingRequest (t * testing.T ) {
23
+ func TestTaggedRequestFiledExtractor_PingRequest (t * testing.T ) {
24
24
req := & pb_gogotestproto.PingRequest {
25
25
Ping : & pb_gogotestproto.Ping {
26
26
Id : & pb_gogotestproto.PingId {
@@ -37,7 +37,7 @@ func TestTagedRequestFiledExtractor_PingRequest(t *testing.T) {
37
37
assert .EqualValues (t , []string {"tagone" , "tagtwo" }, valMap ["meta_tags" ])
38
38
}
39
39
40
- func TestTagedRequestFiledExtractor_PongRequest (t * testing.T ) {
40
+ func TestTaggedRequestFiledExtractor_PongRequest (t * testing.T ) {
41
41
req := & pb_gogotestproto.PongRequest {
42
42
Pong : & pb_gogotestproto.Pong {
43
43
Id : "some_id" ,
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ func (w *wrappedStream) Context() context.Context {
56
56
57
57
func (w * wrappedStream ) RecvMsg (m interface {}) error {
58
58
err := w .ServerStream .RecvMsg (m )
59
- // We only do log fields extraction on the single-reqest of a server-side stream.
59
+ // We only do log fields extraction on the single-request of a server-side stream.
60
60
if ! w .info .IsClientStream || w .opts .requestFieldsFromInitial && w .initial {
61
61
w .initial = false
62
62
You can’t perform that action at this time.
0 commit comments