mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	fix: original url for uniqueness tracking (#9172)
This commit is contained in:
		
							parent
							
								
									91d318a495
								
							
						
					
					
						commit
						07d4693f6d
					
				@ -70,13 +70,13 @@ export function responseTimeMetrics(
 | 
				
			|||||||
            const connectionId =
 | 
					            const connectionId =
 | 
				
			||||||
                req.headers['x-unleash-connection-id'] ||
 | 
					                req.headers['x-unleash-connection-id'] ||
 | 
				
			||||||
                req.headers['unleash-instanceid'];
 | 
					                req.headers['unleash-instanceid'];
 | 
				
			||||||
            if (req.url.includes('/api/client') && connectionId) {
 | 
					            if (req.originalUrl.includes('/api/client') && connectionId) {
 | 
				
			||||||
                eventBus.emit(SDK_CONNECTION_ID_RECEIVED, {
 | 
					                eventBus.emit(SDK_CONNECTION_ID_RECEIVED, {
 | 
				
			||||||
                    connectionId,
 | 
					                    connectionId,
 | 
				
			||||||
                    type: 'backend',
 | 
					                    type: 'backend',
 | 
				
			||||||
                });
 | 
					                });
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            if (req.url.includes('/api/frontend') && connectionId) {
 | 
					            if (req.originalUrl.includes('/api/frontend') && connectionId) {
 | 
				
			||||||
                eventBus.emit(SDK_CONNECTION_ID_RECEIVED, {
 | 
					                eventBus.emit(SDK_CONNECTION_ID_RECEIVED, {
 | 
				
			||||||
                    connectionId,
 | 
					                    connectionId,
 | 
				
			||||||
                    type: 'frontend',
 | 
					                    type: 'frontend',
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user