Skip to content

Commit

Permalink
[chore] add info to avrologencodingextension README (open-telemetry#3…
Browse files Browse the repository at this point in the history
  • Loading branch information
atoulme committed Apr 26, 2024
1 parent 21a87ff commit d4999c0
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions extension/encoding/avrologencodingextension/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,21 @@
<!-- end autogenerated section -->

The `avrolog` encoding extension is used to unmarshal AVRO and insert it into the body of a log record. Marshalling is not supported.

The extension accepts a configuration option to specify the Avro schema to use to read the log record body.

Example:
```yaml
extensions:
avro_log_encoding:
schema: |
{
"type" : "record",
"namespace" : "example",
"name" : "Datapoint",
"fields" : [
{ "name" : "Key" , "type" : "string" },
{ "name" : "Value" , "type" : "int" }
]
}
```

0 comments on commit d4999c0

Please sign in to comment.