यह पृष्ठ प्रदर्शन निगरानी के साथ आरंभ करने या प्रदर्शन निगरानी सुविधाओं और टूलिंग का उपयोग करने के लिए समस्या निवारण युक्तियाँ प्रदान करता है।
समस्या निवारण के लिए पहले जाँच करता है
आगे की समस्या निवारण से पहले किसी भी व्यक्ति के लिए निम्नलिखित दो जांच सामान्य सर्वोत्तम अभ्यास अनुशंसित हैं।
1. प्रदर्शन घटनाओं के लिए लॉग संदेशों की जाँच करें
यह सुनिश्चित करने के लिए अपने लॉग संदेशों की जाँच करें कि प्रदर्शन मॉनिटरिंग SDK प्रदर्शन ईवेंट कैप्चर कर रहा है।
डिबग लॉगिंग सक्षम करें, निम्नानुसार:
- Xcode (न्यूनतम v13.3.1) में, उत्पाद > योजना > योजना संपादित करें चुनें।
- बाएं मेनू से चलाएँ चुनें, फिर तर्क टैब चुनें।
- लॉन्च सेक्शन में दिए गए तर्कों में
-FIRDebugEnabled
जोड़ें।
किसी भी त्रुटि संदेश के लिए अपने लॉग संदेशों की जाँच करें।
प्रदर्शन मॉनिटरिंग अपने लॉग संदेशों को
Firebase/Performance
के साथ टैग करता है ताकि आप अपने लॉग संदेशों को फ़िल्टर कर सकें।निम्न प्रकार के लॉग की जाँच करें जो इंगित करते हैं कि प्रदर्शन मॉनिटरिंग प्रदर्शन इवेंट लॉग कर रहा है:
-
Logging trace metric: TRACE_NAME , FIREBASE_PERFORMANCE_CONSOLE_URL
-
Logging network request trace: URL
-
Firebase कंसोल में अपना डेटा देखने के लिए URL पर क्लिक करें। डैशबोर्ड में डेटा को अपडेट होने में कुछ समय लग सकता है।
यदि आपका ऐप प्रदर्शन ईवेंट लॉग नहीं कर रहा है, तो समस्या निवारण युक्तियों की समीक्षा करें।
2. फायरबेस स्थिति डैशबोर्ड की जाँच करें
फायरबेस या प्रदर्शन निगरानी के लिए ज्ञात आउटेज होने की स्थिति में फायरबेस स्थिति डैशबोर्ड की जाँच करें।
प्रदर्शन निगरानी के साथ आरंभ करना
यदि आप प्रदर्शन मॉनिटरिंग ( iOS+ | Android | Web ) के साथ आरंभ कर रहे हैं, तो निम्न समस्या निवारण युक्तियाँ उन समस्याओं में मदद कर सकती हैं जिनमें Firebase को SDK का पता लगाना या Firebase कंसोल में आपका पहला प्रदर्शन डेटा प्रदर्शित करना शामिल है।
फायरबेस आपके ऐप से इवेंट की जानकारी (जैसे ऐप इंटरैक्शन) प्राप्त होने पर यह पता लगा सकता है कि आपने प्रदर्शन मॉनिटरिंग एसडीके को अपने ऐप में सफलतापूर्वक जोड़ा है या नहीं। आमतौर पर आपके ऐप को शुरू करने के 10 मिनट के भीतर, फायरबेस कंसोल का प्रदर्शन डैशबोर्ड "एसडीके डिटेक्टेड" संदेश प्रदर्शित करता है। फिर, 30 मिनट के भीतर, डैशबोर्ड आरंभिक संसाधित डेटा प्रदर्शित करता है।
यदि आपको अपने ऐप में SDK का नवीनतम संस्करण जोड़े हुए 10 मिनट से अधिक समय हो गया है, और आपको अभी भी कोई परिवर्तन दिखाई नहीं दे रहा है, तो यह सुनिश्चित करने के लिए अपने लॉग संदेशों की जाँच करें कि प्रदर्शन मॉनिटरिंग ईवेंट लॉग कर रहा है। विलंबित एसडीके पहचान संदेश की समस्या निवारण के लिए नीचे वर्णित उपयुक्त समस्या निवारण चरणों का प्रयास करें।
यदि आप अभी भी स्थानीय रूप से विकास कर रहे हैं, तो डेटा संग्रह के लिए अधिक ईवेंट बनाने का प्रयास करें:
एक सिम्युलेटर या टेस्ट डिवाइस का उपयोग करके अपने ऐप को विकसित करना जारी रखें।
अपने ऐप को पृष्ठभूमि और अग्रभूमि के बीच कई बार स्विच करके, स्क्रीन पर नेविगेट करके और/या नेटवर्क अनुरोधों को ट्रिगर करके अपने ऐप के साथ इंटरैक्ट करके ईवेंट बनाएं।
सुनिश्चित करें कि आपकी फायरबेस कॉन्फ़िगरेशन फ़ाइल (
Google-Service-Info.plist
) आपके ऐप में सही तरीके से जोड़ी गई है और आपने फ़ाइल को संशोधित नहीं किया है। विशेष रूप से, निम्नलिखित की जाँच करें:कॉन्फ़िगरेशन फ़ाइल नाम अतिरिक्त वर्णों के साथ नहीं जोड़ा गया है, जैसे
(2)
.कॉन्फ़िगरेशन फ़ाइल आपके एक्सकोड प्रोजेक्ट की जड़ में है और सही लक्ष्य में जोड़ा गया है।
कॉन्फ़िगरेशन फ़ाइल में सूचीबद्ध Firebase Apple ऐप आईडी (
GOOGLE_APP_ID
) आपके ऐप के लिए सही है। अपनी प्रोजेक्ट सेटिंग के अपने ऐप्लिकेशन कार्ड में अपना Firebase ऐप्लिकेशन आईडी ढूंढें.
यदि आपके ऐप में कॉन्फ़िगरेशन फ़ाइल में कुछ भी गलत लगता है, तो निम्न का प्रयास करें:
आपके ऐप में वर्तमान में मौजूद कॉन्फ़िगरेशन फ़ाइल को हटाएं।
नई कॉन्फ़िगरेशन फ़ाइल डाउनलोड करने और इसे अपने Apple ऐप में जोड़ने के लिए इन निर्देशों का पालन करें।
यदि SDK ईवेंट लॉग कर रहा है और ऐसा लगता है कि सब कुछ सही ढंग से सेट अप किया गया है, लेकिन आपको अभी भी SDK पहचान संदेश या संसाधित डेटा (2 घंटे के बाद) दिखाई नहीं दे रहा है, तो Firebase सहायता से संपर्क करें ।
सुनिश्चित करें कि आपकी
Info.plist
फ़ाइल में निम्न में से किसी भी झंडे के माध्यम से प्रदर्शन मॉनिटरिंग SDK अक्षम नहीं है :-
firebase_performance_collection_enabled
-
firebase_performance_collection_deactivated
-
सुनिश्चित करें कि प्रदर्शन निगरानी रनटाइम ( स्विफ्ट | ओब्ज-सी ) पर अक्षम नहीं है।
अगर आपको अपने ऐप में अक्षम कुछ भी नहीं मिल रहा है, तो Firebase सहायता से संपर्क करें ।
प्रदर्शन मॉनिटरिंग प्रदर्शन ईवेंट डेटा को प्रदर्शन डैशबोर्ड में प्रदर्शित करने से पहले संसाधित करता है।
यदि "एसडीके पता चला" संदेश दिखाई देने के 24 घंटे से अधिक हो गए हैं, और आप अभी भी डेटा नहीं देख रहे हैं, तो ज्ञात आउटेज होने की स्थिति में फायरबेस स्थिति डैशबोर्ड की जांच करें। यदि कोई आउटेज नहीं है, तो Firebase सहायता से संपर्क करें ।
सामान्य समस्या निवारण
यदि आपने सफलतापूर्वक SDK जोड़ लिया है और अपने ऐप में प्रदर्शन मॉनिटरिंग का उपयोग कर रहे हैं, तो निम्न समस्या निवारण युक्तियाँ उन सामान्य समस्याओं में मदद कर सकती हैं जिनमें प्रदर्शन मॉनिटरिंग सुविधाएँ और टूलिंग शामिल हैं।
यदि आप प्रदर्शन ईवेंट के लिए लॉग संदेश नहीं देख रहे हैं, तो निम्न समस्या निवारण चरण आज़माएं:
सुनिश्चित करें कि आपकी
Info.plist
फ़ाइल में निम्न में से किसी भी झंडे के माध्यम से प्रदर्शन मॉनिटरिंग SDK अक्षम नहीं है :-
firebase_performance_collection_enabled
-
firebase_performance_collection_deactivated
-
सुनिश्चित करें कि प्रदर्शन निगरानी रनटाइम ( स्विफ्ट | ओब्ज-सी ) पर अक्षम नहीं है।
अगर आपको अपने ऐप में अक्षम कुछ भी नहीं मिल रहा है, तो Firebase सहायता से संपर्क करें ।
यदि आप स्क्रीन रेंडरिंग ट्रेस के लिए डेटा खो रहे हैं, तो निम्न समस्या निवारण चरणों का प्रयास करें:
क्या आप स्वचालित रूप से एकत्रित ट्रेस के लिए प्रदर्शन डेटा देख रहे हैं लेकिन कस्टम कोड ट्रेस के लिए नहीं ? निम्न समस्या निवारण चरणों का प्रयास करें:
ट्रेस एपीआई के माध्यम से निर्मित कस्टम कोड ट्रेस के सेटअप की जांच करें, विशेष रूप से निम्नलिखित:
- कस्टम कोड ट्रेस और कस्टम मेट्रिक्स के लिए नाम निम्नलिखित आवश्यकताओं को पूरा करना चाहिए: कोई अग्रणी या अनुगामी व्हाइटस्पेस नहीं, कोई अग्रणी अंडरस्कोर (
_
) वर्ण नहीं है, और अधिकतम लंबाई 32 वर्ण है। - सभी निशान शुरू और बंद होने चाहिए। कोई भी ट्रेस जो शुरू नहीं हुआ है, रोका नहीं गया है, या शुरू होने से पहले बंद कर दिया गया है, लॉग नहीं किया जाएगा।
- कस्टम कोड ट्रेस और कस्टम मेट्रिक्स के लिए नाम निम्नलिखित आवश्यकताओं को पूरा करना चाहिए: कोई अग्रणी या अनुगामी व्हाइटस्पेस नहीं, कोई अग्रणी अंडरस्कोर (
यह सुनिश्चित करने के लिए अपने लॉग संदेशों की जाँच करें कि प्रदर्शन मॉनिटरिंग अपेक्षित कस्टम कोड ट्रेस लॉग कर रहा है।
यदि प्रदर्शन निगरानी ईवेंट लॉग कर रही है, लेकिन 24 घंटों के बाद कोई डेटा प्रदर्शित नहीं होता है, तो Firebase सहायता से संपर्क करें ।
यदि आपके पास नेटवर्क अनुरोध डेटा नहीं है, तो निम्न समस्या निवारण चरण आज़माएं:
नेटवर्क लाइब्रेरी असंगति के लिए जाँच करें। प्रदर्शन निगरानी स्वचालित रूप से उन नेटवर्क अनुरोधों के लिए मेट्रिक्स एकत्र करती है जो निम्न नेटवर्किंग लाइब्रेरी का उपयोग करते हैं:
- स्विफ्ट के लिए: URLSession और URLConnection
- ऑब्जेक्टिव-सी के लिए: NSURLSession और NSURLConnection
ध्यान दें कि आप नेटवर्क अनुरोधों के लिए कस्टम मॉनिटरिंग जोड़ सकते हैं।
निम्नलिखित से अवगत रहें:
आपके कोड के व्यवहार और आपके कोड द्वारा उपयोग की जाने वाली नेटवर्किंग लाइब्रेरी के आधार पर, प्रदर्शन निगरानी केवल पूर्ण किए गए नेटवर्क अनुरोधों पर रिपोर्ट कर सकती है। इसका मतलब है कि खुले छोड़े गए HTTP/S कनेक्शन की रिपोर्ट नहीं की जा सकती है।
प्रदर्शन निगरानी अमान्य
Content-Type
शीर्षलेख वाले नेटवर्क अनुरोधों पर रिपोर्ट नहीं करती है। हालांकि,Content-Type
शीर्षलेखों के बिना नेटवर्क अनुरोध अभी भी स्वीकार किए जाएंगे।
इस बारे में अधिक जानें कि URL पैटर्न के अंतर्गत प्रदर्शन मॉनिटरिंग नेटवर्क अनुरोध डेटा को कैसे एकत्र करता है ।
आप कस्टम यूआरएल पैटर्न भी आजमा सकते हैं!
सामान्य प्रश्न
हमने हाल ही में जारी किए गए अलर्ट के अनुवर्ती के रूप में शीर्ष मुद्दों को हाल के अलर्ट से बदल दिया है, जो आपके द्वारा सेट की गई सीमा पार होने पर स्वचालित रूप से आपको सूचित करते हैं। मुद्दों को अब बहिष्कृत कर दिया गया है और अलर्ट द्वारा प्रतिस्थापित कर दिया गया है।
प्रदर्शन कार्ड के शीर्ष पर एप्लिकेशन चयनकर्ता हालिया अलर्ट के अंतर्गत अलर्ट प्रविष्टियों को फ़िल्टर करता है। चुने गए ऐप (ऐप्स) के लिए केवल तीन सबसे हालिया अलर्ट प्रदर्शित किए जाते हैं।
अलर्ट के बारे में अधिक जानने के लिए, प्रदर्शन समस्याओं के लिए अलर्ट सेट करें देखें।
प्रदर्शन मॉनिटरिंग मेट्रिक्स के लिए अलर्ट का समर्थन करता है जो परिभाषित थ्रेसहोल्ड से अधिक है। प्रदर्शन मेट्रिक्स के लिए इन कॉन्फ़िगर करने योग्य थ्रेसहोल्ड के साथ भ्रम से बचने के लिए, हमने मुद्दों के लिए थ्रेसहोल्ड को कॉन्फ़िगर करने की क्षमता को हटा दिया है।
हमने विवरण और मीट्रिक पृष्ठों को एक नए पुन: डिज़ाइन किए गए, केंद्रीकृत उपयोगकर्ता इंटरफ़ेस (UI) से बदल दिया है ताकि आप समस्याओं का निवारण कैसे कर सकें। यह नया समस्या निवारण UI वही मूल कार्यक्षमता प्रदान करता है जो विवरण और मीट्रिक प्रदान करता है। समस्या निवारण के बारे में अधिक जानने के लिए, किसी विशिष्ट ट्रेस के लिए अधिक डेटा देखें देखें ।
प्रदर्शन निगरानी आपके ऐप के उपयोगकर्ता उपकरणों से प्रदर्शन डेटा एकत्र करती है। यदि आपके एप्लिकेशन में कई उपयोगकर्ता हैं या यदि ऐप बड़ी मात्रा में प्रदर्शन गतिविधि उत्पन्न करता है, तो प्रदर्शन निगरानी संसाधित घटनाओं की संख्या को कम करने के लिए डेटा संग्रह को उपकरणों के सबसेट तक सीमित कर सकती है। ये सीमाएँ इतनी अधिक हैं कि कम घटनाओं के साथ भी, मीट्रिक मान अभी भी आपके उपयोगकर्ता के ऐप अनुभव के प्रतिनिधि हैं।
हमारे द्वारा एकत्र किए जाने वाले डेटा की मात्रा को प्रबंधित करने के लिए, प्रदर्शन निगरानी निम्नलिखित नमूनाकरण विकल्पों का उपयोग करती है:
ऑन-डिवाइस रेट लिमिटिंग : किसी डिवाइस को ट्रेस के अचानक फटने से रोकने के लिए, हम डिवाइस से भेजे गए कोड और नेटवर्क अनुरोध ट्रेस की संख्या को हर 10 मिनट में 300 ईवेंट तक सीमित करते हैं। यह दृष्टिकोण डिवाइस को लूप्ड इंस्ट्रूमेंटेशन से बचाता है जो बड़ी मात्रा में प्रदर्शन डेटा भेज सकता है, और यह एकल डिवाइस को प्रदर्शन माप को तिरछा करने से रोकता है।
डायनामिक सैंपलिंग : प्रदर्शन मॉनिटरिंग कोड ट्रेस के लिए लगभग 100M ईवेंट और सभी ऐप उपयोगकर्ताओं में प्रति ऐप नेटवर्क अनुरोध ट्रेस के लिए 100M एकत्र करता है। यह निर्धारित करने के लिए कि क्या एक यादृच्छिक उपकरण को निशानों को कैप्चर करना चाहिए और भेजना चाहिए, एक गतिशील नमूनाकरण दर उपकरणों पर (Firebase Remote Config का उपयोग करके) प्राप्त की जाती है। नमूनाकरण के लिए चयनित नहीं किया गया डिवाइस कोई ईवेंट नहीं भेजता है। डायनामिक सैंपलिंग दर ऐप-विशिष्ट है और यह सुनिश्चित करने के लिए समायोजित होती है कि एकत्र किए गए डेटा की समग्र मात्रा सीमा से नीचे रहती है।
उपयोगकर्ता सत्र उपयोगकर्ता के डिवाइस से अतिरिक्त, विस्तृत डेटा भेजते हैं, डेटा को कैप्चर करने और भेजने के लिए अधिक संसाधनों की आवश्यकता होती है। उपयोगकर्ता सत्रों के प्रभाव को कम करने के लिए, प्रदर्शन निगरानी भी सत्रों की संख्या को सीमित कर सकती है।
सर्वर-साइड रेट लिमिटिंग : यह सुनिश्चित करने के लिए कि ऐप्स सैंपलिंग सीमा से अधिक न हों, परफॉर्मेंस मॉनिटरिंग डिवाइसों से प्राप्त कुछ घटनाओं को छोड़ने के लिए सर्वर-साइड सैंपलिंग का उपयोग कर सकता है। हालांकि इस प्रकार की लिमिटिंग हमारे मेट्रिक्स की प्रभावशीलता को नहीं बदलती है, लेकिन इससे पैटर्न में मामूली बदलाव हो सकते हैं, जिनमें निम्न शामिल हैं:
- ट्रेस की संख्या उस संख्या से भिन्न हो सकती है जितनी बार कोड का एक टुकड़ा निष्पादित किया गया था।
- निशान जो कोड में बारीकी से जुड़े हुए हैं, उनमें से प्रत्येक में अलग-अलग नमूने हो सकते हैं।
हमने समस्या टैब को अलर्ट की शुरुआत से बदल दिया है, जो आपके द्वारा निर्धारित सीमा पार होने पर स्वचालित रूप से आपको सूचित करता है। थ्रेसहोल्ड की स्थिति निर्धारित करने के लिए अब आपको मैन्युअल रूप से फायरबेस कंसोल की जांच करने की आवश्यकता नहीं है। अलर्ट के बारे में जानने के लिए, प्रदर्शन समस्याओं के लिए अलर्ट सेट करें देखें।
हमने फायरबेस कंसोल के प्रदर्शन निगरानी अनुभाग को फिर से डिज़ाइन किया है ताकि डैशबोर्ड टैब आपके प्रमुख मीट्रिक और आपके सभी निशान एक ही स्थान पर प्रदर्शित करे। रीडिज़ाइन के हिस्से के रूप में, हमने ऑन डिवाइस और नेटवर्क पेजों को हटा दिया।
डैशबोर्ड टैब के निचले भाग में स्थित निशान तालिका में वही सभी जानकारी होती है जो ऑन डिवाइस और नेटवर्क टैब प्रदर्शित करते हैं, लेकिन कुछ अतिरिक्त सुविधाओं के साथ, जिसमें किसी विशिष्ट मीट्रिक के लिए प्रतिशत परिवर्तन द्वारा आपके निशान को सॉर्ट करने की क्षमता भी शामिल है। किसी विशिष्ट ट्रेस के लिए सभी मीट्रिक और डेटा देखने के लिए, ट्रेस तालिका में ट्रेस नाम पर क्लिक करें।
ट्रेस तालिका के निम्नलिखित उपटैब में अपने निशान देखें:
- नेटवर्क अनुरोध ट्रेस (आउट-ऑफ़-द-बॉक्स और कस्टम दोनों) — नेटवर्क अनुरोध उपटैब
- कस्टम कोड ट्रेस — कस्टम ट्रेस उपटैब
- ऐप स्टार्ट, ऐप-इन-फोरग्राउंड, ऐप-इन-बैकग्राउंड ट्रेस - कस्टम ट्रेस उपटैब
- स्क्रीन रेंडरिंग ट्रेस - स्क्रीन रेंडरिंग उपटैब
- पेज लोड ट्रेस — पेज लोड उपटैब
ट्रेस तालिका और मेट्रिक्स और डेटा देखने के बारे में विवरण के लिए, कंसोल ओवरव्यू पेज ( iOS+ | Android | वेब ) पर जाएं।
धीमी रेंडरिंग फ़्रेम और फ़्रीज़ किए गए फ़्रेम की गणना 60Hz की अनुमानित डिवाइस ताज़ा दर के साथ की जाती है। यदि डिवाइस की ताज़ा दर 60Hz से कम है, तो प्रत्येक फ़्रेम का रेंडरिंग समय धीमा होगा क्योंकि प्रति सेकंड कम फ़्रेम रेंडर किए जाते हैं। धीमे रेंडरिंग समय के कारण अधिक धीमे या जमे हुए फ़्रेम रिपोर्ट किए जा सकते हैं क्योंकि अधिक फ़्रेम धीमे रेंडर किए जाएंगे या फ़्रीज़ हो जाएंगे। हालाँकि, यदि डिवाइस की ताज़ा दर 60Hz से अधिक है, तो प्रत्येक फ़्रेम में तेज़ रेंडरिंग समय होगा। इससे कम धीमी या स्थिर फ़्रेम की रिपोर्ट की जा सकती है। प्रदर्शन निगरानी एसडीके में यह एक मौजूदा सीमा है।
अगर आपने Firebase परफ़ॉर्मेंस मॉनिटरिंग के लिए BigQuery इंटीग्रेशन चालू किया है, तो आपका डेटा दिन खत्म होने के 12 से 24 घंटे बाद (पैसिफ़िक समय) BigQuery में एक्सपोर्ट किया जाएगा.
उदाहरण के लिए, 19 अप्रैल का डेटा BigQuery में 20 अप्रैल को दोपहर 12:00 बजे से आधी रात के बीच उपलब्ध होगा (सभी तिथियां और समय प्रशांत समय हैं)।
Near real-time data processing and display
Firebase Performance Monitoring processes collected performance data as it comes in, which results in near real-time data display in the Firebase console. Processed data displays in the console within a few minutes of its collection, hence the term "near real-time".
To take advantage of near real-time data processing, make sure your app uses a real-time compatible SDK version .
To take advantage of near real-time data processing, you only need to make sure that your app uses a Performance Monitoring SDK version that's compatible with real-time data processing.
These are the real-time compatible SDK versions:
- iOS — v7.3.0 or later
- tvOS — v8.9.0 or later
- Android — v19.0.10 or later (or Firebase Android BoM v26.1.0 or later)
- Web — v7.14.0 or later
Note that we always recommend using the latest version of SDK, but any version listed above will enable Performance Monitoring to process your data in near real time.
These are the SDK versions compatible with real-time data processing:
- iOS — v7.3.0 or later
- tvOS — v8.9.0 or later
- Android — v19.0.10 or later (or Firebase Android BoM v26.1.0 or later)
- Web — v7.14.0 or later
Note that we always recommend using the latest version of SDK, but any version listed above will enable Performance Monitoring to process your data in near real time.
If your app doesn't use a real-time compatible SDK version, you will still see all your app's performance data in the Firebase console. However, the display of performance data will be delayed by roughly 36 hours from the time of its collection.
Yes! Regardless of which SDK version an app instance uses, you'll see performance data from all your users.
However, if you're looking at recent data (less than roughly 36 hours old), then the displayed data is from users of app instances using a real-time compatible SDK version. The non-recent data, though, includes performance data from all versions of your app.
Contacting Firebase Support
If you reach out to Firebase Support , always include your Firebase App ID. Find your Firebase App ID in the Your apps card of your Project settings .
,This page provides troubleshooting tips for getting started with Performance Monitoring or using Performance Monitoring features and tooling.
First checks for troubleshooting
The following two checks are general best practices recommended for anyone before further troubleshooting.
1. Check log messages for performance events
Check your log messages to be sure that the Performance Monitoring SDK is capturing performance events.
Enable debug logging, as follows:
- In Xcode (minimum v13.3.1), select Product > Scheme > Edit scheme .
- Select Run from the left menu, then select the Arguments tab.
- In the Arguments Passed on Launch section, add
-FIRDebugEnabled
.
Check your log messages for any error messages.
Performance Monitoring tags its log messages with
Firebase/Performance
so that you can filter your log messages.Check for the following types of logs which indicate that Performance Monitoring is logging performance events:
-
Logging trace metric: TRACE_NAME , FIREBASE_PERFORMANCE_CONSOLE_URL
-
Logging network request trace: URL
-
Click on the URL to view your data in the Firebase console. It may take a few moments for the data to update in the dashboard.
If your app isn't logging performance events, review the troubleshooting tips .
2. Check the Firebase Status Dashboard
Check the Firebase Status Dashboard in case there is a known outage for Firebase or for Performance Monitoring.
Getting started with Performance Monitoring
If you're getting started with Performance Monitoring ( iOS+ | Android | Web ), the following troubleshooting tips can help with issues that involve Firebase detecting the SDK or displaying your first performance data in the Firebase console.
Firebase can detect if you've successfully added the Performance Monitoring SDK to your app when it receives event information (like app interactions) from your app. Usually within 10 minutes of starting your app, the Performance dashboard of the Firebase console displays an "SDK detected" message. Then, within 30 minutes, the dashboard displays the initial processed data.
If it's been more than 10 minutes since you added the latest version of SDK to your app, and you're still not seeing any change, check your log messages to make sure that Performance Monitoring is logging events. Try the appropriate troubleshooting steps as described below to troubleshoot a delayed SDK detection message.
If you're still developing locally, try generating more events for data collection:
Continue to develop your app using a simulator or test device.
Generate events by switching your app between background and foreground several times, interacting with your app by navigating across screens, and/or triggering network requests.
Make sure that your Firebase configuration file (
Google-Service-Info.plist
) is correctly added to your app and that you haven't modified the file. Specifically, check the following:The config file name isn't appended with additional characters, like
(2)
.The config file is in the root of your XCode project and added to the correct targets.
The Firebase Apple App ID (
GOOGLE_APP_ID
) listed in the config file is correct for your app. Find your Firebase App ID in the Your apps card of your Project settings .
If anything seems wrong with the config file in your app, try the following:
Delete the config file that you currently have in your app.
Follow these instructions to download a new config file and add it to your Apple app.
If the SDK is logging events and everything seems to be set up correctly, but you're still not seeing the SDK detection message or processed data (after 2 hours), contact Firebase Support .
Make sure that the Performance Monitoring SDK is not disabled through either of the following flags in your
Info.plist
file:-
firebase_performance_collection_enabled
-
firebase_performance_collection_deactivated
-
Make sure that Performance Monitoring is not disabled at runtime ( Swift | Obj-C ).
If you can't find anything that's disabled in your app, contact Firebase Support .
Performance Monitoring processes performance event data before displaying it in the Performance dashboard .
If it's been more than 24 hours since the "SDK detected" message appeared , and you're still not seeing data, then check the Firebase Status Dashboard in case there is a known outage. If there is no outage, contact Firebase Support .
General troubleshooting
If you've successfully added the SDK and are using Performance Monitoring in your app, the following troubleshooting tips can help with general issues that involve Performance Monitoring features and tooling.
If you're not seeing log messages for performance events , try the following troubleshooting steps:
Make sure that the Performance Monitoring SDK is not disabled through either of the following flags in your
Info.plist
file:-
firebase_performance_collection_enabled
-
firebase_performance_collection_deactivated
-
Make sure that Performance Monitoring is not disabled at runtime ( Swift | Obj-C ).
If you can't find anything that's disabled in your app, contact Firebase Support .
If you're missing data for screen rendering traces, try the following troubleshooting steps:
Are you seeing performance data for automatically collected traces but not for custom code traces ? Try the following troubleshooting steps:
Check the setup of custom code traces instrumented via the Trace API , especially the following:
- Names for custom code traces and custom metrics must meet the following requirements: no leading or trailing whitespace, no leading underscore (
_
) character, and max length is 32 characters. - All traces must be started and stopped. Any trace that is not started, not stopped, or stopped before started will not be logged.
- Names for custom code traces and custom metrics must meet the following requirements: no leading or trailing whitespace, no leading underscore (
Check your log messages to make sure that Performance Monitoring is logging expected custom code traces.
If Performance Monitoring is logging events, but no data displays after 24 hours, contact Firebase Support .
If you're missing network request data, try the following troubleshooting steps:
Check for network library incompatibility. Performance Monitoring automatically collects metrics for network requests that use the following networking libraries:
- For Swift: URLSession and URLConnection
- For Objective-C: NSURLSession and NSURLConnection
Note that you can add custom monitoring for network requests .
Be aware of the following:
Depending on the behavior of your code and networking libraries used by your code, Performance Monitoring might only report on network requests that are completed. This means that HTTP/S connections that are left open might not be reported.
Performance Monitoring does not report on network requests with invalid
Content-Type
headers. However, network requests without theContent-Type
headers will still be accepted.
Learn more about how Performance Monitoring aggregates network request data under URL patterns.
You can also try out custom URL patterns !
FAQ
We replaced Top Issues with Recent Alerts as a follow-up to our recent introduction of alerts, which automatically notify you when the thresholds you set are crossed. Issues are now deprecated and replaced by alerts.
The apps selector at the top of the Performance card filters the alert entries under Recent Alerts . Only the three most recent alerts for the app(s) selected are displayed.
To learn more about alerts, see Set up alerts for performance issues .
Performance Monitoring supports alerts for metrics that exceed defined thresholds. To avoid confusion with these configurable thresholds for performance metrics, we removed the ability to configure thresholds for issues .
We replaced the Details and Metrics pages with a newly redesigned, centralized user interface (UI) to improve how you troubleshoot issues. This new troubleshooting UI offers the same core functionality that Details and Metrics offered. To learn more about troubleshooting, see View more data for a specific trace .
Performance Monitoring collects performance data from your app's user devices. If your application has many users or if the app generates a large amount of performance activity, Performance Monitoring might limit data collection to a subset of devices to reduce the number of processed events. These limits are high enough so that, even with fewer events, the metric values are still representative of your user's app experience.
To manage the volume of data that we collect, Performance Monitoring uses the following sampling options:
On-device rate limiting : To prevent a device from sending sudden bursts of traces, we limit the number of code and network request traces sent from a device to 300 events every 10 mins. This approach protects the device from looped instrumentations that can send large amounts of performance data, and it prevents a single device from skewing the performance measurements.
Dynamic sampling : Performance Monitoring collects approximately 100M events for code traces and 100M for network request traces per app across all app users. A dynamic sampling rate is fetched on devices (using Firebase Remote Config) to determine whether a random device should capture and send traces. A device that is not selected for sampling does not send any events. The dynamic sampling rate is app-specific and adjusts to ensure that the overall volume of collected data remains below the limit.
User sessions send additional, detailed data from a user's device, requiring more resources to capture and send the data. To minimize the impact of user sessions, Performance Monitoring might also restrict the number of sessions.
Server-side rate limiting : To ensure that apps don't exceed the sampling limit, Performance Monitoring might use server-side sampling to drop some events received from devices. Although this type of limiting doesn't change the effectiveness of our metrics, it may cause minor pattern shifts, including the following:
- The number of traces can differ from the number of times that a piece of code was executed.
- Traces that are closely coupled in code may each have a different number of samples.
We replaced the Issues tab with the introduction of Alerts, which automatically notifies you when the thresholds you set are exceeded. You no longer need to manually check the Firebase console to determine the status of a threshold. To learn about Alerts, see Set up alerts for performance issues .
We've redesigned the Performance Monitoring section of the Firebase console so that the Dashboard tab displays your key metrics and all your traces in one space. As part of the redesign, we removed the On device and Network pages.
The traces table at the bottom of the Dashboard tab has all the same information that the On device and Network tabs displayed, but with some added features, including the ability to sort your traces by the percentage change for a specific metric. To view all the metrics and data for a specific trace, click the trace name in the traces table.
View your traces in the following subtabs of the traces table:
- Network request traces (both out-of-the-box and custom) — Network requests subtab
- Custom code traces — Custom traces subtab
- App start, app-in-foreground, app-in-background traces — Custom traces subtab
- Screen rendering traces — Screen rendering subtab
- Page load traces — Page load subtab
For details about the traces table and viewing metrics and data, visit the console overview page ( iOS+ | Android | Web ).
Slow rendering frames and frozen frames are calculated with an assumed device refresh rate of 60Hz. If a device refresh rate is lower than 60Hz, each frame will have a slower rendering time because fewer frames are rendered per second. Slower rendering times can cause more slow or frozen frames to be reported because more frames will be rendered slower or will freeze. However, if a device refresh rate is higher than 60Hz, each frame will have a faster rendering time. This can cause fewer slow or frozen frames to be reported. This is a current limitation in the Performance Monitoring SDK.
If you have enabled the BigQuery integration for Firebase Performance Monitoring, your data will be exported to BigQuery 12 to 24 hours after the end of the day (Pacific Time).
For example, the data for April 19th will be available in BigQuery on April 20th between 12:00pm and midnight (all dates and times are Pacific Time).
Near real-time data processing and display
Firebase Performance Monitoring processes collected performance data as it comes in, which results in near real-time data display in the Firebase console. Processed data displays in the console within a few minutes of its collection, hence the term "near real-time".
To take advantage of near real-time data processing, make sure your app uses a real-time compatible SDK version .
To take advantage of near real-time data processing, you only need to make sure that your app uses a Performance Monitoring SDK version that's compatible with real-time data processing.
These are the real-time compatible SDK versions:
- iOS — v7.3.0 or later
- tvOS — v8.9.0 or later
- Android — v19.0.10 or later (or Firebase Android BoM v26.1.0 or later)
- Web — v7.14.0 or later
Note that we always recommend using the latest version of SDK, but any version listed above will enable Performance Monitoring to process your data in near real time.
These are the SDK versions compatible with real-time data processing:
- iOS — v7.3.0 or later
- tvOS — v8.9.0 or later
- Android — v19.0.10 or later (or Firebase Android BoM v26.1.0 or later)
- Web — v7.14.0 or later
Note that we always recommend using the latest version of SDK, but any version listed above will enable Performance Monitoring to process your data in near real time.
If your app doesn't use a real-time compatible SDK version, you will still see all your app's performance data in the Firebase console. However, the display of performance data will be delayed by roughly 36 hours from the time of its collection.
Yes! Regardless of which SDK version an app instance uses, you'll see performance data from all your users.
However, if you're looking at recent data (less than roughly 36 hours old), then the displayed data is from users of app instances using a real-time compatible SDK version. The non-recent data, though, includes performance data from all versions of your app.
Contacting Firebase Support
If you reach out to Firebase Support , always include your Firebase App ID. Find your Firebase App ID in the Your apps card of your Project settings .