Commit 4f03520
Implement custom protoc plugin to generate OTLP JSON class definitions (#4910)
* add opentelemetry-codegen-json package
* add opentelemetry-proto-json package
* update project files to incorporate new packages
* add 'Private :: Do Not Upload' to codegen pyproject.toml classifiers
* add @json_serde decorator and update runtime utility file name
* update docstring
* add typechecking and linting for json codegen package
* update to use 'path.as_posix()' for Windows compatability
* add 'importlib.invalidate_caches()' to generate code fixture
* add USERNAME=runner env var to github workflows for Windows compatability
* update workflows
* update tox.ini
* update to use inheritence for common JSON serialization/deserialization methods
* fix link in opentelemetry-proto-json README
* add TODO to remove 'passenv' from tox.ini once fully upgraded to pytest 8.x.x
---------
Co-authored-by: Aaron Abbott <aaronabbott@google.com>1 parent 63fbcb8 commit 4f03520
76 files changed
Lines changed: 10141 additions & 1081 deletions
File tree
- .github/workflows
- codegen/opentelemetry-codegen-json
- src/opentelemetry/codegen
- json
- runtime
- version
- tests
- proto/otel_test_json
- common/v1
- test/v1
- trace/v1
- opentelemetry-proto-json
- src/opentelemetry/proto_json
- collector
- logs
- v1
- metrics
- v1
- profiles
- v1development
- trace
- v1
- common
- v1
- logs
- v1
- metrics
- v1
- profiles
- v1development
- resource
- v1
- trace
- v1
- version
- tests
- scripts
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
72 | 110 | | |
73 | 111 | | |
74 | 112 | | |
| |||
0 commit comments