public class AwsUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
AwsUtils.TriggeredBy |
| Modifier and Type | Field and Description |
|---|---|
static String |
COLD_START_KEY |
| Constructor and Description |
|---|
AwsUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
extractAwsAccountFromArn(String arn) |
static String |
extractAwsTraceRoot(String amznTraceId) |
static String |
extractAwsTraceSuffix(String amznTraceId) |
static String |
extractAwsTraceTransactionId(String amznTraceId) |
static AwsUtils.TriggeredBy |
extractTriggeredByFromEvent(Object event) |
static Span.READINESS |
getFunctionReadiness() |
static int |
parseJavaVersion(String version) |
public static final String COLD_START_KEY
public static String extractAwsAccountFromArn(String arn)
arn - an arn of the with the format arn:aws:lambda:{region}:{account}:function:{name}public static AwsUtils.TriggeredBy extractTriggeredByFromEvent(Object event)
event - an AWS eventpublic static String extractAwsTraceRoot(String amznTraceId)
amznTraceId - with the form `Root=1-2-3;Another=456;Bla=789`public static String extractAwsTraceTransactionId(String amznTraceId)
amznTraceId - with the form `Root=1-2-3;Another=456;Bla=789`public static Span.READINESS getFunctionReadiness()
public static int parseJavaVersion(String version)
Copyright © 2024 Lumigo. All rights reserved.