এই পৃষ্ঠায় Performance Monitoring শুরু করার জন্য অথবা Performance Monitoring ফিচার ও টুলিং ব্যবহার করার জন্য সমস্যা সমাধানের পরামর্শ দেওয়া হয়েছে।
সমস্যা সমাধানের জন্য প্রাথমিক পরীক্ষা
আরও সমস্যা সমাধানের আগে নিম্নলিখিত দুটি যাচাই সাধারণ উত্তম অনুশীলন হিসেবে সকলের জন্য সুপারিশ করা হয়।
১. পারফরম্যান্স ইভেন্টের জন্য লগ বার্তাগুলি পরীক্ষা করুন
Performance Monitoring এসডিকে পারফরম্যান্স ইভেন্টগুলো ক্যাপচার করছে কিনা, তা নিশ্চিত হতে আপনার লগ মেসেজগুলো পরীক্ষা করুন।
আপনার ব্রাউজারের ডেভেলপার টুলস খুলুন (উদাহরণস্বরূপ, Chrome Dev Tools-এর জন্য Network ট্যাব অথবা Firefox-এর জন্য Network Monitor )।
ব্রাউজারে আপনার ওয়েব অ্যাপটি রিফ্রেশ করুন।
কোনো ত্রুটির বার্তা আছে কিনা তা জানতে আপনার লগ বার্তাগুলো দেখুন।
কয়েক সেকেন্ড পর, আপনার ব্রাউজারের ডেভেলপার টুলসে
firebaselogging.googleapis.comএ করা একটি নেটওয়ার্ক কল খুঁজুন। এই নেটওয়ার্ক কলটির উপস্থিতি প্রমাণ করে যে ব্রাউজারটি ফায়ারবেসে পারফরম্যান্স ডেটা পাঠাচ্ছে।
আপনার অ্যাপ যদি পারফরম্যান্স ইভেন্ট লগ না করে, তাহলে সমস্যা সমাধানের টিপসগুলো পর্যালোচনা করুন।
২. ফায়ারবেস স্ট্যাটাস ড্যাশবোর্ড চেক করুন
Firebase-এর কোনো জ্ঞাত বিভ্রাট আছে কিনা অথবা Performance Monitoring জন্য Firebase স্ট্যাটাস ড্যাশবোর্ডটি দেখুন।
Performance Monitoring শুরু করা
আপনি যদি Performance Monitoring ( iOS+ | Android | Web ) ব্যবহার শুরু করে থাকেন, তাহলে Firebase-এর SDK শনাক্তকরণ বা Firebase কনসোলে আপনার প্রথম পারফরম্যান্স ডেটা প্রদর্শনের মতো সমস্যা সমাধানে নিম্নলিখিত টিপসগুলো আপনাকে সাহায্য করতে পারে।
আপনার অ্যাপ থেকে ইভেন্টের তথ্য (যেমন অ্যাপের ইন্টারঅ্যাকশন) পেলে Firebase বুঝতে পারে যে আপনি আপনার অ্যাপে Performance Monitoring SDK সফলভাবে যোগ করেছেন কিনা। সাধারণত আপনার অ্যাপ চালু করার ১০ মিনিটের মধ্যে, Firebase কনসোলের পারফরম্যান্স ড্যাশবোর্ডে একটি "SDK detected" বার্তা প্রদর্শিত হয়। এরপর, ৩০ মিনিটের মধ্যে, ড্যাশবোর্ডটি প্রাথমিক প্রক্রিয়াকৃত ডেটা প্রদর্শন করে।
আপনার অ্যাপে SDK-এর সর্বশেষ সংস্করণটি যোগ করার পর যদি ১০ মিনিটের বেশি সময় হয়ে যায় এবং আপনি এখনও কোনো পরিবর্তন দেখতে না পান, তাহলে Performance Monitoring ইভেন্ট লগ করছে কিনা তা নিশ্চিত করতে আপনার লগ বার্তাগুলি পরীক্ষা করুন । একটি বিলম্বিত SDK সনাক্তকরণ বার্তার সমস্যা সমাধানের জন্য নীচে বর্ণিত উপযুক্ত সমস্যা সমাধানের পদক্ষেপগুলি চেষ্টা করুন।
আপনি যদি এখনও স্থানীয়ভাবে ডেভেলপ করে থাকেন, তাহলে ডেটা সংগ্রহের জন্য আরও ইভেন্ট তৈরি করার চেষ্টা করুন:
আপনার ওয়েব অ্যাপটি স্থানীয় পরিবেশে পরিবেশন করুন এবং দেখুন।
আপনার সাইটের সাবপেজ লোড করে, আপনার অ্যাপের সাথে ইন্টারঅ্যাক্ট করে, এবং/অথবা নেটওয়ার্ক রিকোয়েস্ট ট্রিগার করে ইভেন্ট তৈরি করুন। পেজ লোড হওয়ার পর ব্রাউজার ট্যাবটি কমপক্ষে ১০ সেকেন্ডের জন্য খোলা রাখতে ভুলবেন না।
নিশ্চিত করুন যে আপনার Firebase কনফিগারেশন অবজেক্টটি আপনার অ্যাপে সঠিকভাবে যুক্ত করা হয়েছে এবং আপনি অবজেক্টটি পরিবর্তন করেননি। বিশেষ করে, নিম্নলিখিত বিষয়গুলো পরীক্ষা করুন:
- কনফিগ অবজেক্টে থাকা ফায়ারবেস ওয়েব অ্যাপ আইডি (
appId) আপনার অ্যাপের জন্য সঠিক। আপনার > প্রজেক্ট সেটিংস- এর > আপনার অ্যাপস কার্ডে আপনার ফায়ারবেস অ্যাপ আইডিটি খুঁজুন।
আপনার অ্যাপের কনফিগ অবজেক্টে কোনো সমস্যা মনে হলে, নিম্নলিখিত পদক্ষেপগুলো অনুসরণ করুন:
আপনার অ্যাপে বর্তমানে থাকা কনফিগ অবজেক্টটি মুছে ফেলুন।
একটি নতুন কনফিগ অবজেক্ট পেতে এবং আপনার ওয়েব অ্যাপে যোগ করতে এই নির্দেশাবলী অনুসরণ করুন।
- কনফিগ অবজেক্টে থাকা ফায়ারবেস ওয়েব অ্যাপ আইডি (
যদি SDK ইভেন্ট লগ করে এবং সবকিছু সঠিকভাবে সেট আপ করা আছে বলে মনে হয়, কিন্তু তারপরেও আপনি (২ ঘন্টা পরেও) SDK ডিটেকশন মেসেজ বা প্রসেসড ডেটা দেখতে না পান, তাহলে Firebase Support-এর সাথে যোগাযোগ করুন ।
আপনার অ্যাপে Performance Monitoring এসডিকে সঠিকভাবে ইনিশিয়ালাইজ করা হয়েছে কিনা, তা নিশ্চিত করুন।
নিম্নলিখিত ফ্ল্যাগের মাধ্যমে নিশ্চিত করুন যে Performance Monitoring SDK নিষ্ক্রিয় করা নেই :
-
performance.instrumentationEnabled
-
আপনার ব্রাউজারের ক্যাশিং নিষ্ক্রিয় করা আছে কিনা তা নিশ্চিত করুন, অন্যথায় ব্রাউজারটি নতুন কোনো ইন্সট্রুমেন্টেশন সেটিংস গ্রহণ করতে পারবে না।
ওয়েবপেজ ট্যাবটি বন্ধ করে আবার খুলুন। লগিং পুনরায় পরীক্ষা করুন।
আপনি যদি আপনার অ্যাপে এইমাত্র Performance Monitoring SDK যোগ করে থাকেন, তাহলে SDK-টি কাজ শুরু করার জন্য আপনাকে অ্যাপটি সম্পূর্ণভাবে রিস্টার্ট করতে হতে পারে।
আপনার অ্যাপে নিষ্ক্রিয় করা কোনো কিছু খুঁজে না পেলে, Firebase Support-এর সাথে যোগাযোগ করুন ।
Performance Monitoring পারফরম্যান্স ড্যাশবোর্ডে পারফরম্যান্স ইভেন্টের ডেটা প্রদর্শন করার আগে তা প্রসেস করে।
"SDK detected" বার্তাটি প্রদর্শিত হওয়ার পর যদি ২৪ ঘণ্টার বেশি সময় পার হয়ে যায় এবং আপনি এখনও কোনো ডেটা দেখতে না পান, তাহলে কোনো পরিচিত বিভ্রাট আছে কিনা তা জানতে Firebase Status Dashboard পরীক্ষা করুন। যদি কোনো বিভ্রাট না থাকে, তাহলে Firebase Support-এর সাথে যোগাযোগ করুন ।
সাধারণ সমস্যা সমাধান
আপনি যদি সফলভাবে SDK যোগ করে থাকেন এবং আপনার অ্যাপে Performance Monitoring ব্যবহার করেন, তাহলে নিম্নলিখিত সমস্যা সমাধানের টিপসগুলো Performance Monitoring ফিচার ও টুলিং-সম্পর্কিত সাধারণ সমস্যা সমাধানে সাহায্য করতে পারে।
আপনি যদি পারফরম্যান্স ইভেন্টের লগ মেসেজ দেখতে না পান, তাহলে নিম্নলিখিত সমস্যা সমাধানের ধাপগুলো চেষ্টা করুন:
আপনার অ্যাপে Performance Monitoring এসডিকে সঠিকভাবে ইনিশিয়ালাইজ করা হয়েছে কিনা, তা নিশ্চিত করুন।
নিম্নলিখিত ফ্ল্যাগের মাধ্যমে নিশ্চিত করুন যে Performance Monitoring SDK নিষ্ক্রিয় করা নেই :
-
performance.instrumentationEnabled
-
আপনার ব্রাউজারের ক্যাশিং নিষ্ক্রিয় করা আছে কিনা তা নিশ্চিত করুন, অন্যথায় ব্রাউজারটি নতুন কোনো ইন্সট্রুমেন্টেশন সেটিংস গ্রহণ করতে পারবে না।
ওয়েবপেজ ট্যাবটি বন্ধ করে আবার খুলুন। লগিং পুনরায় পরীক্ষা করুন।
আপনি যদি আপনার অ্যাপে এইমাত্র Performance Monitoring SDK যোগ করে থাকেন, তাহলে SDK-টি কাজ শুরু করার জন্য আপনাকে অ্যাপটি সম্পূর্ণভাবে রিস্টার্ট করতে হতে পারে।
আপনার অ্যাপে নিষ্ক্রিয় করা কোনো কিছু খুঁজে না পেলে, Firebase Support-এর সাথে যোগাযোগ করুন ।
আপনি যদি প্রথম ইনপুট ডিলে মেট্রিকের ডেটা দেখতে না পান, তাহলে নিম্নলিখিত সমস্যা সমাধানের ধাপগুলো চেষ্টা করুন:
মনে রাখবেন যে, পেজ লোড হওয়ার প্রথম ৫ সেকেন্ডের মধ্যে কোনো ব্যবহারকারী ওয়েব পেজটিতে ক্লিক করলে, Performance Monitoring শুধুমাত্র প্রথম ইনপুট ডিলে মেট্রিকটি রেকর্ড করে।
নিশ্চিত করুন যে আপনি এই মেট্রিকটি পরিমাপ করার জন্য আপনার অ্যাপটি সেট আপ করেছেন। প্রথম ইনপুট ডিলে মেট্রিকটির জন্য ম্যানুয়াল সেটআপ প্রয়োজন। বিশেষত, আপনাকে এই মেট্রিকটির জন্য পলিফিল লাইব্রেরিটি যোগ করতে হবে। ইনস্টলেশন নির্দেশাবলীর জন্য, লাইব্রেরির ডকুমেন্টেশন দেখুন।
উল্লেখ্য যে, Performance Monitoring অন্যান্য ওয়েব অ্যাপ মেট্রিক্স রিপোর্ট করার জন্য এই পলিফিল লাইব্রেরিটি যোগ করা আবশ্যক নয়।
আপনি কি স্বয়ংক্রিয়ভাবে সংগৃহীত ট্রেসগুলির পারফরম্যান্স ডেটা দেখতে পাচ্ছেন কিন্তু কাস্টম কোড ট্রেসগুলির নয় ? নিম্নলিখিত সমস্যা সমাধানের ধাপগুলি চেষ্টা করুন:
Trace API- এর মাধ্যমে ইন্সট্রুমেন্টেড কাস্টম কোড ট্রেসগুলির সেটআপ পরীক্ষা করুন, বিশেষ করে নিম্নলিখিত বিষয়গুলি:
- কাস্টম কোড ট্রেস এবং কাস্টম মেট্রিক্সের নামগুলোকে অবশ্যই নিম্নলিখিত শর্তগুলো পূরণ করতে হবে: নামের শুরুতে বা শেষে কোনো স্পেস থাকতে পারবে না, শুরুতে কোনো আন্ডারস্কোর (
_) অক্ষর থাকতে পারবে না এবং এর সর্বোচ্চ দৈর্ঘ্য ৩২ অক্ষর হতে হবে। - সমস্ত ট্রেস অবশ্যই শুরু এবং বন্ধ করতে হবে। যে ট্রেস শুরু করা হয়নি, বন্ধ করা হয়নি, বা শুরু করার আগেই বন্ধ করা হয়েছে, তা লগ করা হবে না।
মনে রাখবেন, যদি আপনি
record()মেথডটি ব্যবহার করেন, তাহলে আপনার ট্রেস আলাদাভাবে শুরু বা বন্ধ করার প্রয়োজন নেই।- কাস্টম কোড ট্রেস এবং কাস্টম মেট্রিক্সের নামগুলোকে অবশ্যই নিম্নলিখিত শর্তগুলো পূরণ করতে হবে: নামের শুরুতে বা শেষে কোনো স্পেস থাকতে পারবে না, শুরুতে কোনো আন্ডারস্কোর (
নিম্নলিখিত ফ্ল্যাগের মাধ্যমে নিশ্চিত করুন যে Performance Monitoring ডেটা সংগ্রহ নিষ্ক্রিয় করা নেই :
performance.dataCollectionEnabledএই ফ্ল্যাগটি শুধুমাত্র কাস্টম কোড ট্রেসের জন্য ডেটা সংগ্রহ নিয়ন্ত্রণ করে (সব ডেটা নয়)।
Performance Monitoring প্রত্যাশিত কাস্টম কোড ট্রেসগুলো লগ করছে কিনা, তা নিশ্চিত করতে আপনার লগ মেসেজগুলো পরীক্ষা করুন ।
যদি Performance Monitoring ইভেন্ট লগ করে, কিন্তু ২৪ ঘণ্টা পরেও কোনো ডেটা প্রদর্শিত না হয়, তাহলে ফায়ারবেস সাপোর্টের সাথে যোগাযোগ করুন ।
যদি আপনার নেটওয়ার্ক অনুরোধের ডেটা অনুপস্থিত থাকে, তাহলে নিম্নলিখিত বিষয়গুলো সম্পর্কে সচেতন থাকুন:
Performance Monitoring ব্রাউজার এপিআই দ্বারা রিপোর্ট করা নেটওয়ার্ক অনুরোধগুলির মেট্রিক্স স্বয়ংক্রিয়ভাবে সংগ্রহ করে। এই রিপোর্টগুলিতে ব্যর্থ নেটওয়ার্ক অনুরোধগুলি অন্তর্ভুক্ত থাকে না।
আপনার কোডের আচরণ এবং এতে ব্যবহৃত নেটওয়ার্কিং লাইব্রেরির ওপর নির্ভর করে, Performance Monitoring শুধুমাত্র সম্পন্ন হওয়া নেটওয়ার্ক রিকোয়েস্টগুলোর রিপোর্ট করতে পারে। এর মানে হলো, যে HTTP/S কানেকশনগুলো খোলা থাকে, সেগুলোর রিপোর্ট নাও করা হতে পারে।
Performance Monitoring কীভাবে ইউআরএল প্যাটার্নের অধীনে নেটওয়ার্ক অনুরোধের ডেটা একত্রিত করে , সে সম্পর্কে আরও জানুন।
আপনি কাস্টম ইউআরএল প্যাটার্নও ব্যবহার করে দেখতে পারেন!
প্রায়শই জিজ্ঞাসিত প্রশ্নাবলী
আমাদের সাম্প্রতিক অ্যালার্ট চালুর ধারাবাহিকতায়, আমরা ‘টপ ইস্যু’ -এর পরিবর্তে ‘রিসেন্ট অ্যালার্ট’ চালু করেছি। এই অ্যালার্টগুলো আপনার সেট করা সীমা অতিক্রম করলে স্বয়ংক্রিয়ভাবে আপনাকে অবহিত করে। ইস্যুগুলো এখন অপ্রচলিত এবং এর পরিবর্তে অ্যালার্ট চালু করা হয়েছে।
পারফরম্যান্স কার্ডের শীর্ষে থাকা অ্যাপস সিলেক্টরটি ‘সাম্প্রতিক সতর্কতা’ (Recent Alerts) -এর অধীনে থাকা অ্যালার্ট এন্ট্রিগুলোকে ফিল্টার করে। নির্বাচিত অ্যাপ(গুলো)-র জন্য শুধুমাত্র সবচেয়ে সাম্প্রতিক তিনটি অ্যালার্ট প্রদর্শিত হয়।
অ্যালার্ট সম্পর্কে আরও জানতে, ‘পারফরম্যান্স সংক্রান্ত সমস্যার জন্য অ্যালার্ট সেট আপ করুন’ দেখুন।
Performance Monitoring নির্ধারিত সীমা অতিক্রমকারী মেট্রিকগুলোর জন্য অ্যালার্ট সমর্থন করে। পারফরম্যান্স মেট্রিকের এই কনফিগারযোগ্য সীমাগুলো নিয়ে বিভ্রান্তি এড়াতে, আমরা ইস্যুগুলোর জন্য সীমা নির্ধারণ করার সুবিধাটি সরিয়ে দিয়েছি।
আপনার সমস্যা সমাধানের পদ্ধতি উন্নত করার জন্য আমরা Details এবং Metrics পেজগুলোকে একটি নতুনভাবে ডিজাইন করা, কেন্দ্রীভূত ইউজার ইন্টারফেস (UI) দিয়ে প্রতিস্থাপন করেছি। এই নতুন ট্রাবলশুটিং UI-টি Details এবং Metrics-এর মতোই মূল কার্যকারিতা প্রদান করে। ট্রাবলশুটিং সম্পর্কে আরও জানতে, একটি নির্দিষ্ট ট্রেসের জন্য আরও ডেটা দেখুন ।
Performance Monitoring আপনার অ্যাপের ব্যবহারকারীদের ডিভাইস থেকে পারফরম্যান্স ডেটা সংগ্রহ করে। যদি আপনার অ্যাপ্লিকেশনের অনেক ব্যবহারকারী থাকে অথবা অ্যাপটি প্রচুর পরিমাণে পারফরম্যান্স অ্যাক্টিভিটি তৈরি করে, তাহলে প্রসেস করা ইভেন্টের সংখ্যা কমানোর জন্য Performance Monitoring কিছু নির্দিষ্ট ডিভাইসের মধ্যে ডেটা সংগ্রহ সীমাবদ্ধ করে দিতে পারে। এই সীমাগুলো যথেষ্ট বেশি রাখা হয়, যাতে কম সংখ্যক ইভেন্ট থাকা সত্ত্বেও মেট্রিকের মানগুলো আপনার ব্যবহারকারীর অ্যাপ ব্যবহারের অভিজ্ঞতার সঠিক প্রতিফলন ঘটায়।
আমাদের সংগৃহীত ডেটার পরিমাণ পরিচালনা করার জন্য, Performance Monitoring নিম্নলিখিত স্যাম্পলিং বিকল্পগুলি ব্যবহার করে:
ডিভাইস-ভিত্তিক হার সীমিতকরণ : কোনো ডিভাইস যাতে হঠাৎ করে বিপুল পরিমাণে ট্রেস পাঠাতে না পারে, সেজন্য আমরা প্রতি ১০ মিনিটে একটি ডিভাইস থেকে পাঠানো কোড এবং নেটওয়ার্ক রিকোয়েস্ট ট্রেসের সংখ্যা ৩০০টি ইভেন্টে সীমাবদ্ধ রাখি। এই পদ্ধতিটি ডিভাইসটিকে এমন লুপড ইন্সট্রুমেন্টেশন থেকে রক্ষা করে যা প্রচুর পরিমাণে পারফরম্যান্স ডেটা পাঠাতে পারে, এবং এটি একটিমাত্র ডিভাইসের দ্বারা পারফরম্যান্স পরিমাপকে প্রভাবিত করাও প্রতিরোধ করে।
ডাইনামিক স্যাম্পলিং : Performance Monitoring প্রতিদিন সমস্ত অ্যাপ ব্যবহারকারীর জন্য প্রতিটি অ্যাপ থেকে সীমিত সংখ্যক কোড ট্রেস এবং নেটওয়ার্ক রিকোয়েস্ট ট্রেস সংগ্রহ করে। ডিভাইসগুলোতে ( Firebase Remote Config ব্যবহার করে) একটি ডাইনামিক স্যাম্পলিং রেট নির্ধারণ করা হয়, যার মাধ্যমে ঠিক করা হয় যে কোনো একটি র্যান্ডম ডিভাইস ট্রেস ক্যাপচার করে পাঠাবে কি না। স্যাম্পলিংয়ের জন্য নির্বাচিত না হওয়া কোনো ডিভাইস কোনো ইভেন্ট পাঠায় না। এই ডাইনামিক স্যাম্পলিং রেট অ্যাপ-ভিত্তিক এবং এটি এমনভাবে সামঞ্জস্য করা হয় যাতে সংগৃহীত ডেটার মোট পরিমাণ নির্ধারিত সীমার নিচে থাকে।
ইউজার সেশন ব্যবহারকারীর ডিভাইস থেকে অতিরিক্ত ও বিস্তারিত ডেটা পাঠায়, যা সংগ্রহ ও প্রেরণের জন্য আরও বেশি রিসোর্সের প্রয়োজন হয়। ইউজার সেশনের প্রভাব কমাতে, Performance Monitoring সেশনের সংখ্যাও সীমিত করতে পারে।
সার্ভার-সাইড রেট লিমিটিং : অ্যাপগুলো যাতে স্যাম্পলিং সীমা অতিক্রম না করে, তা নিশ্চিত করার জন্য Performance Monitoring ডিভাইস থেকে প্রাপ্ত কিছু ইভেন্ট বাদ দিতে সার্ভার-সাইড স্যাম্পলিং ব্যবহার করতে পারে। যদিও এই ধরনের সীমাবদ্ধতা আমাদের মেট্রিকগুলোর কার্যকারিতা পরিবর্তন করে না, তবে এটি প্যাটার্নে সামান্য পরিবর্তন আনতে পারে, যার মধ্যে নিম্নলিখিতগুলো অন্তর্ভুক্ত:
- কোনো একটি কোড যতবার এক্সিকিউট করা হয়েছে, তার থেকে ট্রেসের সংখ্যা ভিন্ন হতে পারে।
- কোডে ঘনিষ্ঠভাবে সংযুক্ত ট্রেসগুলোর প্রতিটিতে স্যাম্পলের সংখ্যা ভিন্ন হতে পারে।
আমরা Issues ট্যাবটি সরিয়ে Alerts চালু করেছি, যা আপনার সেট করা থ্রেশহোল্ড অতিক্রম করলে স্বয়ংক্রিয়ভাবে আপনাকে অবহিত করে। কোনো থ্রেশহোল্ডের অবস্থা জানার জন্য আপনাকে আর ম্যানুয়ালি Firebase কনসোল চেক করতে হবে না। Alerts সম্পর্কে জানতে, “Set up alerts for performance issues” দেখুন।
আমরা Firebase কনসোলের Performance Monitoring বিভাগটি নতুন করে ডিজাইন করেছি, যাতে ড্যাশবোর্ড ট্যাবে আপনার মূল মেট্রিক এবং সমস্ত ট্রেস এক জায়গায় প্রদর্শিত হয়। এই নতুন ডিজাইনের অংশ হিসেবে, আমরা ‘অন ডিভাইস’ এবং ‘নেটওয়ার্ক’ পেজগুলো সরিয়ে দিয়েছি।
ড্যাশবোর্ড ট্যাবের নিচের ট্রেসেস টেবিলে অন ডিভাইস এবং নেটওয়ার্ক ট্যাবে প্রদর্শিত সমস্ত তথ্যই থাকে, তবে এর সাথে কিছু অতিরিক্ত বৈশিষ্ট্যও রয়েছে, যার মধ্যে একটি নির্দিষ্ট মেট্রিকের শতাংশ পরিবর্তন অনুসারে আপনার ট্রেসগুলো সাজানোর (sort) সুবিধাও অন্তর্ভুক্ত। একটি নির্দিষ্ট ট্রেসের সমস্ত মেট্রিক এবং ডেটা দেখতে, ট্রেসেস টেবিলে ট্রেসের নামে ক্লিক করুন।
ট্রেস টেবিলের নিম্নলিখিত সাবট্যাবগুলিতে আপনার ট্রেসগুলি দেখুন:
- নেটওয়ার্ক অনুরোধ ট্রেস (আউট-অফ-দ্য-বক্স এবং কাস্টম উভয়ই) — নেটওয়ার্ক অনুরোধ সাবট্যাব
- কাস্টম কোড ট্রেস — কাস্টম ট্রেস সাবট্যাব
- অ্যাপ স্টার্ট, অ্যাপ-ইন-ফোরগ্রাউন্ড, অ্যাপ-ইন-ব্যাকগ্রাউন্ড ট্রেস — কাস্টম ট্রেস সাবট্যাব
- স্ক্রিন রেন্ডারিং ট্রেস — স্ক্রিন রেন্ডারিং সাবট্যাব
- পৃষ্ঠা লোড ট্রেস — পৃষ্ঠা লোড সাবট্যাব
ট্রেস টেবিল এবং মেট্রিক্স ও ডেটা দেখার বিষয়ে বিস্তারিত জানতে, কনসোল ওভারভিউ পৃষ্ঠাটি দেখুন ( iOS+ | Android | Web )।
ধীরগতির রেন্ডারিং ফ্রেম এবং জমে যাওয়া ফ্রেমগুলো ৬০Hz ডিভাইস রিফ্রেশ রেট ধরে গণনা করা হয়। যদি কোনো ডিভাইসের রিফ্রেশ রেট ৬০Hz-এর চেয়ে কম হয়, তবে প্রতিটি ফ্রেমের রেন্ডারিং সময় বেশি লাগবে, কারণ প্রতি সেকেন্ডে কম ফ্রেম রেন্ডার হয়। ধীরগতির রেন্ডারিংয়ের কারণে আরও বেশি ধীর বা জমে যাওয়া ফ্রেম রিপোর্ট হতে পারে, কারণ আরও বেশি ফ্রেম ধীরগতিতে রেন্ডার হবে বা জমে যাবে। তবে, যদি ডিভাইসের রিফ্রেশ রেট ৬০Hz-এর চেয়ে বেশি হয়, তবে প্রতিটি ফ্রেমের রেন্ডারিং সময় দ্রুত হবে। এর ফলে কম ধীর বা জমে যাওয়া ফ্রেম রিপোর্ট হতে পারে। এটি Performance Monitoring SDK-এর একটি বর্তমান সীমাবদ্ধতা।
আপনার অ্যাপে যদি Performance Monitoring ই একমাত্র ফায়ারবেস প্রোডাক্ট হয় এবং আপনি নিম্নলিখিত বিষয়গুলিতে আগ্রহী হন, তাহলে আপনি স্বতন্ত্র Performance Monitoring SDK (এবং নিচে প্রস্তাবিত হেডার স্ক্রিপ্টটি) ব্যবহার করতে পারেন:
- একটি নেমস্পেসড লাইব্রেরি ব্যবহার করে
- আপনার SDK প্যাকেজের আকার কমানো
- আপনার পৃষ্ঠা লোড হওয়ার পর পর্যন্ত SDK-এর প্রারম্ভিককরণ বিলম্বিত করা
আপনার অ্যাপে স্বতন্ত্র Performance Monitoring SDK অন্তর্ভুক্ত করতে এবং আপনার পৃষ্ঠা লোড হওয়ার পরে এর সূচনা বিলম্বিত করতে:
- আপনার ইনডেক্স ফাইলের হেডারে নিম্নলিখিত স্ক্রিপ্টটি যোগ করুন।
- আপনার অ্যাপের ফায়ারবেস প্রজেক্ট কনফিগারেশন অবজেক্টটি যোগ করতে ভুলবেন না।
(function(sa,fbc){function load(f,c){var a=document.createElement('script'); a.async=1;a.src=f;var s=document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(a,s);}load(sa); window.addEventListener('load',function(){firebase.initializeApp(fbc).performance()}); })(performance_standalone, firebaseConfig);
যেখানে,
- performance_standalone হল
'https://www.gstatic.com/firebasejs/12.17.1/firebase-performance.js' - firebaseConfig হলো আপনার অ্যাপের ফায়ারবেস কনফিগারেশন অবজেক্ট।
The above script asynchronously loads the standalone SDK then initializes Firebase after the window's onload event fires. This tactic reduces the impact that the SDK could have on page load metrics since the browser has already reported its loading metrics when you initialize the SDK.
You can create up to 400 total custom URL patterns per app and up to 100 custom URL patterns per domain for that app.
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.
To view real time performance data, make sure that your app uses a Performance Monitoring SDK version that's 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.
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.
আপনার ব্রাউজারের ডেভেলপার টুলস খুলুন (উদাহরণস্বরূপ, Chrome Dev Tools-এর জন্য Network ট্যাব অথবা Firefox-এর জন্য Network Monitor )।
ব্রাউজারে আপনার ওয়েব অ্যাপটি রিফ্রেশ করুন।
কোনো ত্রুটির বার্তা আছে কিনা তা জানতে আপনার লগ বার্তাগুলো দেখুন।
কয়েক সেকেন্ড পর, আপনার ব্রাউজারের ডেভেলপার টুলসে
firebaselogging.googleapis.comএ করা একটি নেটওয়ার্ক কল খুঁজুন। এই নেটওয়ার্ক কলটির উপস্থিতি প্রমাণ করে যে ব্রাউজারটি ফায়ারবেসে পারফরম্যান্স ডেটা পাঠাচ্ছে।
আপনার অ্যাপ যদি পারফরম্যান্স ইভেন্ট লগ না করে, তাহলে সমস্যা সমাধানের টিপসগুলো পর্যালোচনা করুন।
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:
আপনার ওয়েব অ্যাপটি স্থানীয় পরিবেশে পরিবেশন করুন এবং দেখুন।
আপনার সাইটের সাবপেজ লোড করে, আপনার অ্যাপের সাথে ইন্টারঅ্যাক্ট করে, এবং/অথবা নেটওয়ার্ক রিকোয়েস্ট ট্রিগার করে ইভেন্ট তৈরি করুন। পেজ লোড হওয়ার পর ব্রাউজার ট্যাবটি কমপক্ষে ১০ সেকেন্ডের জন্য খোলা রাখতে ভুলবেন না।
Make sure that your Firebase configuration object is correctly added to your app and that you haven't modified the object. Specifically, check the following:
- The Firebase Web App ID (
appId) in the config object 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 object in your app, try the following:
Delete the config object that you currently have in your app.
Follow these instructions to obtain a new config object and add it to your web app.
- The Firebase Web App ID (
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 correctly initialized in your app.
Make sure that the Performance Monitoring SDK is not disabled through the following flag:
-
performance.instrumentationEnabled
-
Make sure that your browser caching is disabled, otherwise the browser might not pick up any new instrumentation settings.
Close, then reopen the webpage tab. Check for logging again.
If you just added the Performance Monitoring SDK in your app, you might need to fully restart your app for the SDK to start working.
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 correctly initialized in your app.
Make sure that the Performance Monitoring SDK is not disabled through the following flag:
-
performance.instrumentationEnabled
-
Make sure that your browser caching is disabled, otherwise the browser might not pick up any new instrumentation settings.
Close, then reopen the webpage tab. Check for logging again.
If you just added the Performance Monitoring SDK in your app, you might need to fully restart your app for the SDK to start working.
If you can't find anything that's disabled in your app, contact Firebase Support .
If you're not seeing data for the first input delay metric , try the following troubleshooting steps:
Be aware that Performance Monitoring only records the first input delay metric when a user clicks on the web page within the first 5 seconds after page load.
Make sure that you've set up your app to measure this metric. The first input delay metric requires manual setup . Specifically, you need to add the polyfill library for this metric. For installation instructions, refer to the library's documentation .
Note that adding this polyfill library is not required for Performance Monitoring to report other web app metrics.
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.
Note that if you're using the
record()method, then you don't need to explicitly start or stop your trace.- Names for custom code traces and custom metrics must meet the following requirements: no leading or trailing whitespace, no leading underscore (
Make sure that Performance Monitoring data collection is not disabled through the following flag:
performance.dataCollectionEnabledThis flag controls the collection of data for custom code traces only (not all data).
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, be aware of the following:
Performance Monitoring automatically collects metrics for network requests reported by the browser API. These reports do not include failed network requests.
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.
Learn more about how Performance Monitoring aggregates network request data under URL patterns.
You can also try out custom URL patterns !
প্রায়শই জিজ্ঞাসিত প্রশ্নাবলী
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 a limited number of code traces and network request traces per app daily 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 Performance Monitoring is the only Firebase product in your app, you can use the standalone Performance Monitoring SDK (and the recommended header script below) if you're interested in:
- using a namespaced library
- reducing your SDK package size
- delaying initialization of the SDK until after your page loads
To include the standalone Performance Monitoring SDK in your app and delay its initialization to after your page loads:
- Add the following script to the header of your index file.
- Make sure to add your app's Firebase project configuration object .
(function(sa,fbc){function load(f,c){var a=document.createElement('script'); a.async=1;a.src=f;var s=document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(a,s);}load(sa); window.addEventListener('load',function(){firebase.initializeApp(fbc).performance()}); })(performance_standalone, firebaseConfig);
যেখানে,
- performance_standalone is
'https://www.gstatic.com/firebasejs/12.17.1/firebase-performance.js' - firebaseConfig is your app's Firebase config object
The above script asynchronously loads the standalone SDK then initializes Firebase after the window's onload event fires. This tactic reduces the impact that the SDK could have on page load metrics since the browser has already reported its loading metrics when you initialize the SDK.
You can create up to 400 total custom URL patterns per app and up to 100 custom URL patterns per domain for that app.
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.
To view real time performance data, make sure that your app uses a Performance Monitoring SDK version that's 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.
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 .