{"id":23235932,"url":"https://github.com/billmeyer/hello-world-nodejs","last_synced_at":"2025-04-05T20:36:50.279Z","repository":{"id":89566018,"uuid":"424311486","full_name":"billmeyer/hello-world-nodejs","owner":"billmeyer","description":null,"archived":false,"fork":false,"pushed_at":"2021-11-03T17:10:58.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-04-14T12:30:50.594Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/billmeyer.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":"2021-11-03T17:01:33.000Z","updated_at":"2021-11-03T17:11:00.000Z","dependencies_parsed_at":"2023-06-29T03:01:10.514Z","dependency_job_id":null,"html_url":"https://github.com/billmeyer/hello-world-nodejs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/billmeyer%2Fhello-world-nodejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/billmeyer%2Fhello-world-nodejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/billmeyer%2Fhello-world-nodejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/billmeyer%2Fhello-world-nodejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/billmeyer","download_url":"https://codeload.github.com/billmeyer/hello-world-nodejs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247399895,"owners_count":20932876,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-12-19T03:29:59.677Z","updated_at":"2025-04-05T20:36:50.254Z","avatar_url":"https://github.com/billmeyer.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hello-world-nodejs\n\n## Description\n\nA simple AWS Lambda function written and tested with Node.js 12.x and 14.x.  The function is wrapped with the SignalFX Lambda wrapper to send telemetry to the Splunk Observability cloud.\n\n## Deployment\n\n1. Create a new AWS Lambda function specifying Node.js 12.x or 14.x. \n\n2. Once the function is created, and the `signalfx-lambda-nodejs-wrapper` layer to the function.  This is done by specifying the ARN of the SignalFX Lambda Node.js Wrapper layer which can be found by visiting https://github.com/signalfx/lambda-layer-versions/blob/master/node/NODE.md.\n\n    NOTE: Be sure to select the wrapper that matches the region your Function is deployed in.\n\n3. Under the **Configuration** tab for your function, add the following **Environment variables**:\n\n    * `SIGNALFX_ACCESS_TOKEN`: `\u003cYOUR_SPLUNK_ACCESS_TOKEN\u003e`\n    * `SIGNALFX_ENDPOINT_URL`: `https://ingest.\u003cYOUR_SPLUNK_REALM\u003e.signalfx.com/v2/trace`\n\n4. Under the **Test** tab, specify a event with the JSON payload as:\n\n    ```json\n    {\n      \"data\": \"This is the data\",\n      \"options\": \"https://splunk.com\"\n    }\n    ```\n\n## Execution\n\nClick the **Test** button.  The Log output should like something like this:\n\n```json\nSTART RequestId: d38ca0c5-1da8-4752-974d-e93fe235abc3 Version: $LATEST\n2021-11-03T17:09:23.155Z\td38ca0c5-1da8-4752-974d-e93fe235abc3\tINFO\tStatus: 301\n2021-11-03T17:09:23.192Z\td38ca0c5-1da8-4752-974d-e93fe235abc3\tINFO\tHeaders: {\"date\":\"Wed, 03 Nov 2021 17:04:44 GMT\",\"server\":\"Apache/2.4.37 (Red Hat Enterprise Linux) OpenSSL/1.1.1\",\"strict-transport-security\":\"max-age=63072000; includeSubDomains; preload\",\"x-frame-options\":\"DENY\",\"x-content-type-options\":\"nosniff\",\"location\":\"https://www.splunk.com/\",\"content-length\":\"231\",\"connection\":\"close\",\"content-type\":\"text/html; charset=iso-8859-1\"}\n2021-11-03T17:09:23.195Z\td38ca0c5-1da8-4752-974d-e93fe235abc3\tINFO\tSuccessfully processed HTTPS response\n2021-11-03T17:09:23.388Z\td38ca0c5-1da8-4752-974d-e93fe235abc3\tERROR\terror: Failed to send datapoint: 404 404 page not found\n \nEND RequestId: d38ca0c5-1da8-4752-974d-e93fe235abc3\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbillmeyer%2Fhello-world-nodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbillmeyer%2Fhello-world-nodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbillmeyer%2Fhello-world-nodejs/lists"}