Skip to content

Commit 7810e9d

Browse files
committed
Rename symlink to .otel-aws-account-id
1 parent 429ed6a commit 7810e9d

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

aws-resources/src/main/java/io/opentelemetry/contrib/aws/resource/LambdaResource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
/** A factory for a {@link Resource} which provides information about the AWS Lambda function. */
2929
public 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

aws-resources/src/test/java/io/opentelemetry/contrib/aws/resource/LambdaResourceTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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 =

0 commit comments

Comments
 (0)