Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add shell script to ensure consistent version of OTEL semconv (#4652)
## Which problem is this PR solving? Resolves #4646 ## Description of the changes - Added scripts/check-semconv-version.sh to search the code for all usages of "go.opentelemetry.io/otel/semconv/v1.xx.x" and fail if they are not identical, with an error message and the source files along with their respective versions. - Added scripts/update-semconv-version.sh to fetch the latest version of semconv with curl and replace all references of "go.opentelemetry.io/otel/semconv/v1.xx.x" with the latest version. ## How was this change tested? I have tested the changes locally by modifying import statements ![Mismatch_Version_Test](https://github.com/jaegertracing/jaeger/assets/140232061/769ae5cd-0d3e-4f45-b5a1-e5cadb6b248e) ## 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 - [x] I have run lint and test steps successfully - for `jaeger`: `make lint test` - for `jaeger-ui`: `yarn lint` and `yarn test` --------- Signed-off-by: Harish Shan <[email protected]>
- Loading branch information