-
Notifications
You must be signed in to change notification settings - Fork 0
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 code and scheme generation #20
Merged
Merged
Commits on Feb 28, 2024
-
Add code and scheme generation
Problem: - Ensure the Attributes method of Exprotable interface are generated automatically for the telemetry data types. - Ensure the avro scheme (.avdl) is generated automatically for the telemetry data types. Solution: - Add generator tool in cmd/generator that generates code (Attributes method) and the scheme. - Generator can be used in //go:generate annotations in go source files. - Generator has "generator" build tag so that it is not included into the telemetry library by default. - Generator uses golang.org/x/tools/go/packages to parse source files. Testing: - Unit tests of parsing. - Unit tests of code and scheme generation - ensuring non-zero output. - Unit tests of generated code in cmd/generator/tests package - Manual validation of the generated scheme (cmd/generator/tests/data.avdl) using Apache Avro IDL Scheme Support IntelliJ plugin. CLOSES - #18 Co-authored-by: Saylor Berman <s.berman@f5.com> Co-authored-by: Ciara Stacke <c.stacke@f5.com>
Configuration menu - View commit details
-
Copy full SHA for 530a4fb - Browse repository at this point
Copy the full SHA 530a4fbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9f2926e - Browse repository at this point
Copy the full SHA 9f2926eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 78c2dbf - Browse repository at this point
Copy the full SHA 78c2dbfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 020a0cc - Browse repository at this point
Copy the full SHA 020a0ccView commit details -
Configuration menu - View commit details
-
Copy full SHA for 32abe88 - Browse repository at this point
Copy the full SHA 32abe88View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5094646 - Browse repository at this point
Copy the full SHA 5094646View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9a4d13d - Browse repository at this point
Copy the full SHA 9a4d13dView commit details -
Configuration menu - View commit details
-
Copy full SHA for f676004 - Browse repository at this point
Copy the full SHA f676004View commit details -
Configuration menu - View commit details
-
Copy full SHA for 05d1255 - Browse repository at this point
Copy the full SHA 05d1255View commit details -
Fix a bug when parsing a struct in the github.com/nginxinc/telemetry-…
…exporter/pkg/telemetry package
Configuration menu - View commit details
-
Copy full SHA for 86bf656 - Browse repository at this point
Copy the full SHA 86bf656View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.