/**
     * {@inheritDoc}
     */
@Override
    public Context start(String spanName, Context context) {
        Objects.requireNonNull(spanName, "'spanName' cannot be null.");
        Objects.requireNonNull(context, "'context' cannot be null.");
        Builder spanBuilder = getSpanBuilder(spanName, context);
        Span span = spanBuilder.startSpan();
        if (span.isRecording()) {
            // TODO (savaity): replace with the AZ_TRACING_NAMESPACE_KEY
            String tracingNamespace = getOrDefault(context, "az.tracing.namespace", null, String.class);
            if (tracingNamespace != null) {
                span.setAttribute(AZ_NAMESPACE_KEY, AttributeValue.stringAttributeValue(tracingNamespace));
            }
        }
        return context.addData(PARENT_SPAN_KEY, span);
    }
@Override
public Context start(String spanName, Context context) {
Objects.requireNonNull(spanName, "'spanName' cannot be null.");
Objects.requireNonNull(context, "'context' cannot be null.");
Builder spanBuilder = getSpanBuilder(spanName, context);
Span span = spanBuilder.startSpan();
if (span.isRecording()) {
// TODO (savaity): replace with the AZ_TRACING_NAMESPACE_KEY
String tracingNamespace = getOrDefault(context, "az.tracing.namespace", null, String.class);
if (tracingNamespace != null) {
span.setAttribute(AZ_NAMESPACE_KEY, AttributeValue.stringAttributeValue(tracingNamespace));
}
}
return context.addData(PARENT_SPAN_KEY, span);
}
@Override
public Context start(String spanName, Context context) {
Objects.requireNonNull(spanName, "'spanName' cannot be null.");
Objects.requireNonNull(context, "'context' cannot be null.");
Builder spanBuilder = getSpanBuilder(spanName, context);
Span span = spanBuilder.startSpan();
if (span.isRecording()) {
// TODO (savaity): replace with the AZ_TRACING_NAMESPACE_KEY
String tracingNamespace = getOrDefault(context, "az.tracing.namespace", null, String.class);
if (tracingNamespace != null) {
span.setAttribute(AZ_NAMESPACE_KEY, AttributeValue.stringAttributeValue(tracingNamespace));
}
}
return context.addData(PARENT_SPAN_KEY, span);
}
@Override
public Context start(String spanName, Context context) {
Objects.requireNonNull(spanName, "'spanName' cannot be null.");
Objects.requireNonNull(context, "'context' cannot be null.");
Builder spanBuilder = getSpanBuilder(spanName, context);
Span span = spanBuilder.startSpan();
if (span.isRecording()) {
// TODO (savaity): replace with the AZ_TRACING_NAMESPACE_KEY
String tracingNamespace = getOrDefault(context, "az.tracing.namespace", null, String.class);
if (tracingNamespace != null) {
span.setAttribute(AZ_NAMESPACE_KEY, AttributeValue.stringAttributeValue(tracingNamespace));
}
}
return context.addData(PARENT_SPAN_KEY, span);
}