File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { AsyncLocalStorage } from 'async_hooks';
4
4
5
5
const DEFAULT_LOCALE = 'de-DE' ;
6
6
7
- export const playtypusUserIdStorage = new AsyncLocalStorage < string > ( ) ;
7
+ export const userIdStorage = new AsyncLocalStorage < string > ( ) ;
8
8
9
9
export function extractHeaderMiddleware (
10
10
req : BridgeRequest < any > ,
@@ -23,5 +23,5 @@ export function extractHeaderMiddleware(
23
23
locale,
24
24
} ;
25
25
26
- playtypusUserIdStorage . run ( userId , ( ) => next ( ) ) ;
26
+ userIdStorage . run ( userId , ( ) => next ( ) ) ;
27
27
}
Original file line number Diff line number Diff line change 1
1
import { context , trace } from '@opentelemetry/api' ;
2
2
3
3
import { anonymizeKey } from './anonymize-key' ;
4
- import { playtypusUserIdStorage } from '../middlewares' ;
4
+ import { userIdStorage } from '../middlewares' ;
5
5
6
6
function addMessageToTraceSpan (
7
7
method : 'log' | 'error' | 'warn' ,
@@ -85,10 +85,10 @@ const logger = (
85
85
}
86
86
87
87
const data : Record < string , unknown > = { ...args } ;
88
- const userId = playtypusUserIdStorage . getStore ( ) ;
88
+ const userId = userIdStorage . getStore ( ) ;
89
89
90
90
if ( userId ) {
91
- data . platypusUserId = userId ;
91
+ data . userId = userId ;
92
92
}
93
93
94
94
const anonymizedApiKey = apiKey ? anonymizeKey ( apiKey ) : undefined ;
You can’t perform that action at this time.
0 commit comments