Skip to content

Commit

Permalink
add registration machanism section
Browse files Browse the repository at this point in the history
  • Loading branch information
mrproliu committed Jul 12, 2023
1 parent 70a5ca5 commit 657a967
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions docs/en/agent/tracing-metrics-logging.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@ For a detailed list of supported plugins, [please refer to the documentation](./
This document aims to provide you with some configuration information for your usage.
Please ensure that you have followed the [documentation to successfully install the SkyWalking Go Agent into your application](../setup/gobuild.md).

## Registration Mechanism

The Go Agent would register the program with the SkyWalking backend at startup and maintain a heartbeat so that it can be queried and displayed in the SkyWalking UI.

This contains the following two key configurations:

| Name | Environment Key | Default Value | Description |
|-------------------------|-----------------|------------------------|-------------------------------------------------------------------------------------------------------------------------------------------|
| agent.service_name | SW_AGENT_NAME | Your_Application_Name | The name of the service which showed in UI. |
| agent.instance_env_name | | SW_AGENT_INSTANCE_NAME | To obtain the environment variable key for the instance name, if it cannot be obtained, an instance name will be automatically generated. |

## Tracing

Distributed tracing is the most common form of plugin in the Go Agent, and it becomes active with each new incoming request. By default, all plugins are enabled. For a specific list of plugins, please [refer to the documentation](./support-plugins.md#tracing-plugins).
Expand All @@ -15,8 +26,6 @@ The basic configuration is as follows:

| Name | Environment Key | Default Value | Description |
|-------------------------|-------------------|-----------------------|-------------------------------------------------------------------------------------------------------------------------------------------|
| agent.service_name | SW_AGENT_NAME | Your_Application_Name | The name of the service which showed in UI. |
| agent.instance_env_name | SW_AGENT_INSTANCE | | To obtain the environment variable key for the instance name, if it cannot be obtained, an instance name will be automatically generated. |
| agent.sampler | SW_AGENT_SAMPLER | 1 | Sampling rate of tracing data, which is a floating-point value that must be between 0 and 1. |

## Metrics
Expand Down

0 comments on commit 657a967

Please sign in to comment.