Skip to content

APIGW v1 + httpAPI/v1 API parameterized routes#419

Merged
astuyve merged 8 commits intojordan.gonzalez/bottlecap/universal-instrumentationfrom
aj/apigw-v1
Oct 21, 2024
Merged

APIGW v1 + httpAPI/v1 API parameterized routes#419
astuyve merged 8 commits intojordan.gonzalez/bottlecap/universal-instrumentationfrom
aj/apigw-v1

Conversation

@astuyve
Copy link
Copy Markdown
Contributor

@astuyve astuyve commented Oct 21, 2024

@astuyve astuyve requested a review from a team as a code owner October 21, 2024 11:19
@astuyve astuyve changed the base branch from main to jordan.gonzalez/bottlecap/universal-instrumentation October 21, 2024 11:20
Comment on lines +8 to +13
use crate::lifecycle::invocation::triggers::{
api_gateway_http_event::APIGatewayHttpEvent, Trigger,
};

use super::triggers::api_gateway_rest_event::APIGatewayRestEvent;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
use crate::lifecycle::invocation::triggers::{
api_gateway_http_event::APIGatewayHttpEvent, Trigger,
};
use super::triggers::api_gateway_rest_event::APIGatewayRestEvent;
use crate::lifecycle::invocation::triggers::{
api_gateway_http_event::APIGatewayHttpEvent,
api_gateway_rest_event::APIGatewayRestEvent,
Trigger,
};

Comment on lines +67 to +69
debug!("MATCH V1 REST EVENT");
if let Some(t) = APIGatewayRestEvent::new(payload_value) {
debug!("ASTUYVE PARSING V1 REST EVENT");
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we remove this debug comments?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol yeah my bad

}

s.trace_id = invocation_span.trace_id;
debug!("Final Span: {:?}", self.inferred_span);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here

Copy link
Copy Markdown
Contributor

@duncanista duncanista left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some comments, but overall LGTM

@astuyve astuyve merged commit ee42f4f into jordan.gonzalez/bottlecap/universal-instrumentation Oct 21, 2024
@astuyve astuyve deleted the aj/apigw-v1 branch October 21, 2024 15:17
alexgallotta pushed a commit that referenced this pull request Nov 4, 2024
* feat: support APIGW v1

* feat: Tests for unparameterized payload working

* feat: parameterized test

* fix: specs

* fix: unwrap_or_default, route has no http verb but is parameterized.

* fix: lint

* fix: Remove debugs, consolidate import

* fix: oneline
duncanista pushed a commit that referenced this pull request Nov 15, 2024
* feat: support APIGW v1

* feat: Tests for unparameterized payload working

* feat: parameterized test

* fix: specs

* fix: unwrap_or_default, route has no http verb but is parameterized.

* fix: lint

* fix: Remove debugs, consolidate import

* fix: oneline
duncanista pushed a commit that referenced this pull request Nov 19, 2024
* feat: support APIGW v1

* feat: Tests for unparameterized payload working

* feat: parameterized test

* fix: specs

* fix: unwrap_or_default, route has no http verb but is parameterized.

* fix: lint

* fix: Remove debugs, consolidate import

* fix: oneline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants