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
Add support for using encoding extensions for unmarshalling
records transmitted via Amazon Data Firehose.
The "record_type" config is now deprecated and has been
replaced by "encoding". This new config setting supports all
of the existing encodings (cwlogs, cwmetrics otlp_v1) as well
as support for loading additional encodings via extensions.
Copy file name to clipboardExpand all lines: receiver/awsfirehosereceiver/README.md
+11-8Lines changed: 11 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,25 +45,28 @@ See [documentation](https://github.com/open-telemetry/opentelemetry-collector/bl
45
45
46
46
A `cert_file` and `key_file` are required.
47
47
48
-
### record_type:
49
-
The type of record being received from the delivery stream. Each unmarshaler handles a specific type, so the field allows the receiver to use the correct one.
48
+
### encoding:
49
+
50
+
The ID of an [encoding extension](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/extension/encoding) for decoding logs or metrics.
51
+
This configuration also supports the built-in encodings listed in the [Encodings](#encodings) section.
52
+
If no encoding is specified, then the receiver will default to a signal-specific encoding: `cwmetrics`for metrics, and `cwlogs` for logs.
50
53
51
-
default: `cwmetrics`
54
+
### record_type:
52
55
53
-
See the [Record Types](#record-types) section for all available options.
56
+
Deprecated, use `encoding` instead. `record_type` will be removed in a future release; it is an alias for `encoding`.
54
57
55
58
### access_key (Optional):
56
59
The access key to be checked on each request received. This can be set when creating or updating the delivery stream.
57
60
See [documentation](https://docs.aws.amazon.com/firehose/latest/dev/create-destination.html#create-destination-http) for details.
58
61
59
-
## Record Types
62
+
## Encodings
60
63
61
64
### cwmetrics
62
-
The record type for the CloudWatch metric stream. Expects the format for the records to be JSON.
65
+
The encoding for the CloudWatch metric stream. Expects the format for the records to be JSON.
63
66
See [documentation](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Metric-Streams.html) for details.
64
67
65
68
### cwlogs
66
-
The record type for the CloudWatch log stream. Expects the format for the records to be JSON.
69
+
The encoding for the CloudWatch log stream. Expects the format for the records to be JSON.
67
70
For example:
68
71
69
72
```json
@@ -84,5 +87,5 @@ For example:
84
87
```
85
88
86
89
### otlp_v1
87
-
The OTLP v1 format as produced by CloudWatch metric streams.
90
+
The OTLP v1 encoding as produced by CloudWatch metric streams.
88
91
See [documentation](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-metric-streams-formats-opentelemetry-100.html) for details.
0 commit comments