Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Measuring a request #99

Open
kaihendry opened this issue Sep 9, 2021 · 2 comments
Open

Measuring a request #99

kaihendry opened this issue Sep 9, 2021 · 2 comments
Labels
question Further information is requested

Comments

@kaihendry
Copy link

Sorry, I have two questions RE AWS EMF and this library:

  1. Why isn't it part of the AWS JS SDK?

  2. Use case: Measure a fetch. Lambda functions typically depend on external services and I am wondering if EMF logging is a good approach to tracking the performance of these dependencies. Or is that best left to some AWS X-ray instrumentation?

@kaihendry
Copy link
Author

I've fleshed out an example here: https://github.com/kaihendry/yt-aws-emf/blob/main/hello-world/app.js

I'm still confused how to best capture in a metric:

  • http status code
  • duration

@kaihendry
Copy link
Author

I ended up doing something like: https://stackoverflow.com/a/69535668/4534

If it can be better, please let me know!

@markkuhn markkuhn added the question Further information is requested label Sep 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants