Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bobgroup-go-utils
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Bob Public Utils
bobgroup-go-utils
Merge requests
!4
Add opensearch client to write API log events
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Add opensearch client to write API log events
5-opensearch-for-apilogs
into
main
Overview
0
Commits
3
Pipelines
0
Changes
15
Merged
Pieter van Staden
requested to merge
5-opensearch-for-apilogs
into
main
3 years ago
Overview
0
Commits
3
Pipelines
0
Changes
15
Related to
#5 (closed)
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
30e91871
3 commits,
3 years ago
15 files
+
848
−
7
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
15
api/lambda.go
+
2
−
0
View file @ 30e91871
Edit in single-file editor
Open in Web IDE
Show full file
@@ -99,6 +99,8 @@ func (api Api) Handler(baseCtx context.Context, apiGatewayProxyReq events.APIGat
res
.
Headers
[
api
.
requestIDHeaderKey
]
=
ctx
.
RequestID
()
}
if
err
:=
api
.
Service
.
WriteValues
(
ctx
.
StartTime
(),
time
.
Now
(),
ctx
.
RequestID
(),
map
[
string
]
interface
{}{
"direction"
:
"incoming"
,
"type"
:
"api"
,
"request_id"
:
ctx
.
RequestID
(),
"request"
:
ctx
.
Request
(),
"response"
:
res
},
Loading