From 72b56dfcf6fdce65e74395a744c42e87e54b7c7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=99=9F=20Wu=20Sheng?= Date: Tue, 26 Mar 2024 09:15:14 +0800 Subject: [PATCH] Add required attributed in log-otlp.md (#12051) --- docs/en/setup/backend/log-otlp.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/en/setup/backend/log-otlp.md b/docs/en/setup/backend/log-otlp.md index 059c2862cb41..77c56daa9427 100644 --- a/docs/en/setup/backend/log-otlp.md +++ b/docs/en/setup/backend/log-otlp.md @@ -46,5 +46,10 @@ Also, because most of the language SDKs of OpenTelemetry do not support logging experimental, it's your responsibility to make sure the reported log data contains the following attributes, otherwise SkyWalking is not able to consume them: -- `service.name`: the name of the service that generates the log data, OpenTelemetry Java SDK (experimental) has this - attribute set, if you're using other SDK or agent, please check the corresponding doc. +- `service.name`: the name of the service that generates the log data. + +And several attributes are optional as add-on information for the logs before analyzing. +- `service.layer`: the layer of the service that generates the logs. The default value is `GENERAL` layer, which is 100% sampled defined by [LAL general rule](https://github.com/apache/skywalking/blob/master/oap-server/server-starter/src/main/resources/lal/default.yaml) +- `service.instance`: the instance name that generates the logs. The default value is empty. + +Note, that these attributes should be set manually through OpenTelemetry SDK or through [attribute#insert in OpenTelemetry Collector](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/processor/attributesprocessor/README.md).