lib/opentelemetry/exporter/jaeger/encoder.rb in opentelemetry-exporter-jaeger-0.7.0 vs lib/opentelemetry/exporter/jaeger/encoder.rb in opentelemetry-exporter-jaeger-0.8.0
- old
+ new
@@ -109,18 +109,18 @@
def encoded_references(links)
links&.map do |link|
Thrift::SpanRef.new(
'refType' => Thrift::SpanRefType::CHILD_OF,
- 'traceIdLow' => int64(link.context.trace_id[16, 16]),
- 'traceIdHigh' => int64(link.context.trace_id[0, 16]),
- 'spanId' => int64(link.context.span_id)
+ 'traceIdLow' => int64(link.span_context.trace_id[16, 16]),
+ 'traceIdHigh' => int64(link.span_context.trace_id[0, 16]),
+ 'spanId' => int64(link.span_context.span_id)
)
end
end
def encoded_status(status)
- return EMPTY_ARRAY unless status&.canonical_code == OpenTelemetry::Trace::Status::ERROR
+ return EMPTY_ARRAY unless status&.code == OpenTelemetry::Trace::Status::ERROR
Array(
Thrift::Tag.new(
KEY => 'error',
TYPE => Thrift::TagType::BOOL,