DEV Community

Cover image for Observability 101: A Beginner's Journey Free of Print Statements.
Cloud Native Engineer
Cloud Native Engineer

Posted on

Observability 101: A Beginner's Journey Free of Print Statements.

Abandon your Print statements and embark on a long journey to master Observability.

  • 🚫 No More Print Statements: Avoid using print statements (a poor's man tool); instead, use structured logs, metrics, and traces.
  • πŸ” Key Tools: Use logs for events, metrics for counts, traces for durations, and debuggers for state inspection.
  • πŸ“œ Short history of Observability: how we moved from print statements to monitoring to the modern approach on observability
  • ☁️ Cloud-Native Focus: what are the causes for the adoption of Observability over monitoring.
  • πŸ“š Learn More: Links to explore more about Observability.

There are many ways a print statement should be replaced with better Observability options:
β€’ Tracking a specific event (e.g. an error or a warning) => Logs
β€’ Counting the number of times an event occurs (e.g. number of times a web application receives a request) => Metrics
β€’ Timing the duration of a function (e.g. how long does it take to query a database?) => Traces
β€’ Printing error Stacktraces => Error tracking software
β€’ Checking the internal state of variables while developing => Debugger with breakpoints

Read the full article at https://cloudnativeengineer.substack.com/p/observability-101-free-of-print-statements

--
Are you ready to take your skills to new heights? πŸš€

🚒 Let's embark on this journey together!

πŸ‘£ Follow me to receive valuable content on AI, Kubernetes, System Design, Elasticsearch, and more.

πŸ“¬ Be part of an exclusive circle by subscribing to my newsletter on Substack.

πŸŽ“ If you are looking for personalized guidance, I am here to support you. Book a mentoring session with me at https://mentors.to/gsantoro on MentorCruise, and let's work together to unlock your full potential.

♻️ Remember, sharing is caring! If this content has helped you, please re-share it with others so they can benefit from it.

🀩 Let's inspire and empower each other to reach new heights!

Top comments (0)