You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Currently the OTLP metrics are Vector logs (not metrics).
107
110
self.metrics_descriptor.encode(event, buffer)
108
111
}else{
109
112
Err(format!(
110
-
"Log event does not contain OTLP top-level fields ({RESOURCE_LOGS_ROOT_FIELD} or {RESOURCE_METRICS_ROOT_FIELD})",
113
+
"Log event does not contain OTLP top-level fields ({RESOURCE_LOGS_ROOT_FIELD}/{RESOURCE_LOGS_JSON_FIELD} or {RESOURCE_METRICS_ROOT_FIELD}/{RESOURCE_METRICS_JSON_FIELD})",
111
114
)
112
115
.into())
113
116
}
114
117
}
115
118
Event::Trace(trace) => {
116
-
if trace.contains(RESOURCE_SPANS_ROOT_FIELD){
119
+
if trace.contains(RESOURCE_SPANS_ROOT_FIELD)|| trace.contains(RESOURCE_SPANS_JSON_FIELD){
117
120
self.traces_descriptor.encode(event, buffer)
118
121
}else{
119
122
Err(format!(
120
-
"Trace event does not contain OTLP top-level field ({RESOURCE_SPANS_ROOT_FIELD})",
123
+
"Trace event does not contain OTLP top-level field ({RESOURCE_SPANS_ROOT_FIELD}/{RESOURCE_SPANS_JSON_FIELD})",
0 commit comments