"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
class SqsMessageHelper {
    static isSampled(message) {
        const { attributes } = message; // extract attributes from message
        if (!('AWSTraceHeader' in attributes)) {
            return false;
        }
        return attributes['AWSTraceHeader'].includes('Sampled=1');
    }
}
exports.default = SqsMessageHelper;
