-
Notifications
You must be signed in to change notification settings - Fork 502
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
Preallocate storage for log attributes on stack #1965
Merged
cijothomas
merged 75 commits into
open-telemetry:main
from
lalitb:preallocate-attribute-mem
Aug 23, 2024
Merged
Changes from 49 commits
Commits
Show all changes
75 commits
Select commit
Hold shift + click to select a range
7fee0fc
inital commit
lalitb 06aee01
more
lalitb ea7b2f8
more changes
lalitb bfb1297
changes
lalitb fcb0ed8
fix build
lalitb 40b2b5f
changes
lalitb da8b8de
revert defaults
lalitb 5019086
optionally create vec
lalitb 17d1628
add intial capacity for vector
lalitb 781c3ed
create vec of certain capacity
lalitb b9a90c2
changes
lalitb 2bfde32
Merge branch 'main' into preallocate-attribute-mem
lalitb a95e681
cont..
lalitb 9dc8a45
changes..
lalitb df66985
box enums
lalitb 8f62fa3
make growable add inline
lalitb fb7a44c
update bench
lalitb 8611bc0
Merge branch 'main' into preallocate-attribute-mem
lalitb 2fabca1
remove experimenal metadata as default
lalitb e52d002
changes.
lalitb 92d8689
Merge branch 'main' into preallocate-attribute-mem
lalitb 877996e
revert back to option
lalitb 8a86be3
Merge branch 'preallocate-attribute-mem' of github.com:lalitb/opentel…
lalitb 283816b
revert the checkedin proto
lalitb 77e1ae1
back
lalitb ad42e0b
trying again to revert unwanted otel-proto update
lalitb e99a957
another revert try
lalitb c97a948
ci errors
lalitb 1adec8c
Merge branch 'main' into preallocate-attribute-mem
TommyCpp 660a6d8
fix tests
lalitb 9e09502
Merge branch 'preallocate-attribute-mem' of github.com:lalitb/opentel…
lalitb 8e0bfaa
Update opentelemetry-sdk/src/logs/growable_array.rs
lalitb 9d44e26
Update Cargo.toml
lalitb eed39a1
Update Cargo.toml
lalitb 9275a11
review comments
lalitb 8c28428
Merge branch 'main' into preallocate-attribute-mem
lalitb 0f6b699
lint issues
lalitb 1a2ec1f
comments
lalitb adc48ca
Update opentelemetry-sdk/src/logs/growable_array.rs
lalitb 0a4715a
revert back box
lalitb b619409
Merge branch 'main' into preallocate-attribute-mem
lalitb 6136678
change var names
lalitb 1083e17
Merge remote-tracking branch 'refs/remotes/origin/preallocate-attribu…
lalitb 7575f4b
Merge branch 'main' into preallocate-attribute-mem
TommyCpp cb0d05d
move growable array outside logs
lalitb 196d2c7
Merge branch 'main' into preallocate-attribute-mem
lalitb c9816f0
review comments
lalitb 2a149f9
use get_or_insert_with
lalitb 3caf8b4
clioppy warning
lalitb 0a876bf
remove growablearray from test
lalitb a0fc1f3
Merge branch 'main' into preallocate-attribute-mem
lalitb 6c468e0
Update lib.rs
lalitb 6f58225
Update lib.rs
lalitb b7ca124
Update lib.rs
lalitb 846ca89
Update Cargo.toml
lalitb ee57967
merge conflict
lalitb f9dbdf0
Merge branch 'main' into preallocate-attribute-mem
cijothomas 8911c39
Update record.rs
lalitb d500402
Merge branch 'main' into preallocate-attribute-mem
lalitb bbe5689
modify attributes_contain
lalitb 4117af4
Merge branch 'main' into preallocate-attribute-mem
lalitb b256195
Update opentelemetry-sdk/src/growable_array.rs
lalitb 40a97ac
fix
lalitb 085f001
Update opentelemetry-sdk/src/growable_array.rs
lalitb cb200a5
fix attributes
lalitb da5a5ab
Merge branch 'preallocate-attribute-mem' of github.com:lalitb/opentel…
lalitb f3b63fb
fix
lalitb 4fa708b
Merge branch 'main' into preallocate-attribute-mem
lalitb e95d550
merge conflict
lalitb 2e066fc
Merge branch 'main' into preallocate-attribute-mem
lalitb 93b4775
fix lint
lalitb e697b0d
update results
lalitb 9e8871e
Merge branch 'main' into preallocate-attribute-mem
lalitb e516abe
comment
lalitb 90dff08
Merge branch 'main' into preallocate-attribute-mem
lalitb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,6 @@ pprof = { version = "0.13", features = ["flamegraph", "criterion"] } | |
experimental_metadata_attributes = ["dep:tracing-log"] | ||
logs_level_enabled = ["opentelemetry/logs_level_enabled"] | ||
|
||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: this was unintended? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think so, but it seems better now with a single newline. |
||
[[bench]] | ||
name = "logs" | ||
harness = false | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are these related to this PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these were the related to lint error with box'ing change. I didn't revert this while revering box'ing, as both are similar, and
default
is more explicit.