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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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