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

feat(goavro) Adding method to return typename associated with Codec #285

Merged
merged 3 commits into from May 2, 2024

Conversation

mittal-aashay
Copy link
Contributor

Summary

Overview:
In order to identify the kafka topic name from a stream of topics, we need to identify the underlying type associated with the provided Codec data
The Codec.typeName field already contains this information but is currently package private and cannot be used outside of the package

This PR adds the TypeName method to Codec to expose the underlying type name outside the goavro package scope
This also adds the ShortName method to Name to expose the short name (i.e. record name excluding classpath) as a public method

Testing Done

Added unit tests

**Overview:**
In order to identify the kafka topic name from a stream of topics, we
need to identify the underlying type associated with the provided Codec
data
The `Codec.typeName` field already contains this information but is
currently package private and cannot be used outside of the package

This PR adds the `TypeName` method to `Codec` to expose the underlying
type name outside the goavro package scope
This also adds the `ShortName` method to `Name` to expose the short
name (i.e. record name excluding classpath) as a public method
@mittal-aashay mittal-aashay merged commit d517b19 into linkedin:master May 2, 2024
7 checks passed
codeboten pushed a commit to open-telemetry/opentelemetry-collector-contrib that referenced this pull request May 7, 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/linkedin/goavro/v2](https://togithub.com/linkedin/goavro)
| `v2.12.0` -> `v2.13.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2flinkedin%2fgoavro%2fv2/v2.13.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2flinkedin%2fgoavro%2fv2/v2.13.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2flinkedin%2fgoavro%2fv2/v2.12.0/v2.13.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2flinkedin%2fgoavro%2fv2/v2.12.0/v2.13.0?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>linkedin/goavro (github.com/linkedin/goavro/v2)</summary>

###
[`v2.13.0`](https://togithub.com/linkedin/goavro/releases/tag/v2.13.0):
Release to expose underlying TypeName in Codec

[Compare
Source](https://togithub.com/linkedin/goavro/compare/v2.12.0...v2.13.0)

This release updates the `Codec` type to surface the underlying typeName
via a public API

- Adds the `TypeName` method to `Codec` to expose the underlying type
name outside the goavro package scope
- Adds the `ShortName` method to `Name` to expose the short name (i.e.
record name excluding classpath) as a public method

Ref. PR:
[linkedin/goavro#285
by [@&#8203;mittal-aashay](https://togithub.com/mittal-aashay)

</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:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNDAuMTAiLCJ1cGRhdGVkSW5WZXIiOiIzNy4zNDAuMTAiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyIsInJlbm92YXRlYm90Il19-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: opentelemetrybot <107717825+opentelemetrybot@users.noreply.github.com>
rimitchell pushed a commit to rimitchell/opentelemetry-collector-contrib that referenced this pull request May 8, 2024
…y#32911)

[![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/linkedin/goavro/v2](https://togithub.com/linkedin/goavro)
| `v2.12.0` -> `v2.13.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2flinkedin%2fgoavro%2fv2/v2.13.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2flinkedin%2fgoavro%2fv2/v2.13.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2flinkedin%2fgoavro%2fv2/v2.12.0/v2.13.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2flinkedin%2fgoavro%2fv2/v2.12.0/v2.13.0?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>linkedin/goavro (github.com/linkedin/goavro/v2)</summary>

###
[`v2.13.0`](https://togithub.com/linkedin/goavro/releases/tag/v2.13.0):
Release to expose underlying TypeName in Codec

[Compare
Source](https://togithub.com/linkedin/goavro/compare/v2.12.0...v2.13.0)

This release updates the `Codec` type to surface the underlying typeName
via a public API

- Adds the `TypeName` method to `Codec` to expose the underlying type
name outside the goavro package scope
- Adds the `ShortName` method to `Name` to expose the short name (i.e.
record name excluding classpath) as a public method

Ref. PR:
[linkedin/goavro#285
by [@&open-telemetry#8203;mittal-aashay](https://togithub.com/mittal-aashay)

</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:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNDAuMTAiLCJ1cGRhdGVkSW5WZXIiOiIzNy4zNDAuMTAiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyIsInJlbm92YXRlYm90Il19-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: opentelemetrybot <107717825+opentelemetrybot@users.noreply.github.com>
jlg-io pushed a commit to jlg-io/opentelemetry-collector-contrib that referenced this pull request May 14, 2024
…y#32911)

[![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/linkedin/goavro/v2](https://togithub.com/linkedin/goavro)
| `v2.12.0` -> `v2.13.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2flinkedin%2fgoavro%2fv2/v2.13.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2flinkedin%2fgoavro%2fv2/v2.13.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2flinkedin%2fgoavro%2fv2/v2.12.0/v2.13.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2flinkedin%2fgoavro%2fv2/v2.12.0/v2.13.0?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>linkedin/goavro (github.com/linkedin/goavro/v2)</summary>

###
[`v2.13.0`](https://togithub.com/linkedin/goavro/releases/tag/v2.13.0):
Release to expose underlying TypeName in Codec

[Compare
Source](https://togithub.com/linkedin/goavro/compare/v2.12.0...v2.13.0)

This release updates the `Codec` type to surface the underlying typeName
via a public API

- Adds the `TypeName` method to `Codec` to expose the underlying type
name outside the goavro package scope
- Adds the `ShortName` method to `Name` to expose the short name (i.e.
record name excluding classpath) as a public method

Ref. PR:
[linkedin/goavro#285
by [@&open-telemetry#8203;mittal-aashay](https://togithub.com/mittal-aashay)

</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:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNDAuMTAiLCJ1cGRhdGVkSW5WZXIiOiIzNy4zNDAuMTAiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyIsInJlbm92YXRlYm90Il19-->

---------

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.

None yet

2 participants