Determine if the current invocation is part of a sampled X-Ray trace.
The AWS X-Ray Trace data is available in either the RIC async context or the _X_AMZN_TRACE_ID environment variable has this format:
Root=1-5759e988-bd862e3fe1be46a994272793;Parent=557abcec3ee5a047;Sampled=1,
Checks the async context first and if that returns undefined, falls back to the environment variable
Determine if the current invocation is part of a sampled X-Ray trace.
The AWS X-Ray Trace data is available in either the RIC async context or the
_X_AMZN_TRACE_IDenvironment variable has this format:Root=1-5759e988-bd862e3fe1be46a994272793;Parent=557abcec3ee5a047;Sampled=1,Checks the async context first and if that returns undefined, falls back to the environment variable