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

Reuse tags memory #286

Merged
merged 1 commit into from
Oct 26, 2018
Merged

Reuse tags memory #286

merged 1 commit into from
Oct 26, 2018

Conversation

axw
Copy link
Member

@axw axw commented Oct 26, 2018

Update model.Context.Tags and model.SpanContext.Tags
to use the model.StringMap type, which is a slice of
key/value pairs. Storing tags is now just an append,
with no de-duplication (the server will de-duplicate
when unmarshalling). When resetting transaction and
span objects, we'll now reuse these tags slices.

Closes #283

Update model.Context.TAgs and model.SpanContext.Tags
to use the model.StringMap type, which is a slice of
key/value pairs. Storing tags is now just an append,
with no de-duplication (the server will de-duplicate
when unmarshalling). When resetting transaction and
span objects, we'll now reuse these tags slices.
@codecov-io
Copy link

Codecov Report

Merging #286 into master will increase coverage by 0.09%.
The diff coverage is 78.94%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #286      +/-   ##
==========================================
+ Coverage   80.47%   80.56%   +0.09%     
==========================================
  Files          97       96       -1     
  Lines        5613     5589      -24     
==========================================
- Hits         4517     4503      -14     
+ Misses        837      828       -9     
+ Partials      259      258       -1
Impacted Files Coverage Δ
context.go 92.23% <100%> (ø) ⬆️
spancontext.go 100% <100%> (+7.14%) ⬆️
model/marshal_fastjson.go 72.68% <33.33%> (-0.99%) ⬇️
tracer.go 84.23% <0%> (+0.45%) ⬆️

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 14b9d87...612c6a3. Read the comment docs.

@axw axw merged commit 945d952 into elastic:master Oct 26, 2018
@axw axw deleted the reuse-tags-memory branch October 26, 2018 10:41
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