Skip to content

Commit

Permalink
logger: adjust logger to receive logs blobs (#1172)
Browse files Browse the repository at this point in the history
* codegen: removed the otel layer generation

* proto: updated logger proto file

* logger: add store_logs RPC impl

* logger: fixed tests

* logger: decreased the visibility for Log type

* logger: remove the unwrap

* proto/logger: differentiate between a fetched/stored log items

* logger: simplify tests

* runtime: removed tracing/otel dependencies

* runtime: removed the tracing dependencies

* codegen: cleanup tracing layers and tests

* runtime/next: fix compilation

* logger: remove claim verification on store_logs

* logger: implemented from_stored for StoredLogItem convertion to Log

* codegen: readd a missing import

* codegen: fix tests

* addressed P review

* logger: removed integration test comment

* logger/tests: remove the DeploymentPush claim scope

* address orhun feedback

* logger: fixed error message typo

* address Johan review

* logger/proto: remove dedup protobuf defs
  • Loading branch information
iulianbarbu authored Aug 24, 2023
1 parent f04245f commit 149e9b0
Show file tree
Hide file tree
Showing 19 changed files with 338 additions and 1,157 deletions.
8 changes: 0 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions codegen/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@ mod next;
#[cfg(feature = "frameworks")]
mod shuttle_main;

use proc_macro::TokenStream;
use proc_macro_error::proc_macro_error;

#[cfg(feature = "frameworks")]
#[proc_macro_error]
#[proc_macro_error::proc_macro_error]
#[proc_macro_attribute]
pub fn main(attr: TokenStream, item: TokenStream) -> TokenStream {
pub fn main(
attr: proc_macro::TokenStream,
item: proc_macro::TokenStream,
) -> proc_macro::TokenStream {
shuttle_main::r#impl(attr, item)
}

#[cfg(feature = "next")]
#[proc_macro_error]
#[proc_macro_error::proc_macro_error]
#[proc_macro]
pub fn app(item: TokenStream) -> TokenStream {
pub fn app(item: proc_macro::TokenStream) -> proc_macro::TokenStream {
use next::App;
use syn::{parse_macro_input, File};

Expand Down
Loading

0 comments on commit 149e9b0

Please sign in to comment.