001package io.prometheus.client.exemplars.tracer.common; 002 003public interface SpanContextSupplier { 004 005 /** 006 * @return the current trace id, or {@code null} if this call is not happening within a span context. 007 */ 008 String getTraceId(); 009 010 /** 011 * @return the current span id, or {@code null} if this call is not happening within a span context. 012 */ 013 String getSpanId(); 014}