Skip to content

Files

Latest commit

 

History

History
58 lines (39 loc) · 1.4 KB

File metadata and controls

58 lines (39 loc) · 1.4 KB

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

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.

Document

Links