File tree Expand file tree Collapse file tree
main/java/io/opentelemetry/contrib/aws/resource
test/java/io/opentelemetry/contrib/aws/resource Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2828/** A factory for a {@link Resource} which provides information about the AWS Lambda function. */
2929public final class LambdaResource {
3030
31- private static final String ACCOUNT_ID_SYMLINK_PATH = "/tmp/.otel-account-id" ;
31+ private static final String ACCOUNT_ID_SYMLINK_PATH = "/tmp/.otel-aws- account-id" ;
3232
3333 private static final Resource INSTANCE = buildResource ();
3434
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ void shouldAddAllAttributes() {
7272
7373 @ Test
7474 void shouldReadCloudAccountIdFromSymlink (@ TempDir Path tempDir ) throws Exception {
75- Path symlink = tempDir .resolve (".otel-account-id" );
75+ Path symlink = tempDir .resolve (".otel-aws- account-id" );
7676 Files .createSymbolicLink (symlink , Paths .get ("123456789012" ));
7777
7878 Resource resource =
@@ -90,7 +90,7 @@ void shouldReadCloudAccountIdFromSymlink(@TempDir Path tempDir) throws Exception
9090
9191 @ Test
9292 void shouldSkipCloudAccountIdWhenSymlinkMissing (@ TempDir Path tempDir ) {
93- Path symlink = tempDir .resolve (".otel-account-id" );
93+ Path symlink = tempDir .resolve (".otel-aws- account-id" );
9494
9595 Resource resource =
9696 LambdaResource .buildResource (
@@ -106,7 +106,7 @@ void shouldSkipCloudAccountIdWhenSymlinkMissing(@TempDir Path tempDir) {
106106
107107 @ Test
108108 void shouldPreserveLeadingZerosInAccountId (@ TempDir Path tempDir ) throws Exception {
109- Path symlink = tempDir .resolve (".otel-account-id" );
109+ Path symlink = tempDir .resolve (".otel-aws- account-id" );
110110 Files .createSymbolicLink (symlink , Paths .get ("012345678901" ));
111111
112112 Resource resource =
You can’t perform that action at this time.
0 commit comments