io.quarkus.amazon.lambda.xray.graal.LambdaSegmentContextSubstitution Maven / Gradle / Ivy
package io.quarkus.amazon.lambda.xray.graal;
import com.amazonaws.xray.contexts.LambdaSegmentContext;
import com.amazonaws.xray.entities.TraceHeader;
import com.oracle.svm.core.annotate.Substitute;
import com.oracle.svm.core.annotate.TargetClass;
import io.quarkus.amazon.lambda.runtime.TraceId;
@TargetClass(LambdaSegmentContext.class)
public final class LambdaSegmentContextSubstitution {
@Substitute
private static TraceHeader getTraceHeaderFromEnvironment() {
return TraceHeader.fromString(TraceId.getTraceId());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy