Categorygithub.com/open-telemetry/opentelemetry-collector-contrib/extension/encoding/jsonlogencodingextension
# README
JSON Log encoding extension
Status | |
---|---|
Stability | alpha |
Distributions | [] |
Issues | |
Code Owners | @VihasMakwana, @atoulme |
Configuration
Name | Description | Default |
---|---|---|
mode | What mode of the JSON encoding extension you want | body |
Mode
body Mode
The body
mode of the JSON encoding extension is used to marshal or unmarshal the JSON log body, ignoring other log fields.
body_with_inline_attributes
The body_with_inline_attributes
mode within the JSON encoding extension grabs the resource and attributes and adds them as key value pairs to the JSON body. It iterates through all the logs and creates a JSON array like the following example:
[
{
"body": {
"log": "test"
},
"resourceAttributes": {
"test": "logs-test"
},
"logAttributes": {
"foo": "bar"
}
},
{
"body": "log testing",
"resource": {
"test": "logs-test"
}
}
]
# Functions
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author