---
title: "Discussion on \"初嚐 OpenTelemetry Go Log  Beta\" | Hashnode"
description: "Discussion on \"初嚐 OpenTelemetry Go Log  Beta\". OpenTelemetry 入門指南。探索 OpenTelemetry Go 1.24.0 的日誌功能，了解如何與 slog 集成，實現易於使用的日誌記錄解決方案。"
url: "https://hashnode.com/posts/opentelemetry-go-log-beta/673a10bad5eb624921cf120c"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [初嚐 OpenTelemetry Go Log Beta](https://ganhua.wang/opentelemetry-go-log-beta?utm_source=hashnode&utm_medium=feed)

OpenTelemetry 入門指南。探索 OpenTelemetry Go 1.24.0 的日誌功能，了解如何與 slog 集成，實現易於使用的日誌記錄解決方案。

Nov 17, 2024 · 6 min read · ganhua.wang  
Updated Nov 21, 2024  
Read the article

-   [#opentelemetry](https://hashnode.com/tag/opentelemetry)
-   [#go](https://hashnode.com/tag/go)

## Written by

[雷N](https://hashnode.com/@nathanrayn)

@nathanrayn · Taipei, Taiwan

  
[View profile](https://hashnode.com/@nathanrayn)

## Responses 1

Markdown supported · ⌘↵ to post

[Ken Chen](https://hashnode.com/@kenwschen)

[May 2, 2025](https://hashnode.com/posts/opentelemetry-go-log-beta/673a10bad5eb624921cf120c/comment/68141ceaabe585b654efdaf1)

otel 後來有增加對 caller 的支援，現在要加入只要用

```
logger = otelslog.NewLogger(name, otelslog.WithSource(true))
```

看起來更方便了
