io.quarkus.amazon.lambda.xray.graal.LambdaSegmentContextSubstitution Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-amazon-lambda-xray Show documentation
Show all versions of quarkus-amazon-lambda-xray Show documentation
Allow X-Ray to run with Quarkus Lambda support
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