Add docs for virtual database tags (#307)

* Add docs for virtual database tags

* Update CHANGES.md
This commit is contained in:
吴晟 Wu Sheng 2022-09-11 20:46:57 +08:00 committed by GitHub
parent 6fce184cfe
commit d0aa2c5165
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 1 deletions

View File

@ -15,7 +15,8 @@ Release Notes.
#### Documentation
* Update `configuration` doc about overriding default value as empty map/list accordingly.
* Update plugin dev tags for cache relative tags
* Update plugin dev tags for cache relative tags.
* Add plugin dev docs for virtual database tags.
All issues and pull requests are [here](https://github.com/apache/skywalking/milestone/150?closed=1)

View File

@ -186,6 +186,19 @@ The value of `x-le` should be in JSON format. There are two options:
}
```
#### Vitural Database Relative Tags
SkyWalking analysis Database(SQL-like) performance metrics through the following tags.
```java
public static final StringTag DB_TYPE = new StringTag(3, "db.type");
public static final StringTag DB_STATEMENT = new StringTag(5, "db.statement");
```
* `db.type` records database type, such as sql, cassandra, Elasticsearch.
* `db.statement`records the sql statement of the database access.
Read [backend's virtual database doc](https://skywalking.apache.org/docs/main/next/en/setup/service-agent/virtual-database/) for more details.
#### Vitural Cache Relative Tags
Skywalking analysis cache performance related metrics through the following tags.