Skip to content
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

refine document for opentelemetry-compile-time-instrumentation #1234

Merged
merged 9 commits into from
Feb 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -176,3 +176,9 @@ func main() {
## Full Examples

For a full usage: [example](https://github.com/cloudwego/hertz-examples/tree/main/opentelemetry)

## More
### Compile-time instrumentation
If you don't want to use open-telemetry through sdk, you can also use open-telemetry's official recommended compile-time instrumentation, which allows users to automatically use open-telemetry without modifying the source code, related links:
1. [open-telemetry official project link](https://github.com/open-telemetry/opentelemetry-go-compile-instrumentation)
2. [open-telemetry official technical blog](https://opentelemetry.io/blog/2025/go-compile-time-instrumentation)
Original file line number Diff line number Diff line change
Expand Up @@ -204,3 +204,9 @@ func main() {
}
}
```

## More
### Compile-time instrumentation
If you don't want to use open-telemetry through sdk, you can also use open-telemetry's official recommended compile-time instrumentation, which allows users to automatically use open-telemetry without modifying the source code, related links:
1. [open-telemetry official project link](https://github.com/open-telemetry/opentelemetry-go-compile-instrumentation)
2. [open-telemetry official technical blog](https://opentelemetry.io/blog/2025/go-compile-time-instrumentation)
Original file line number Diff line number Diff line change
Expand Up @@ -172,3 +172,9 @@ func main() {
## 完整使用示例

完整的使用示例详见 [example](https://github.com/cloudwego/hertz-examples/tree/main/opentelemetry)

## 更多
### 编译时注入
如果您不想通过sdk的方式接入open-telemetry,您还可以使用open-telemetry官方推荐的编译时注入方案,该方案可以使得用户在不修改源代码的前提下自动接入open-telemetry,相关链接:
1. [open-telemetry官方项目链接](https://github.com/open-telemetry/opentelemetry-go-compile-instrumentation)
2. [open-telemetry官方技术博客](https://opentelemetry.io/blog/2025/go-compile-time-instrumentation)
Original file line number Diff line number Diff line change
Expand Up @@ -202,3 +202,9 @@ func main() {
}
}
```

## 更多
### 编译时注入
如果您不想通过sdk的方式接入open-telemetry,您还可以使用open-telemetry官方推荐的编译时注入方案,该方案可以使得用户在不修改源代码的前提下自动接入open-telemetry,相关链接:
1. [open-telemetry官方项目链接](https://github.com/open-telemetry/opentelemetry-go-compile-instrumentation)
2. [open-telemetry官方技术博客](https://opentelemetry.io/blog/2025/go-compile-time-instrumentation)