@aws/aws-distro-opentelemetry-node-autoinstrumentation
Version:
This package provides Amazon Web Services distribution of the OpenTelemetry Node Instrumentation, which allows for auto-instrumentation of NodeJS applications.
14 lines • 820 B
TypeScript
import { AttributeValue } from '@opentelemetry/api';
export declare class RegionalResourceArnParser {
/** Parses ARN with formats:
* arn:partition:service:region:account-id:resource-type/resource-id or
* arn:partition:service:region:account-id:resource-type:resource-id
*/
private static parseArn;
static getAccountId(arn: AttributeValue | undefined): string | undefined;
static getRegion(arn: AttributeValue | undefined): string | undefined;
static extractDynamoDbTableNameFromArn(arn: AttributeValue | undefined): string | undefined;
static extractKinesisStreamNameFromArn(arn: AttributeValue | undefined): string | undefined;
static extractResourceNameFromArn(arn: AttributeValue | undefined): string | undefined;
}
//# sourceMappingURL=regional-resource-arn-parser.d.ts.map