Skip to content

Commit d85a99a

Browse files
committed
Add test print statements
1 parent af8d8f0 commit d85a99a

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

e2e/aws-lambda/.aws-sam/build.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This file is auto generated by SAM CLI build command
22

3-
[function_build_definitions.02e7f5fb-ae39-4d32-a885-1919db9b363a]
4-
codeuri = "/Users/vkorolik/work/observability/observability-sdk/e2e/aws-lambda"
3+
[function_build_definitions.b38f7991-91a5-4af8-808e-8156cada9855]
4+
codeuri = "/Users/spenceramarantides/code/launchdarkly/observability/observability-sdk/e2e/aws-lambda"
55
runtime = "nodejs20.x"
66
architecture = "x86_64"
77
handler = "src/handlers/api.handler"

e2e/react-router/src/ldclient.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@ const sessionReplaySettings: ConstructorParameters<typeof SessionReplay>[0] = {
2121
privacySetting: 'none',
2222
serviceName: 'ryan-test',
2323
backendUrl: 'http://localhost:8082/public',
24+
sessionKey: 'task123',
2425
}
2526

2627
export const client = init(
27-
'548f6741c1efad40031b18ae',
28+
'586c33cf1cd88133f9a7804f',
2829
{ key: 'unknown' },
2930
{
3031
// Not including plugins at all would be equivalent to the current LaunchDarkly SDK.

sdk/highlight-run/src/index.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,13 @@ const H: HighlightPublicInterface = {
124124
const previousSession = getPreviousSessionData()
125125
let sessionSecureID = GenerateSecureID()
126126

127+
console.log('CHECKING SESSION KEY', options?.sessionKey)
127128
if (options?.sessionKey) {
128-
sessionSecureID = uuidv5(options.sessionKey, `observability-${projectID}`)
129+
console.log('SESSION KEY FOUND', options.sessionKey)
130+
sessionSecureID = uuidv5(
131+
options.sessionKey,
132+
`observability-${projectID}`,
133+
)
129134
} else if (previousSession?.sessionSecureID) {
130135
sessionSecureID = previousSession.sessionSecureID
131136
}

0 commit comments

Comments
 (0)