-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #136 from lquerel/example-codegen-semconv-rust
[WIP] Code Generation with Weaver - Example of Code Generation for SemConv Attribute Registry and SemConv Metrics
- Loading branch information
Showing
40 changed files
with
2,700 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -175,7 +175,7 @@ jobs: | |
- name: Install cargo-tarpaulin | ||
run: cargo install cargo-tarpaulin | ||
- name: Gather coverage | ||
run: cargo tarpaulin --workspace --output-dir coverage --out lcov -e xtask -e weaver | ||
run: cargo tarpaulin --workspace --output-dir coverage --out lcov -e xtask -e weaver --exclude-files 'crates/weaver_forge/codegen_examples/expected_codegen/*' | ||
- name: Upload coverage reports to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
[package] | ||
name = "weaver_codegen_test" | ||
version = "0.1.0" | ||
authors.workspace = true | ||
repository.workspace = true | ||
license.workspace = true | ||
publish.workspace = true | ||
edition.workspace = true | ||
rust-version.workspace = true | ||
|
||
[lints] | ||
workspace = true | ||
|
||
[build-dependencies] | ||
weaver_common = { path = "../weaver_common" } | ||
weaver_cache = { path = "../weaver_cache" } | ||
weaver_forge = { path = "../weaver_forge" } | ||
weaver_resolver = { path = "../weaver_resolver" } | ||
weaver_semconv = { path = "../weaver_semconv" } | ||
walkdir.workspace = true | ||
|
||
[dependencies] | ||
opentelemetry = { version = "0.22.0", features = ["trace", "metrics", "logs", "otel_unstable"] } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Weaver CodeGen Test | ||
|
||
This crate is used to test the generation of an unofficial Rust OpenTelemetry Client API derived from a semantic | ||
convention registry. This crate is not intended to be published. It is used solely for testing and validation purposes. | ||
|
||
The generated Rust API client exposes a type-safe API (i.e., one that cannot be misused) that adheres to the signal | ||
specification defined in the semantic convention registry located in the semconv_registry directory. |
Oops, something went wrong.