{"id":14989307,"url":"https://github.com/zmrfzn/lambda-opentelemetry","last_synced_at":"2026-03-27T01:56:11.361Z","repository":{"id":213253027,"uuid":"720753580","full_name":"zmrfzn/lambda-opentelemetry","owner":"zmrfzn","description":"AWS Lambda instrumentation using Open Telemetry SDKs. Project initialised using serverless framework","archived":false,"fork":false,"pushed_at":"2024-05-20T07:15:17.000Z","size":103,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-19T05:16:27.755Z","etag":null,"topics":["koa","lambda-functions","newrelic","nodejs","opentelemetry","opentelemetry-javascript"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zmrfzn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-19T13:56:22.000Z","updated_at":"2025-02-08T06:15:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"37719d6a-b0f1-4663-b66f-9615c2e58521","html_url":"https://github.com/zmrfzn/lambda-opentelemetry","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"d9173532527064f9b05c180dfc5d01c407b97b67"},"previous_names":["zmrfzn/lambda-opentelemetry"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zmrfzn/lambda-opentelemetry","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmrfzn%2Flambda-opentelemetry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmrfzn%2Flambda-opentelemetry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmrfzn%2Flambda-opentelemetry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmrfzn%2Flambda-opentelemetry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zmrfzn","download_url":"https://codeload.github.com/zmrfzn/lambda-opentelemetry/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmrfzn%2Flambda-opentelemetry/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31008459,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-27T01:56:05.093Z","status":"ssl_error","status_checked_at":"2026-03-27T01:55:48.776Z","response_time":114,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["koa","lambda-functions","newrelic","nodejs","opentelemetry","opentelemetry-javascript"],"created_at":"2024-09-24T14:18:06.751Z","updated_at":"2026-03-27T01:56:11.341Z","avatar_url":"https://github.com/zmrfzn.png","language":"JavaScript","readme":"\u003c!--\ntitle: 'Serverless Framework Node Koa API on AWS'\ndescription: 'This template demonstrates how to develop and deploy a simple Node Koa API running on AWS Lambda using the traditional Serverless Framework.'\nlayout: Doc\nframework: v3\nplatform: AWS\nlanguage: nodeJS\npriority: 1\nauthorLink: 'https://github.com/serverless'\nauthorName: 'Serverless, inc.'\nauthorAvatar: 'https://avatars1.githubusercontent.com/u/13742415?s=200\u0026v=4'\n--\u003e\n\n## Table of contents\n- [Serverless Framework Node Koa API on AWS](#serverless-framework-node-koa-api-on-aws)\n  - [Anatomy of the template](#anatomy-of-the-template)\n  - [Usage](#usage)\n    - [Deployment](#deployment)\n    - [Invocation](#invocation)\n    - [Local development](#local-development)\n\n# Serverless Framework Node Koa API on AWS\n\nThis template demonstrates how to develop and deploy a simple Node Koa API service running on AWS Lambda using the traditional Serverless Framework.\n\n## Anatomy of the template\n\nThis template configures a single function, `api`, which is responsible for handling all incoming requests thanks to the `httpApi` event. To learn more about `httpApi` event configuration options, please refer to [httpApi event docs](https://www.serverless.com/framework/docs/providers/aws/events/http-api/). As the event is configured in a way to accept all incoming requests, `koa` framework is responsible for routing and handling requests internally. Implementation takes advantage of `serverless-http` package, which allows you to wrap existing `koa` applications. To learn more about `serverless-http`, please refer to corresponding [GitHub repository](https://github.com/dougmoscrop/serverless-http).\n\n## Usage\n\n### Deployment\n\nInstall dependencies with:\n\n```\nnpm install\n```\n\nand then deploy with:\n\n```\nserverless deploy\n```\n\nAfter running deploy, you should see output similar to:\n\n```bash\nDeploying aws-node-koa-api-project to stage dev (us-east-1)\n\n✔ Service deployed to stack aws-node-koa-api-project-dev (196s)\n\nendpoint: ANY - https://xxxxxxxxxx.execute-api.us-east-1.amazonaws.com\nfunctions:\n  api: aws-node-koa-api-project-dev-api (766 kB)\n```\n\n_Note_: In current form, after deployment, your API is public and can be invoked by anyone. For production deployments, you might want to configure an authorizer. For details on how to do that, refer to [`httpApi` event docs](https://www.serverless.com/framework/docs/providers/aws/events/http-api/).\n\n### Invocation\n\nAfter successful deployment, you can call the created application via HTTP:\n\n```bash\ncurl https://xxxxxxx.execute-api.us-east-1.amazonaws.com/\n```\n\nWhich should result in the following response:\n\n```\n{\"message\":\"Hello from root!\"}\n```\n\nCalling the `/hello` path with:\n\n```bash\ncurl https://xxxxxxx.execute-api.us-east-1.amazonaws.com/hello\n```\n\nShould result in the following response:\n\n```bash\n{\"message\":\"Hello from path!\"}\n```\n\nIf you try to invoke a path or method that does not have a configured handler, e.g. with:\n\n```bash\ncurl https://xxxxxxx.execute-api.us-east-1.amazonaws.com/nonexistent\n```\n\nYou should receive the following response:\n\n```bash\n{\"error\":\"Not Found\"}\n```\n\n### Local development\n\nIt is also possible to emulate API Gateway and Lambda locally by using `serverless-offline` plugin. In order to do that, execute the following command:\n\n```bash\nserverless plugin install -n serverless-offline\n```\n\nIt will add the `serverless-offline` plugin to `devDependencies` in `package.json` file as well as will add it to `plugins` in `serverless.yml`.\n\nAfter installation, you can start local emulation with:\n\n```\nserverless offline\n```\n\nTo learn more about the capabilities of `serverless-offline`, please refer to its [GitHub repository](https://github.com/dherault/serverless-offline).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzmrfzn%2Flambda-opentelemetry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzmrfzn%2Flambda-opentelemetry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzmrfzn%2Flambda-opentelemetry/lists"}