Skip to content

Commit

Permalink
Add required attributed in log-otlp.md (#12051)
Browse files Browse the repository at this point in the history
  • Loading branch information
wu-sheng authored Mar 26, 2024
1 parent eeef140 commit 72b56df
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions docs/en/setup/backend/log-otlp.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).

0 comments on commit 72b56df

Please sign in to comment.