diff --git a/docs/component/middleware/08-tracing.md b/docs/component/middleware/08-tracing.md index 6da4e0bae..e3922b0ed 100644 --- a/docs/component/middleware/08-tracing.md +++ b/docs/component/middleware/08-tracing.md @@ -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 diff --git a/i18n/en/docusaurus-plugin-content-docs/current/component/middleware/08-tracing.md b/i18n/en/docusaurus-plugin-content-docs/current/component/middleware/08-tracing.md index 647caf86c..bb0ab090d 100644 --- a/i18n/en/docusaurus-plugin-content-docs/current/component/middleware/08-tracing.md +++ b/i18n/en/docusaurus-plugin-content-docs/current/component/middleware/08-tracing.md @@ -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 +