You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: CHANGELOG.md
+1
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,7 @@ All notable changes to this project will be documented in this file.
11
11
- Field `instance_id` added to `kafka`, `kafka_franz`, `ockam_kafka`, `redpanda`, `redpanda_common`, and `redpanda_migrator` inputs. (@rockwotj)
12
12
- Fields `rebalance_timeout`, `session_timeout` and `heartbeat_interval` added to the `kafka_franz`, `redpanda`, `redpanda_common`, `redpanda_migrator` and `ockam_kafka` inputs. (@rockwotj)
13
13
- Field `avro.preserve_logical_types` for processor `schema_registry_decode` was added to preserve logical types instead of decoding them as their primitive representation. (@rockwotj)
14
+
- Processor `schema_registry_decode` now adds metadata `schema_id` for the schema's ID in the schema registry. (@rockwotj)
Copy file name to clipboardexpand all lines: docs/modules/components/pages/processors/schema_registry_decode.adoc
+6
Original file line number
Diff line number
Diff line change
@@ -105,6 +105,12 @@ However, it is possible to instead create documents in https://pkg.go.dev/github
105
105
106
106
This processor decodes protobuf messages to JSON documents, you can read more about JSON mapping of protobuf messages here: https://developers.google.com/protocol-buffers/docs/proto3#json
107
107
108
+
== Metadata
109
+
110
+
This processor also adds the following metadata to each outgoing message:
111
+
112
+
schema_id: the ID of the schema in the schema registry that was associated with the message.
Copy file name to clipboardexpand all lines: internal/impl/confluent/processor_schema_registry_decode.go
+7
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,12 @@ However, it is possible to instead create documents in https://pkg.go.dev/github
60
60
== Protobuf format
61
61
62
62
This processor decodes protobuf messages to JSON documents, you can read more about JSON mapping of protobuf messages here: https://developers.google.com/protocol-buffers/docs/proto3#json
63
+
64
+
== Metadata
65
+
66
+
This processor also adds the following metadata to each outgoing message:
67
+
68
+
schema_id: the ID of the schema in the schema registry that was associated with the message.
63
69
`).
64
70
Field(service.NewBoolField("avro_raw_json").
65
71
Description("Whether Avro messages should be decoded into normal JSON (\"json that meets the expectations of regular internet json\") rather than https://avro.apache.org/docs/current/specification/_print/#json-encoding[Avro JSON^]. If `true` the schema returned from the subject should be decoded as https://pkg.go.dev/github.com/linkedin/goavro/v2#NewCodecForStandardJSONFull[standard json^] instead of as https://pkg.go.dev/github.com/linkedin/goavro/v2#NewCodec[avro json^]. There is a https://github.com/linkedin/goavro/blob/5ec5a5ee7ec82e16e6e2b438d610e1cab2588393/union.go#L224-L249[comment in goavro^], the https://github.com/linkedin/goavro[underlining library used for avro serialization^], that explains in more detail the difference between the standard json and avro json.").
0 commit comments