We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6062ea2 commit d3984fcCopy full SHA for d3984fc
opentelemetry-otlp/src/transform/traces.rs
@@ -56,9 +56,15 @@ impl From<Link> for Span_Link {
56
57
impl From<SpanData> for ResourceSpans {
58
fn from(source_span: SpanData) -> Self {
59
+ let resource_attributes: Attributes = source_span
60
+ .resource
61
+ .iter()
62
+ .map(|(k, v)| opentelemetry::KeyValue::new(k.clone(), v.clone()))
63
+ .collect::<Vec<_>>()
64
+ .into();
65
ResourceSpans {
66
resource: SingularPtrField::from(Some(Resource {
- attributes: Default::default(),
67
+ attributes: resource_attributes.0,
68
dropped_attributes_count: 0,
69
..Default::default()
70
})),
0 commit comments