Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Record all HTTP request/response headers #280

Merged
merged 1 commit into from Oct 26, 2018
Merged

Conversation

axw
Copy link
Member

@axw axw commented Oct 26, 2018

Record all HTTP request/response headers, with the
exception of "Cookie", which we explode and store
separately.

All headers pass through the field sanitiser. If a
header is included multiple times, we store the
values as an array of strings. Otherwise, we store
just a single string value.

The default value for ELASTIC_APM_SANITIZE_FIELD_NAMES
has been updated to include "authorization" and "set-cookie".

Closes #277

Record all HTTP request/response headers, with the
exception of "Cookie", which we explode and store
separately.

All headers pass through the field sanitiser. If a
header is included multiple times, we store the
values as an array of strings. Otherwise, we store
just a single string value.
@codecov-io
Copy link

Codecov Report

Merging #280 into master will decrease coverage by 0.1%.
The diff coverage is 72.15%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #280      +/-   ##
==========================================
- Coverage   80.56%   80.45%   -0.11%     
==========================================
  Files          97       97              
  Lines        5644     5665      +21     
==========================================
+ Hits         4547     4558      +11     
- Misses        830      844      +14     
+ Partials      267      263       -4
Impacted Files Coverage Δ
env.go 70.66% <ø> (ø) ⬆️
modelwriter.go 94.18% <100%> (+0.21%) ⬆️
sanitizer.go 90.47% <100%> (+0.47%) ⬆️
model/marshal_fastjson.go 73.72% <100%> (-0.47%) ⬇️
context.go 92.66% <100%> (+0.58%) ⬆️
model/marshal.go 76.01% <51.11%> (-3.2%) ⬇️
tracer.go 84.68% <0%> (+1.35%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 57729c3...5dabc6a. Read the comment docs.

@axw axw merged commit 359bdbf into elastic:master Oct 26, 2018
@axw axw deleted the record-all-headers branch October 26, 2018 06:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants