Skip to content

Commit

Permalink
adapt versions
Browse files Browse the repository at this point in the history
Signed-off-by: odubajDT <[email protected]>
  • Loading branch information
odubajDT committed Dec 20, 2024
1 parent f3090b0 commit 0569f6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion receiver/cloudfoundryreceiver/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ The receiver maps the envelope attribute tags to the following OpenTelemetry att
The `cloudfoundry.resourceAttributes.allow` [feature gate](https://github.com/open-telemetry/opentelemetry-collector/blob/main/featuregate/README.md#collector-feature-gates) allows the envelope tags being copied to the metrics as resource attributes instead of datapoint attributes (default `false`).
Therefore all `org.cloudfoundry.*` datapoint attributes won't be present anymore on metrics datapoint level, but on resource level instead, since the attributes describe the resource and not the datapoints itself.

The `cloudfoundry.resourceAttributes.allow` feature gate is available since version `v0.109.0` and will be held at least for 2 versions (`v0.111.0`) until promoting to `beta` and another 2 vesions (`v0.113.0`) until promoting to `stable`.
The `cloudfoundry.resourceAttributes.allow` feature gate is available since version `v0.117.0` and will be held at least for 2 versions (`v0.119.0`) until promoting to `beta` and another 2 vesions (`v0.121.0`) until promoting to `stable`.

Below you can see the list of attributes that are present the resource level instead of datapoint level (when `cloudfoundry.resourceAttributes.allow` feature gate is enabled):

Expand Down
2 changes: 1 addition & 1 deletion receiver/cloudfoundryreceiver/converter.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ var allowResourceAttributes = featuregate.GlobalRegistry().MustRegister(
"cloudfoundry.resourceAttributes.allow",
featuregate.StageAlpha,
featuregate.WithRegisterDescription("When enabled, envelope tags are copied to the metrics as resource attributes instead of datapoint attributes"),
featuregate.WithRegisterFromVersion("v0.109.0"),
featuregate.WithRegisterFromVersion("v0.117.0"),
)

func convertEnvelopeToMetrics(envelope *loggregator_v2.Envelope, metricSlice pmetric.MetricSlice, startTime time.Time) {
Expand Down

0 comments on commit 0569f6b

Please sign in to comment.