Skip to content

Commit

Permalink
add TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviazhang0809 committed Mar 14, 2018
1 parent c003657 commit ff27b7e
Show file tree
Hide file tree
Showing 37 changed files with 38 additions and 1 deletion.
3 changes: 2 additions & 1 deletion codegen/template_bundle/template_files.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions codegen/templates/endpoint.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ func (h *{{$handlerName}}) HandleRequest(
zfields = append(zfields, zap.String("{{$k}}", headerValue))
}
{{- end}}
// TODO: potential perf issue, use zap.Object lazy serialization
req.Logger.Debug("Endpoint request to downstream", zfields...)

workflow := {{$workflow}}{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ func (h *BarArgNotStructHandler) HandleRequest(
}

zfields = append(zfields, zap.String("body", requestBody.String()))
// TODO: potential perf issue, use zap.Object lazy serialization
req.Logger.Debug("Endpoint request to downstream", zfields...)

workflow := BarArgNotStructEndpoint{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ func (h *BarArgWithHeadersHandler) HandleRequest(
if headerOk {
zfields = append(zfields, zap.String("X-Uuid", headerValue))
}
// TODO: potential perf issue, use zap.Object lazy serialization
req.Logger.Debug("Endpoint request to downstream", zfields...)

workflow := BarArgWithHeadersEndpoint{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ func (h *BarArgWithManyQueryParamsHandler) HandleRequest(
}

zfields = append(zfields, zap.String("body", requestBody.String()))
// TODO: potential perf issue, use zap.Object lazy serialization
req.Logger.Debug("Endpoint request to downstream", zfields...)

workflow := BarArgWithManyQueryParamsEndpoint{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ func (h *BarArgWithNestedQueryParamsHandler) HandleRequest(
}

zfields = append(zfields, zap.String("body", requestBody.String()))
// TODO: potential perf issue, use zap.Object lazy serialization
req.Logger.Debug("Endpoint request to downstream", zfields...)

workflow := BarArgWithNestedQueryParamsEndpoint{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ func (h *BarArgWithParamsHandler) HandleRequest(
}

zfields = append(zfields, zap.String("body", requestBody.String()))
// TODO: potential perf issue, use zap.Object lazy serialization
req.Logger.Debug("Endpoint request to downstream", zfields...)

workflow := BarArgWithParamsEndpoint{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ func (h *BarArgWithQueryHeaderHandler) HandleRequest(
}

zfields = append(zfields, zap.String("body", requestBody.String()))
// TODO: potential perf issue, use zap.Object lazy serialization
req.Logger.Debug("Endpoint request to downstream", zfields...)

workflow := BarArgWithQueryHeaderEndpoint{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ func (h *BarArgWithQueryParamsHandler) HandleRequest(
if headerOk {
zfields = append(zfields, zap.String("X-Uuid", headerValue))
}
// TODO: potential perf issue, use zap.Object lazy serialization
req.Logger.Debug("Endpoint request to downstream", zfields...)

workflow := BarArgWithQueryParamsEndpoint{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ func (h *BarHelloWorldHandler) HandleRequest(
zap.String("endpoint", h.endpoint.EndpointName),
}

// TODO: potential perf issue, use zap.Object lazy serialization
req.Logger.Debug("Endpoint request to downstream", zfields...)

workflow := BarHelloWorldEndpoint{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ func (h *BarMissingArgHandler) HandleRequest(
zap.String("endpoint", h.endpoint.EndpointName),
}

// TODO: potential perf issue, use zap.Object lazy serialization
req.Logger.Debug("Endpoint request to downstream", zfields...)

workflow := BarMissingArgEndpoint{
Expand Down
1 change: 1 addition & 0 deletions codegen/test_data/endpoints/bar_bar_method_norequest.gogen
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ func (h *BarNoRequestHandler) HandleRequest(
zap.String("endpoint", h.endpoint.EndpointName),
}

// TODO: potential perf issue, use zap.Object lazy serialization
req.Logger.Debug("Endpoint request to downstream", zfields...)

workflow := BarNoRequestEndpoint{
Expand Down
1 change: 1 addition & 0 deletions codegen/test_data/endpoints/bar_bar_method_normal.gogen
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ func (h *BarNormalHandler) HandleRequest(
}

zfields = append(zfields, zap.String("body", requestBody.String()))
// TODO: potential perf issue, use zap.Object lazy serialization
req.Logger.Debug("Endpoint request to downstream", zfields...)

workflow := BarNormalEndpoint{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ func (h *BarTooManyArgsHandler) HandleRequest(
if headerOk {
zfields = append(zfields, zap.String("X-Uuid", headerValue))
}
// TODO: potential perf issue, use zap.Object lazy serialization
req.Logger.Debug("Endpoint request to downstream", zfields...)

workflow := BarTooManyArgsEndpoint{
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ff27b7e

Please sign in to comment.