Skip to content

Add golang-otel template #89

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add golang-otel template #89

wants to merge 1 commit into from

Conversation

welteki
Copy link
Member

@welteki welteki commented Jun 3, 2025

Description

Add a new template named golang-otel that has built-in support for OpenTelemetry traces.
The template is based on the golang-middleware template.

  • Supports exporter configuration through environment variables. (Similar to otel auto-instrumentation agent for other languages.)
  • Supports otlp and console exporters.
  • Instruments the function handler automatically using the otelhttp package.
  • Allows users to easily add custom traces.

How Has This Been Tested?

Verified the template in various examples.

How are existing users impacted? What migration steps/scripts do we need?

This change adds a new template and does not directly impact existing users.

Checklist:

I have:

  • updated the documentation and/or roadmap (if required)
  • read the CONTRIBUTION guide
  • signed-off my commits with git commit -s
  • added unit tests

Signed-off-by: Han Verstraete (OpenFaaS Ltd) <[email protected]>
@welteki welteki marked this pull request as ready for review June 4, 2025 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant