Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove flags field #305

Merged
merged 1 commit into from
May 25, 2024
Merged

fix: remove flags field #305

merged 1 commit into from
May 25, 2024

Conversation

jacobmarble
Copy link
Member

@jacobmarble jacobmarble commented May 25, 2024

Helps open-telemetry/opentelemetry-collector-contrib#29896

The flags field is set as an unsigned integer, which is not compatible with InfluxDB 1.x. Luckily, the field is also not useful, as it stores a value chosen from an enum containing no useful values.

In this change, the flags field is removed from conversion. If it needs to be added in the future, we can expect that enough time will have passed that retention policies will have removed the prior flags field.

There are other fields that use the unsigned integer type, but those fields belong to Logs and Traces, which shouldn't be used with InfluxDB 1.x anyhow.

Helps open-telemetry/opentelemetry-collector-contrib#29896

The flags field is set as an unsigned integer, which is not compatible
with InfluxDB 1.x. Luckily, the field is also not useful, as it stores
a value chosen from an enum containing no useful values.

In this change, the flags field is removed from conversion. If it needs
to be added in the future, we can expect that enough time will have
passed that retention policies will have removed the prior `flags` field.
@jacobmarble jacobmarble requested a review from a team as a code owner May 25, 2024 22:31
@jacobmarble jacobmarble requested a review from epgif May 25, 2024 22:31
@jacobmarble jacobmarble merged commit fa9bd84 into main May 25, 2024
12 checks passed
@jacobmarble jacobmarble deleted the jgm-unsigned-integers branch May 25, 2024 22:33
jacobmarble added a commit to influxdata/telegraf that referenced this pull request May 25, 2024
jacobmarble added a commit to influxdata/telegraf that referenced this pull request May 26, 2024
mx-psi pushed a commit to open-telemetry/opentelemetry-collector-contrib that referenced this pull request May 27, 2024
**Description:** <Describe what has changed.>

This change removes the Metric signal `flags` field to/from InfluxDB
conversion. The InfluxDB field is type `uint` which is not supported in
InfluxDB v1 AND the Metric `flags` field is not particularly useful
(yet) in OpenTelemetry.

**Link to tracking Issue:** <Issue number if applicable>
Fixes #29896

**Testing:**
Material code changes and tests in
influxdata/influxdb-observability#305

**Documentation:** <Describe the documentation added.>
Small changes to docs in
influxdata/influxdb-observability#305
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant