In today’s complex, microservices-driven landscape, understanding how requests flow through distributed systems is essential for maintaining performance, diagnosing issues, and optimizing applications. Distributed tracing provides a powerful tool for developers and operations teams to visualize and analyze the journey of requests across various services and components.

This comprehensive guide will take you through the process of integrating Spring Boot with OpenTelemetry using Micrometer to achieve robust distributed tracing. We’ll cover everything from setting up a local development environment to deploying your application on Google Cloud Platform (GCP) Cloud Run, ensuring you gain a thorough understanding of how to implement and leverage distributed tracing in both local and cloud environments.

Read more »

This guide provides a step-by-step approach to integrating OpenTelemetry with Spring Boot and deploying it to Google Cloud Platform (GCP). The setup includes configuring the necessary dependencies, setting up OpenTelemetry Collector, creating a Docker environment, and deploying the application to GCP Cloud Run.

Important Notice: This article is for reference only. Please refer to the latest guide: Step-by-Step Guide to Integrating Spring Boot and OpenTelemetry with Micrometer on GCP for Distributed Tracing for up-to-date information and recommended practices.

It’s important to note that Micrometer is now the recommended framework by Spring for metrics and tracing in Spring Boot applications. The latest Spring Boot versions have integrated Micrometer as the default metrics and tracing facade, which can be easily configured to work with OpenTelemetry. For the most current approach to implementing observability in Spring Boot applications using Micrometer and OpenTelemetry, please refer to the guide linked above.

Read more »

In modern software development, cloud-based development environments are becoming increasingly popular. Google Project IDX is a powerful tool that helps developers efficiently develop and deploy applications. This article will guide you through using Google Project IDX to develop a Spring Boot project, covering the necessary configurations and usage. If you want to try it out immediately, you can open it directly using my GitHub at https://github.com/samzhu/demo-project-idx.

Read more »

Function calling is a powerful mechanism in AI development, allowing developers to specify a set of tasks or functions that an AI model can execute. These functions are clearly defined using a schema that outlines expected inputs, outputs, and any additional parameters the AI needs to perform the desired action effectively. By utilizing function calling, developers can precisely guide the AI’s behavior to ensure its responses are aligned with the application’s specific requirements.

Read more »

In this installment of our series on building AI applications with Spring AI, we explore the powerful capabilities of vector databases. These specialized databases enhance AI systems by efficiently managing and utilizing embeddings—dense vector representations crucial for processing and understanding large-scale, complex data sets. Read on to learn how vector databases integrate seamlessly with Spring AI to revolutionize data handling in AI applications.

Read more »

Following our initial dive into creating prompts with Spring AI, this article ventures further into enhancing user interactions. We focus on incorporating chat histories and delivering responses in real-time using Server-Sent Events (SSE). This combination not only elevates the user experience by providing instant feedback but also simulates a dynamic conversation flow, akin to real-life interactions.

Read more »

Welcome to my learning notes on developing AI applications with Spring AI. If the realm of AI has ever piqued your curiosity but you’ve felt daunted about where to begin, these notes are for you. So, let’s embark on this exploration together into the fascinating world of AI development. Feel free to share your thoughts and engage in discussions as we learn and grow together.

Read more »

Diving into the world of Java development, we often encounter the need to interact with applications directly through the command line. Enter Spring Shell, a project within the larger Spring Framework ecosystem designed to simplify the creation of interactive command-line applications. This beginner-friendly guide aims to introduce you to Spring Shell, helping you unlock its potential to build powerful CLI tools with ease. Whether you’re new to programming or looking to expand your Java toolkit, this journey will set the foundation for your command-line adventures.

Read more »

In the evolving landscape of Java applications, performance and startup time are paramount, especially in the context of cloud-native environments and microservices architectures. This is where Spring Native and Ahead-of-Time (AOT) compilation come into play, revolutionizing how we build and deploy Spring applications. Let’s dive into these concepts and explore a practical implementation that enhances application performance through efficient runtime hints.

Read more »
0%