wu-sheng commented on code in PR #776: URL: https://github.com/apache/skywalking-website/pull/776#discussion_r1983294608
########## content/blog/2025-03-06-introduction-to-skywalking-ruby/index.md: ########## @@ -0,0 +1,219 @@ +--- +title: "SkyWalking Ruby Quick Start and Principle Introduction" +date: 2025-03-06 +author: "Zixin Zhou" +description: "This article demonstrates how to integrate applications with SkyWalking Ruby and provides a + brief interpretation of the implementation mechanism of Ruby auto-instrumentation plugins." +tags: + - Ruby + - Agent + - Tracing +--- + +## Background + +Ruby is a dynamic, object-oriented programming language with concise and elegant syntax, supporting multiple programming +paradigms, including object-oriented, functional, and metaprogramming. Leveraging its powerful metaprogramming +capabilities, Ruby allows modifying the behavior of classes and objects at runtime. +SkyWalking provides a [Ruby gem](https://rubygems.org/gems/skywalking) to facilitate integration with Ruby projects, and +this gem supports many out-of-the-box frameworks and gems. + +This article is based on skywalking-ruby-v0.1. We will guide you on how to quickly integrate the skywalking-ruby project +into Ruby projects and briefly introduce the implementation principle of SkyWalking Ruby's auto-instrumentation plugins using +redis-rb as an example. + +The demonstration includes the following steps: + +1. **Deploy SkyWalking**: This involves setting up the SkyWalking backend and UI programs to enable you to + see the final results. +2. **Integrate SkyWalking into Different Ruby Projects**: This section explains how to integrate SkyWalking into + different Ruby projects. +3. **Application Deployment**: You will export environment variables and deploy the application to facilitate + communication between your service and the SkyWalking backend. +4. **Visualization on SkyWalking UI**: Finally, you will send requests and observe the results in the SkyWalking UI. + +## Deploy SkyWalking + +Please download the [SkyWalking APM program](https://skywalking.apache.org/downloads/#SkyWalkingAPM) from the official +SkyWalking website. Then execute the following two commands to start the services: Review Comment: Including the merged CN version, I think we should follow this to run skywalking locally. https://skywalking.apache.org/docs/main/next/en/setup/backend/backend-docker/#start-the-storage-oap-and-booster-ui-with-docker-compose We don't have H2 mode since next release, so, this would not work. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
