Skip to content

feat(bottlecap): add SNS inferred spans#437

Merged
duncanista merged 38 commits intojordan.gonzalez/bottlecap/universal-instrumentationfrom
jordan.gonzalez/bottlecap/sns
Nov 8, 2024
Merged

feat(bottlecap): add SNS inferred spans#437
duncanista merged 38 commits intojordan.gonzalez/bottlecap/universal-instrumentationfrom
jordan.gonzalez/bottlecap/sns

Conversation

@duncanista
Copy link
Copy Markdown
Contributor

@duncanista duncanista commented Nov 7, 2024

What?

Adds inferring of SNS services triggering AWS Lambda
image

How?

Added a new trigger implementation for SQS Records

Notes

Not doing double hop inferred spans yet

astuyve and others added 30 commits October 23, 2024 13:27
or else theres nothing to extract, reset values also for next inferr, no need to keep state after we complete
and also move some variables
Base automatically changed from aj/sns-sqs to jordan.gonzalez/bottlecap/universal-instrumentation November 7, 2024 18:51
@duncanista duncanista marked this pull request as ready for review November 7, 2024 20:08
@duncanista duncanista requested a review from a team as a code owner November 7, 2024 20:08
@duncanista duncanista merged commit 30595c2 into jordan.gonzalez/bottlecap/universal-instrumentation Nov 8, 2024
@duncanista duncanista deleted the jordan.gonzalez/bottlecap/sns branch November 8, 2024 20:13
duncanista added a commit that referenced this pull request Nov 15, 2024
* wip: sqs

* feat: sqs tests

* invert duration check

* remove duration set

* fmt and add `test_get_arn`

* remove unneeded reference

* remove unneeded comments

* add `get_carrier` implementation for `SqsRecord`

* add trace context to `sqs_event.json`

* fix: resource_names is not needed

* fix: don't deserialize body

* avoid `use super::...`

* fix unit tests

* set carrier and trigger tags

* remove duplicate tag

* fmt

* pass headers to `on_invocation_end`

* infer first, then extract

or else theres nothing to extract, reset values also for next inferr, no need to keep state after we complete

* reset values on every infer

* add `sns_event.rs`

* add `sns_event*.json` payloads

* add `base64_to_string` method

and also move some variables

* surrender resource

* use `SnsRecord` for inferred spans

* move some constants

* add missing trigger tags

* missed one case

* update unit tests

* update `tt` to `t.get_tags()`

* fmt

* typo

---------

Co-authored-by: AJ Stuyvenberg <astuyve@gmail.com>
duncanista added a commit that referenced this pull request Nov 19, 2024
* wip: sqs

* feat: sqs tests

* invert duration check

* remove duration set

* fmt and add `test_get_arn`

* remove unneeded reference

* remove unneeded comments

* add `get_carrier` implementation for `SqsRecord`

* add trace context to `sqs_event.json`

* fix: resource_names is not needed

* fix: don't deserialize body

* avoid `use super::...`

* fix unit tests

* set carrier and trigger tags

* remove duplicate tag

* fmt

* pass headers to `on_invocation_end`

* infer first, then extract

or else theres nothing to extract, reset values also for next inferr, no need to keep state after we complete

* reset values on every infer

* add `sns_event.rs`

* add `sns_event*.json` payloads

* add `base64_to_string` method

and also move some variables

* surrender resource

* use `SnsRecord` for inferred spans

* move some constants

* add missing trigger tags

* missed one case

* update unit tests

* update `tt` to `t.get_tags()`

* fmt

* typo

---------

Co-authored-by: AJ Stuyvenberg <astuyve@gmail.com>
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