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

Rename statsByStatusCode to statsByErrorCode #320

Merged
merged 1 commit into from
Jun 20, 2024

Conversation

DanielLavie
Copy link
Contributor

@DanielLavie DanielLavie commented Jun 20, 2024

What does this PR do?

Renames the statsByStatusCode field in KafkaAggregation to statsByErrorCode. Renaming a proto field doesn't break the wire protocol, so backward compatibility is not a concern in this case.

@DanielLavie DanielLavie requested review from a team as code owners June 20, 2024 08:59
@@ -1589,7 +1589,7 @@ message KafkaAggregation {
KafkaRequestHeader header = 1;
string topic = 2;
// The range of Kafka error codes spans from -1 to 119.
map<int32, KafkaStats> statsByStatusCode = 4;
map<int32, KafkaStats> statsByErrorCode = 4;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not simply stats?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It more clearly communicates that we are mapping error codes to the stats, which might not be immediately obvious to the average reader

Copy link

@dustmop dustmop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM for agent-shared-components

@DanielLavie DanielLavie merged commit eefe2a6 into master Jun 20, 2024
7 checks passed
mx-psi referenced this pull request in open-telemetry/opentelemetry-collector-contrib Jun 25, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/DataDog/agent-payload/v5](https://github.com/DataDog/agent-payload)
| `v5.0.122` -> `v5.0.123` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fDataDog%2fagent-payload%2fv5/v5.0.123?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fDataDog%2fagent-payload%2fv5/v5.0.123?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fDataDog%2fagent-payload%2fv5/v5.0.122/v5.0.123?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fDataDog%2fagent-payload%2fv5/v5.0.122/v5.0.123?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>DataDog/agent-payload
(github.com/DataDog/agent-payload/v5)</summary>

###
[`v5.0.123`](https://github.com/DataDog/agent-payload/releases/tag/v5.0.123)

[Compare
Source](https://github.com/DataDog/agent-payload/compare/v5.0.122...v5.0.123)

#### What's Changed

- Rename `statsByStatusCode` to statsByErrorCode by
[@&#8203;DanielLavie](https://github.com/DanielLavie) in
[https://github.com/DataDog/agent-payload/pull/320](https://github.com/DataDog/agent-payload/pull/320)

**Full Changelog**:
DataDog/agent-payload@v5.0.122...v5.0.123

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "on tuesday" (UTC), Automerge - At any
time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/open-telemetry/opentelemetry-collector-contrib).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MTMuMiIsInVwZGF0ZWRJblZlciI6IjM3LjQxMy4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiLCJyZW5vdmF0ZWJvdCJdfQ==-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: opentelemetrybot <107717825+opentelemetrybot@users.noreply.github.com>
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.

3 participants