Skip to content

Commit

Permalink
add document for Alibaba Go Auto Instrumentation (#224)
Browse files Browse the repository at this point in the history
  • Loading branch information
123liuziming authored Feb 20, 2025
1 parent 451baba commit a639508
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/component/middleware/08-tracing.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,16 @@ func grpcCli() (*googlegrpc.ClientConn, error) {
}
```

#### 自动采集数据

如果不想手动修改代码,您还可以使用一些框架进行OpenTelemetry数据的自动采集,比如[Alibaba Go Auto Instrumentation](https://github.com/alibaba/opentelemetry-go-auto-instrumentation) (后续将正式捐赠至[OpenTelemetry官方](https://github.com/open-telemetry/opentelemetry-go-compile-instrumentation))。

您可以参考[文档](https://github.com/alibaba/opentelemetry-go-auto-instrumentation/blob/main/README.md)来编译您的Kratos应用。

### References

* https://opentelemetry.io/
* https://github.com/open-telemetry/opentelemetry-go/tree/main/example
* https://pkg.go.dev/go.opentelemetry.io/otel
* https://github.com/alibaba/opentelemetry-go-auto-instrumentation
* https://github.com/open-telemetry/opentelemetry-go-compile-instrumentation
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,17 @@ func grpcCli() (*googlegrpc.ClientConn, error) {
}
```

#### Automatic Data Collection

If you don't want to modify the code manually, you can also use Agent for automatic collection of OpenTelemetry data, such as [Alibaba Go Auto Instrumentation](https://github.com/alibaba/opentelemetry-go-auto-instrumentation) (which will later be officially donated to [OpenTelemetry Official Repository](https://github.com/open-telemetry/opentelemetry-go-compile-instrumentation)).

You can refer to the [documentation](https://github.com/alibaba/opentelemetry-go-auto-instrumentation/blob/main/README.md) to compile your Kratos application.

### References

* https://opentelemetry.io/
* https://github.com/open-telemetry/opentelemetry-go/tree/main/example
* https://pkg.go.dev/go.opentelemetry.io/otel
* https://github.com/alibaba/opentelemetry-go-auto-instrumentation
* https://github.com/open-telemetry/opentelemetry-go-compile-instrumentation

0 comments on commit a639508

Please sign in to comment.