lambda-otel-container

command module
v0.0.0-...-a92e432 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 27, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

README

lambda-otel-container

This project demonstrates the use of OpenTelemetry with an AWS Lambda function written in Go and running in a container.

Overview

This project is built using the opentelemetry-lambda via an extension to send traces to honeycomb.

Rather than using the lambda layer, I am building collector from source in the Dockerfile.

Outside of these changes the project is the same as the examples on github.com/awslabs/aws-lambda-go-api-proxy, have a look at the main.goo for more details.

Deployment

To deploy this project I have included a Makefile with a deploy target, you should have a read over this to understand what it does.

It assumes you have a few environment variables set, I use direnv which can be configured to load these from a .envrc file.

#!/usr/bin/env bash

export HONEYCOMB_API_KEY=<YOUR API KEY HERE>
export HONEYCOMB_DATASET=dev
export HONEYCOMB_ENDPOINT=api.honeycomb.io:443

License

This application is released under Apache 2.0 license and is copyright Mark Wolfe.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL