### Start Java application with HTTP OTLP exporter (example values) Source: https://help.aliyun.com/en/opentelemetry/user-guide/use-opentelemetry-to-submit-trace-data-of-java-applications Concrete example of the HTTP command with example values for service name, version, environment, and endpoints. ```shell java -javaagent:/path/to/opentelemetry-javaagent.jar \ -Dotel.resource.attributes=service.name=order-service,service.version=1.0.0,deployment.environment=production \ -Dotel.exporter.otlp.protocol=http/protobuf \ -Dotel.exporter.otlp.traces.endpoint=http://tracing-analysis-dc-hz-internal.aliyuncs.com/adapt_ggxw4l****@7323a5caae3****_ggxw4l****@53df7ad2afe****/api/otlp/traces \ -Dotel.exporter.otlp.metrics.endpoint=http://tracing-analysis-dc-hz-internal.aliyuncs.com/adapt_ggxw4l****@7323a5caae3****_ggxw4l****@53df7ad2afe****/api/otlp/metrics \ -Dotel.logs.exporter=none \ -jar /path/to/your/app.jar ``` -------------------------------- ### Application start script for Ubuntu Source: https://help.aliyun.com/en/oos/use-cases/deploy-an-application-to-a-group-of-ecs-instances Start script for Ubuntu that updates apt, installs Maven, and runs the sample JAR. Uses apt to install maven and starts the application in the background. ```shell start_application() { set -e apt update apt install -y maven java -jar ./sample-spring-1.0-SNAPSHOT.jar & } start_application ``` -------------------------------- ### Example output of go install Source: https://help.aliyun.com/en/terraform/terraform-installation Example terminal output showing the 'go install' command downloading dependencies and compiling Terraform. ```bash tiankai@U-ODY6MW2N-0211 terraform % go install go: downloading github.com/hashicorp/go-checkpoint v0.5.0 go: downloading github.com/apparentlymart/go-shquot v0.0.1 go: downloading github.com/apparentlymart/go-userdirs v0.0.0-20200915174352-b0c018a67c13 go: downloading github.com/hashicorp/cli v1.1.6 go: downloading github.com/hashicorp/go-plugin v1.6.0 go: downloading github.com/hashicorp/terraform-svchost v0.1.1 go: downloading github.com/mattn/go-shellwords v1.0.12 go: downloading github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db go: downloading go.opentelemetry.io/contrib/exporters/autoexport v0.45.0 go: downloading go.opentelemetry.io/otel v1.24.0 go: downloading go.opentelemetry.io/otel/sdk v1.24.0 go: downloading go.opentelemetry.io/otel/trace v1.24.0 go: downloading github.com/hashicorp/go-cleanhttp v0.5.2 go: downloading github.com/hashicorp/go-uuid v1.0.3 go: downloading github.com/zclconf/go-cty v1.14.4 go: downloading github.com/hashicorp/hcl/v2 v2.20.0 go: downloading github.com/hashicorp/terraform-registry-address v0.2.3 go: downloading golang.org/x/text v0.14.0 ``` -------------------------------- ### Start Java application with gRPC OTLP exporter (example values) Source: https://help.aliyun.com/en/opentelemetry/user-guide/use-opentelemetry-to-submit-trace-data-of-java-applications Concrete example of the gRPC command with example values for service name, version, environment, token, and endpoint. ```shell java -javaagent:/path/to/opentelemetry-javaagent.jar \ -Dotel.resource.attributes=service.name=order-service,service.version=1.0.0,deployment.environment=production \ -Dotel.exporter.otlp.protocol=grpc \ -Dotel.exporter.otlp.headers=Authentication=ggxw4l****@7323a5caae3****_ggxw4l****@53df7ad2afe**** \ -Dotel.exporter.otlp.endpoint=http://tracing-analysis-dc-hz-internal.aliyuncs.com:8090 \ -Dotel.logs.exporter=none \ -jar /path/to/your/app.jar ``` -------------------------------- ### Example output for automatic installation Source: https://help.aliyun.com/en/cli/managing-and-using-cli-plugins Shows the command and output when a missing plugin is auto-installed. The output includes messages about the required plugin, downloading, and successful installation. ```bash # Run a command when the ecs plugin is not installed aliyun ecs describe-regions --accept-language en-US # Output of the automatic installation process Plugin 'aliyun-cli-ecs' is required for command 'ecs describe-regions' but not installed. Auto-installing plugin 'aliyun-cli-ecs' (including pre-release versions)... Downloading aliyun-cli-ecs 0.1.0... Plugin aliyun-cli-ecs 0.1.0 installed successfully! ...... ``` -------------------------------- ### Install plugins with aliyun plugin install Source: https://help.aliyun.com/en/cli/migrating-from-older-versions-to-plug-in-versions-of-cli Install a single plugin or multiple plugins using the --name or --names flags. The example shows installing the ecs plugin and then installing ecs, oss, and vpc plugins. ```bash # Install a single plugin aliyun plugin install --name ecs # Install multiple plugins aliyun plugin install --names ecs oss vpc ``` -------------------------------- ### Sample plaintext output of aliyun configure get Source: https://help.aliyun.com/en/cli/configure-credentials Example output showing the requested settings in key=value format. ```plaintext profile=OAuthProfile mode=OAuth language=en ``` -------------------------------- ### Example output in an interactive environment with auto-install disabled Source: https://help.aliyun.com/en/cli/managing-and-using-cli-plugins Shows the command and output when a missing plugin is prompted for installation in an interactive terminal. The output includes a tip to enable auto-install and a prompt to confirm installation. ```bash # Run a command when the ecs plugin is not installed aliyun ecs describe-regions --accept-language en-US # Output of the interactive installation process Plugin 'aliyun-cli-ecs' is required for command 'ecs describe-regions' but not installed. Tip: Run 'aliyun configure set --auto-plugin-install true' to skip this prompt. Do you want to install it? [Y/n]: y Installing plugin 'aliyun-cli-ecs' (including pre-release versions)... Downloading aliyun-cli-ecs 0.1.0... Plugin aliyun-cli-ecs 0.1.0 installed successfully! ...... ``` -------------------------------- ### Get help for OSS commands Source: https://help.aliyun.com/en/cloud-shell/use-alibaba-cloud-cli-to-manage-data-in-oss Run 'aliyun oss --help' to list all oss commands. For details on any command, append 'help'. Example for mkdir is shown. ```plaintext aliyun oss [command] help ``` ```plaintext aliyun oss mkdir help ``` -------------------------------- ### Deploy the application Source: https://help.aliyun.com/en/cloud-shell/quickly-experience-interesting-video-solutions Navigates to the tutorial directory and runs the deployment script. ```plaintext cd ~/tutorial-aliyun-quvideo-appserver && python deploy/index.py ``` -------------------------------- ### Run the sample application Source: https://help.aliyun.com/en/opentelemetry/user-guide/use-jaeger-to-report-dotnet-application-data Commands to run the manual demo .NET application. ```bash cd dotnet-demo/netcoreapp3.1/ManualDemo dotnet run --framework:netcoreapp3.1 ``` -------------------------------- ### Application start script for Alibaba Cloud Linux Source: https://help.aliyun.com/en/oos/use-cases/deploy-an-application-to-a-group-of-ecs-instances Start script for Alibaba Cloud Linux that installs Maven and runs the sample JAR. Uses yum to install maven-3.5.4 and starts the application in the background. ```shell start_application() { set -e yum install -y maven-3.5.4 java -jar ./sample-spring-1.0-SNAPSHOT.jar & } start_application ``` -------------------------------- ### Install a specific runtime version with tnvm install Source: https://help.aliyun.com/en/nodejs/user-guide/update-the-runtime-version Installs the specified runtime version. Example installs v3.8.0, which corresponds to the official v8.9.0 LTS version. ```bash tnvm install alinode-v3.8.0 ``` -------------------------------- ### Preview and test tutorial with teachme Source: https://help.aliyun.com/en/cloud-shell/user-guide/writing-a-tutorial Run the teachme command to preview and test the tutorial before pushing to Git. ```plaintext teachme tutorial.md ``` -------------------------------- ### Run the example application Source: https://help.aliyun.com/en/opentelemetry/user-guide/use-jaeger-to-report-cpp-application-data Runs the example application from the build directory using the provided config file. When reporter.logSpans is true, each span is logged to the console. ```bash ./app ../examples/config.yml ``` -------------------------------- ### Install dependencies for auto-instrumentation Source: https://help.aliyun.com/en/opentelemetry/user-guide/use-managed-service-for-opentelemetry-to-submit-the-trace-data-of-a-node-js-application Initializes a new npm project and installs Express and Axios for the auto-instrumentation example. ```bash cd auto-instrumentation npm init -y npm install express axios ``` -------------------------------- ### Initialize the project directory Source: https://help.aliyun.com/en/opentelemetry/user-guide/report-php-applications-through-opentelemetry Creates a new project directory and navigates into it. ```bash mkdir && cd ``` -------------------------------- ### Start Claude Code Source: https://help.aliyun.com/en/skillsportal/quickly-use-alibaba-cloud-skills Run this command in the terminal to start Claude Code in the project directory where the Skill is installed. ```bash claude ``` -------------------------------- ### Run the Demo with Example Endpoint Source: https://help.aliyun.com/en/opentelemetry/user-guide/use-managed-service-for-opentelemetry-to-report-cpp-application-data Command to run the demo with a sample HTTP endpoint. ```bash ./otel-http-export-demo http://tracing-analysis-dc-hz.aliyuncs.com/adapt_xxxxx_xxxxx/api/otlp/traces ``` -------------------------------- ### Install Ansible with yum Source: https://help.aliyun.com/en/ansible/install-and-configure-ansible Run this command to install Ansible using the package manager. This is the first step in the setup process. ```plaintext sudo yum install ansible ``` -------------------------------- ### Update a Skill with npx skills add Source: https://help.aliyun.com/en/skillsportal/quickly-use-alibaba-cloud-skills Re-run the installation command to update an installed Skill to the latest version. This example updates the alibabacloud-resourcecenter-search Skill from the aliyun/alibabacloud-aiops-skills repository with full-depth installation. ```bash npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-resourcecenter-search --full-depth ``` -------------------------------- ### Create directory for imported templates Source: https://help.aliyun.com/en/terraform/import-resources-into-terraform Creates a directory named 'example' and changes into it to store imported templates and state files. ```bash mkdir example && cd example ``` -------------------------------- ### Create a directory for tutorial documents Source: https://help.aliyun.com/en/cloud-shell/user-guide/writing-a-tutorial Creates a directory named 'tutorials' in the current location to store tutorial files. ```plaintext mkdir tutorials ``` -------------------------------- ### Install Go OTLP HTTP dependencies Source: https://help.aliyun.com/en/opentelemetry/user-guide/use-managed-service-for-opentelemetry-to-submit-the-trace-data-of-a-go-application Use `go get` to install the required OpenTelemetry packages for HTTP export. The only difference from the gRPC dependencies is `otlptracehttp` instead of `otlptracegrpc`. ```shell go get go.opentelemetry.io/otel \ go.opentelemetry.io/otel/trace \ go.opentelemetry.io/otel/sdk \ go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp ``` -------------------------------- ### Go2Sky installation commands for supported libraries Source: https://help.aliyun.com/en/opentelemetry/user-guide/report-go-application-data-through-skywalking Run the corresponding 'go get' command for each library your project uses with Go2Sky. The skywalking-go agent instruments these libraries automatically without installation. ```bash go get -u github.com/SkyAPM/go2sky-plugins/sql ``` ```bash go get -u github.com/SkyAPM/go2sky-plugins/dubbo-go ``` ```bash go get -u github.com/SkyAPM/go2sky-plugins/gear ``` ```bash go get -u github.com/SkyAPM/go2sky-plugins/gin/v2 ``` ```bash go get -u github.com/SkyAPM/go2sky-plugins/gin/v3 ``` ```bash go get -u github.com/SkyAPM/go2sky-plugins/go-restful ``` ```bash go get -u github.com/SkyAPM/go2sky-plugins/gorm ``` ```bash go get -u github.com/SkyAPM/go2sky ``` ```bash go get -u github.com/SkyAPM/go2sky-plugins/kratos ``` ```bash go get -u github.com/SkyAPM/go2sky-plugins/logrus ``` ```bash go get -u github.com/SkyAPM/go2sky-plugins/micro ``` ```bash go get -u github.com/SkyAPM/go2sky-plugins/mongo ``` ```bash go get -u github.com/SkyAPM/go2sky-plugins/resty ``` ```bash go get -u github.com/SkyAPM/go2sky-plugins/zap ``` -------------------------------- ### Install middleware and run application Source: https://help.aliyun.com/en/opentelemetry/user-guide/use-jaeger-to-report-dotnet-application-data Install the middleware in the CustomersApi project and run the application. ```bash cd dotnet-demo/netcoreapp3.1/CustomersApi dotnet add package OpenTracing.Contrib.NetCore dotnet run --framework:netcoreapp3.1 ``` -------------------------------- ### Example compound troubleshooting prompt Source: https://help.aliyun.com/en/skillsportal/quickly-use-alibaba-cloud-skills Example prompt for an Agent with multiple Skills installed, combining resource search, ECS diagnosis, network reachability analysis, and security alert query in one conversation. ```plaintext The application on ECS instance i-bp1xxxxxxx occasionally times out when accessed from the public network. First, diagnose the health status of this instance. Then, analyze the network reachability from the public network to port 80 of this instance. Finally, check whether Cloud Security Center has any related security alerts in the last 24 hours. ``` -------------------------------- ### Navigate to the tutorial directory Source: https://help.aliyun.com/en/cloud-shell/copy-an-ecs-security-group Changes the current directory to the cloned tutorial repository. ```plaintext cd tutorial-ecs-copy-security-group ```