Skip to content

alibaba/opentelemetry-go-auto-instrumentation

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

883f029 · Aug 8, 2024

History

30 Commits
Aug 8, 2024
Jul 30, 2024
Aug 1, 2024
Aug 8, 2024
Aug 8, 2024
Aug 8, 2024
Jul 24, 2024
Jul 24, 2024
Jul 24, 2024
Aug 5, 2024
Aug 8, 2024
Aug 8, 2024
Jul 24, 2024
Aug 8, 2024

Repository files navigation

OpenTelemetry Go Auto Instrumentation

Introduction

This project provides an automatic solution for Golang applications that want to leverage OpenTelemetry to enable effective observability.

How to Build

Run the following command to build otel-go-auto-instrumentation:

$ make build

For all supported platforms:

$ make all

To run all tests:

$ make test

How to Use

Replace go build with the following command to build you project:

# go build
$ ./otel-go-auto-instrumentation

The arguments for go build should be placed after the -- delimiter:

# go build -gcflags="-m" cmd/app
$ ./otel-go-auto-instrumentation -- -gcflags="-m" cmd/app

The arguments for the tool itself should be placed before the -- delimiter:

$ ./otel-go-auto-instrumentation -help # print help doc
$ ./otel-go-auto-instrumentation -debuglog # print log to file
$ ./otel-go-auto-instrumentation -verbose -- -gcflags="-m" cmd/app # print verbose log

If you find any failures during the process, it's likely a bug. Please feel free to file a bug at GitHub Issues to help us enhance this project.

Community

We are looking forward to your feedback and suggestions. Please feel free to join our DingTalk group to communicate with us.

Also there are several documents that you may find useful: