use of io.opentelemetry.instrumentation.api.internal.SpanKey in project opentelemetry-java-instrumentation by open-telemetry.
the class AgentSpanTestingInstrumenter method startSpanWithAllKeys.
public static Context startSpanWithAllKeys(String name) {
Context context = start(name, SpanKind.INTERNAL);
Span span = Span.fromContext(context);
for (SpanKey spanKey : getSpanKeys()) {
context = spanKey.storeInContext(context, span);
}
return context;
}