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

Add model/v1 #118

Merged
merged 3 commits into from
Jan 20, 2025
Merged

Add model/v1 #118

merged 3 commits into from
Jan 20, 2025

Conversation

yurishkuro
Copy link
Member

@yurishkuro yurishkuro commented Jan 20, 2025

Which problem is this PR solving?

Description of the changes

  • Add code gen for model.proto into model/v1 package
  • 🛑 breaking change: query.proto changed references to custom types to local TraceID/SpanID instead of importing the main jaeger repo
  • Copy minimal set of types from original model/ that are required by api_v2, such as TraceID, SpanID, and Flags required by model
  • Add go.mod to make it into importable library
  • Add basic go test to CI

How was this change tested?

  • go test ./model/v1

Checklist

Signed-off-by: Yuri Shkuro <github@ysh.us>
Signed-off-by: Yuri Shkuro <github@ysh.us>
Signed-off-by: Yuri Shkuro <github@ysh.us>
@yurishkuro yurishkuro merged commit 2a6ba69 into jaegertracing:main Jan 20, 2025
4 checks passed
@yurishkuro yurishkuro deleted the make-into-lib branch January 20, 2025 02:35
yurishkuro added a commit to jaegertracing/jaeger that referenced this pull request Jan 20, 2025
## Which problem is this PR solving?
- Part of #6494

## Description of the changes
- Bump jaeger-idl submodule
- Adjust code gen to account for different custom types due to
jaegertracing/jaeger-idl#118

## How was this change tested?
- CI

Signed-off-by: Yuri Shkuro <github@ysh.us>
Manik2708 pushed a commit to Manik2708/jaeger that referenced this pull request Jan 21, 2025
## Which problem is this PR solving?
- Part of jaegertracing#6494

## Description of the changes
- Bump jaeger-idl submodule
- Adjust code gen to account for different custom types due to
jaegertracing/jaeger-idl#118

## How was this change tested?
- CI

Signed-off-by: Yuri Shkuro <github@ysh.us>
yurishkuro added a commit to jaegertracing/jaeger that referenced this pull request Jan 21, 2025
## Which problem is this PR solving?
- Part of #6571
- Follow-up to jaegertracing/jaeger-idl#118

## Description of the changes
- Separate model files into more independent pieces that are easier to
move to jaeger-idl

## How was this change tested?
- CI

Signed-off-by: Yuri Shkuro <github@ysh.us>
yurishkuro pushed a commit to jaegertracing/jaeger that referenced this pull request Jan 21, 2025
)

## Which problem is this PR solving?

- Part of #6571

- Follow-up to jaegertracing/jaeger-idl#118

## Description of the changes
- Separate model files into more independent pieces that are easier to
move to jaeger-idl

## How was this change tested?
- `go test ./model/` 
- `go test ./internal/sampling/samplingstrategy/adaptive/`

## Checklist
- [x] I have read
https://github.com/jaegertracing/jaeger/blob/master/CONTRIBUTING_GUIDELINES.md
- [x] I have signed all commits
- [ ] I have added unit tests for the new functionality
- [ ] 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: nabil salah <nabil.salah203@gmail.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.

1 participant