{"id":37206295,"url":"https://github.com/lightstep/opentelemetry-lambda-extension","last_synced_at":"2026-01-14T23:45:05.595Z","repository":{"id":57556882,"uuid":"312714167","full_name":"lightstep/opentelemetry-lambda-extension","owner":"lightstep","description":"OpenTelemetry AWS Lambda Extension","archived":true,"fork":false,"pushed_at":"2020-12-07T22:56:05.000Z","size":139,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":57,"default_branch":"main","last_synced_at":"2024-06-20T09:42:16.070Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lightstep.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-11-14T00:27:17.000Z","updated_at":"2023-01-28T09:34:06.000Z","dependencies_parsed_at":"2022-08-25T19:10:21.191Z","dependency_job_id":null,"html_url":"https://github.com/lightstep/opentelemetry-lambda-extension","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lightstep/opentelemetry-lambda-extension","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightstep%2Fopentelemetry-lambda-extension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightstep%2Fopentelemetry-lambda-extension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightstep%2Fopentelemetry-lambda-extension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightstep%2Fopentelemetry-lambda-extension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lightstep","download_url":"https://codeload.github.com/lightstep/opentelemetry-lambda-extension/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightstep%2Fopentelemetry-lambda-extension/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28439533,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T22:37:52.437Z","status":"ssl_error","status_checked_at":"2026-01-14T22:37:31.496Z","response_time":107,"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":[],"created_at":"2026-01-14T23:45:04.892Z","updated_at":"2026-01-14T23:45:05.576Z","avatar_url":"https://github.com/lightstep.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenTelemetry AWS Lambda Extension\n*NOTE: This repo has been moved to: https://github.com/open-telemetry/opentelemetry-lambda-extension*\n\n*NOTE: This is an experimental AWS Lambda Extension for OpenTelemetry*\n\nThe OpenTelemetry Lambda Extension provides a mechanism to export telemetry aynchronously from AWS Lambdas. It does this by embedding an [OpenTelemetry Collector](https://github.com/open-telemetry/opentelemetry-collector) inside an [AWS Extension Layer](https://aws.amazon.com/blogs/compute/introducing-aws-lambda-extensions-in-preview/). This allows lambdas to use the OpenTelemetry Collector Exporter to send traces and metrics to any configured backend.\n\n## Installing\n\nTo install the OpenTelemetry Lambda Extension to an existing Lambda function using the `aws` CLI:\n\n```\naws lambda update-function-configuration --function-name Function --layers arn:aws:lambda:\u003cAWS REGION\u003e:297975325230:layer:opentelemetry-lambda-extension:8\n```\n\nAlternatively, to configure the OpenTelemetry Lambda Extension via SAM, add the following configuration:\n\n```yaml\n  Function:\n    Type: AWS::Serverless::Function\n    Properties:\n      Layers:\n        - arn:aws:lambda:\u003cAWS REGION\u003e:297975325230:layer:opentelemetry-lambda-extension:8\n      ...\n      Environment:\n        Variables:\n          OPENTELEMETRY_COLLECTOR_CONFIG_FILE: /var/task/collector.yaml\n```\n\n## Configuration\n\nThe OpenTelemetry Collector uses yaml for configuration. To configure the collector, add a `collector.yaml` to your function and specifiy its location via the `OPENTELEMETRY_COLLECTOR_CONFIG_FILE` environment file.\n\nHere is a sample configuration file:\n\n```yaml\nreceivers:\n  otlp:\n    protocols:\n      grpc:\n      http:\nexporters:\n  otlp:\n    endpoint: destination:1234\n    headers: {\"header1\":\"value1\"}\nprocessors:\n  batch:\n\nservice:\n  extensions:\n  pipelines:\n    traces:\n      receivers: [otlp]\n      processors: [batch]\n      exporters: [otlp]\n```\n\nOnce the file has been deployed with a Lambda, configuring the `OPENTELEMETRY_COLLECTOR_CONFIG_FILE` will tell the OpenTelemetry extension where to find the collector configuration:\n\n```\naws lambda update-function-configuration --function-name Function --environment Variables={OPENTELEMETRY_COLLECTOR_CONFIG_FILE=/var/task/collector.yaml}\n```\n\nYou can configure environment variables via yaml as well:\n\n```yaml\n  Function:\n    Type: AWS::Serverless::Function\n    Properties:\n      ...\n      Environment:\n        Variables:\n          OPENTELEMETRY_COLLECTOR_CONFIG_FILE: /var/task/collector.yaml\n```\n\n------\n*Made with* ![:heart:](https://a.slack-edge.com/production-standard-emoji-assets/10.2/apple-medium/2764-fe0f.png) *@ [Lightstep](http://lightstep.com/)*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flightstep%2Fopentelemetry-lambda-extension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flightstep%2Fopentelemetry-lambda-extension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flightstep%2Fopentelemetry-lambda-extension/lists"}