All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkus.amazon.lambda.xray.graal.LambdaSegmentContextSubstitution Maven / Gradle / Ivy

There is a newer version: 3.17.5
Show newest version
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