-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support unique credential cookie names (#560)
Co-authored-by: Quinn Hanam <qhanam@gmail.com>
- Loading branch information
1 parent
c2da86e
commit a440016
Showing
25 changed files
with
707 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
src/events/* | ||
src/events/* | ||
**/src/loader-npm-rum.ts | ||
**/src/loader-npm-rum-2.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
smoke/smoke-test-application-NPM-CJS/src/loader-npm-rum-2.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// @ts-nocheck | ||
const { AwsRum, AwsRumConfig } = require('aws-rum-web'); | ||
|
||
let awsRum; | ||
|
||
try { | ||
const config: AwsRumConfig = { | ||
sessionSampleRate: 1, | ||
identityPoolId: $IDENTITY_POOL_2, | ||
endpoint: $ENDPOINT, | ||
telemetries: ['performance', 'errors', 'http', 'interaction'], | ||
allowCookies: true, | ||
enableXRay: true, | ||
cookieAttributes: { | ||
unique: true | ||
} | ||
}; | ||
|
||
const APPLICATION_ID: string = $MONITOR_ID_2; | ||
const APPLICATION_VERSION: string = '1.0.0'; | ||
const APPLICATION_REGION: string = $REGION; | ||
|
||
awsRum: AwsRum = new AwsRum( | ||
APPLICATION_ID, | ||
APPLICATION_VERSION, | ||
APPLICATION_REGION, | ||
config | ||
); | ||
} catch (error) { | ||
console.log(error); | ||
throw error; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
smoke/smoke-test-application-NPM-ES/src/loader-npm-rum-2.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// @ts-nocheck | ||
import { AwsRum, AwsRumConfig } from 'aws-rum-web'; | ||
|
||
let awsRum; | ||
|
||
try { | ||
const config: AwsRumConfig = { | ||
sessionSampleRate: 1, | ||
identityPoolId: $IDENTITY_POOL_2, | ||
endpoint: $ENDPOINT, | ||
telemetries: ['performance', 'errors', 'http', 'interaction'], | ||
allowCookies: true, | ||
enableXRay: true, | ||
cookieAttributes: { | ||
unique: true | ||
} | ||
}; | ||
|
||
const APPLICATION_ID: string = $MONITOR_ID_2; | ||
const APPLICATION_VERSION: string = '1.0.0'; | ||
const APPLICATION_REGION: string = $REGION; | ||
|
||
awsRum: AwsRum = new AwsRum( | ||
APPLICATION_ID, | ||
APPLICATION_VERSION, | ||
APPLICATION_REGION, | ||
config | ||
); | ||
} catch (error) { | ||
console.log(error); | ||
throw error; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.