feat: add support for OTEL logs
feat: add support for OTEL logs
This commit is contained in:
@@ -11,22 +11,40 @@ processors:
|
||||
actions:
|
||||
- action: insert
|
||||
key: loki.attribute.labels
|
||||
value: log.file, log.line, log.module_path, http.request_id, http.uri
|
||||
value: context, code.filepath, code.namespace, code.function, code.lineno, http.request.method, http.request.body.size, url.full, url.scheme, url.path, http.route, http.response.status_code
|
||||
- action: insert
|
||||
from_attribute: log.file
|
||||
key: log.file
|
||||
from_attribute: context
|
||||
key: context
|
||||
- action: insert
|
||||
from_attribute: log.line
|
||||
key: log.line
|
||||
from_attribute: code.namespace
|
||||
key: code.namespace
|
||||
- action: insert
|
||||
from_attribute: log.module_path
|
||||
key: log.module_path
|
||||
from_attribute: code.function
|
||||
key: code.function
|
||||
- action: insert
|
||||
from_attribute: http.request_id
|
||||
key: http.request_id
|
||||
from_attribute: code.lineno
|
||||
key: code.lineno
|
||||
- action: insert
|
||||
from_attribute: http.uri
|
||||
key: http.uri
|
||||
from_attribute: http.request.method
|
||||
key: http.request.method
|
||||
- action: insert
|
||||
from_attribute: http.request.body.size
|
||||
key: http.request.body.size
|
||||
- action: insert
|
||||
from_attribute: http.response.status_code
|
||||
key: http.response.status_code
|
||||
- action: insert
|
||||
from_attribute: url.full
|
||||
key: url.full
|
||||
- action: insert
|
||||
from_attribute: url.scheme
|
||||
key: url.scheme
|
||||
- action: insert
|
||||
from_attribute: url.path
|
||||
key: url.path
|
||||
- action: insert
|
||||
from_attribute: http.route
|
||||
key: http.route
|
||||
- action: insert
|
||||
key: loki.format
|
||||
value: raw
|
||||
|
||||
Reference in New Issue
Block a user