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

Improve: Translator use empty struct instead of nil pointer #6798

Closed
zhengkezhou1 opened this issue Mar 4, 2025 · 0 comments · Fixed by #6799
Closed

Improve: Translator use empty struct instead of nil pointer #6798

zhengkezhou1 opened this issue Mar 4, 2025 · 0 comments · Fixed by #6799

Comments

@zhengkezhou1
Copy link
Contributor

Requirement

The current method for converting ptrace.Traces to model.trace does not account for the conversion of nested structs (nil), which causes assertion failures in integration tests.

Problem

Integration tests failed.

Proposal

No response

Open questions

No response

github-merge-queue bot pushed a commit that referenced this issue Mar 5, 2025
## Which problem is this PR solving?
- Resolves #6798

## Description of the changes
- Added boundary case handling for empty fields during model conversion.
## How was this change tested?
- unit tests

## Checklist
- [x] I have read
https://github.com/jaegertracing/jaeger/blob/master/CONTRIBUTING_GUIDELINES.md
- [x] I have signed all commits
- [x] I have added unit tests for the new functionality
- [x] I have run lint and test steps successfully
  - for `jaeger`: `make lint test`
  - for `jaeger-ui`: `npm run lint` and `npm run test`

Signed-off-by: zzzk1 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant