-
Notifications
You must be signed in to change notification settings - Fork 525
Span links stored as Vector instead of EvictedQueue #1313
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
Merged
jtescher
merged 23 commits into
open-telemetry:main
from
cijothomas:cijothomas/links-as-vec
Nov 7, 2023
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
05d8363
Change Links from EvictedQ to Vec in SDK
cijothomas 8942490
fix proto and stdtout
cijothomas f26dc2f
fix stackdriver and jaeger
cijothomas ef57358
dd and zipkin
cijothomas 47edc8f
changelog
cijothomas c085ffb
format fix
cijothomas 834767b
rename
cijothomas cbc6c0b
rename to avoid awkward calling styles
cijothomas 4889902
format
cijothomas fd765db
changelog nits and contrib fix
cijothomas d785184
fix link in bnehmakr
cijothomas 0289d5b
in
cijothomas 30c39e6
add non_exhaustive and impl deref
cijothomas 973310c
keep name as links instead of span_links
cijothomas b87f2bd
Merge branch 'main' into cijothomas/links-as-vec
cijothomas 2a535b6
fix rename and use owned links where needed
cijothomas 532abad
fmt
cijothomas 7ff3ecc
add into_iter for links
cijothomas cd7106e
fmt fix
cijothomas 739301a
leverage iter
cijothomas 0875e15
Merge branch 'main' into cijothomas/links-as-vec
cijothomas 64a63cb
changelog fix
cijothomas bd19a45
f
cijothomas 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
//! # Span Links | ||
|
||
use std::ops::Deref; | ||
|
||
use opentelemetry::trace::Link; | ||
/// Stores span links along with dropped count. | ||
#[derive(Clone, Debug, Default, PartialEq)] | ||
#[non_exhaustive] | ||
pub struct SpanLinks { | ||
/// The links stored as a vector. Could be empty if there are no links. | ||
pub links: Vec<Link>, | ||
/// The number of links dropped from the span. | ||
pub dropped_count: u32, | ||
} | ||
|
||
impl Deref for SpanLinks { | ||
type Target = [Link]; | ||
|
||
fn deref(&self) -> &Self::Target { | ||
&self.links | ||
} | ||
} | ||
|
||
impl IntoIterator for SpanLinks { | ||
type Item = Link; | ||
type IntoIter = std::vec::IntoIter<Self::Item>; | ||
|
||
fn into_iter(self) -> Self::IntoIter { | ||
self.links.into_iter() | ||
} | ||
} |
This file contains hidden or 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 hidden or 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 hidden or 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.
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.
Uh oh!
There was an error while loading. Please reload this page.