[PR #12110] [MERGED] logutil: add Trace and TraceContext helpers #13711

Closed
opened 2026-04-13 00:33:36 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/12110
Author: @mxyng
Created: 8/28/2025
Status: Merged
Merged: 9/2/2025
Merged by: @mxyng

Base: mainHead: mxyng/log-trace


📝 Commits (1)

  • 4dc1b9b logutil: add Trace and TraceContext helpers

📊 Changes

7 files changed (+22 additions, -18 deletions)

View changed files

📝 harmony/harmonyparser.go (+2 -3)
📝 llm/server.go (+1 -1)
📝 logutil/logutil.go (+9 -0)
📝 ml/backend/ggml/ggml.go (+3 -3)
📝 model/bytepairencoding.go (+2 -3)
📝 model/model.go (+1 -3)
📝 model/sentencepiece.go (+4 -5)

📄 Description

setting up trace logging is verbose so add a couple helpers modeled after log/slog helpers to make it simpler


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/12110 **Author:** [@mxyng](https://github.com/mxyng) **Created:** 8/28/2025 **Status:** ✅ Merged **Merged:** 9/2/2025 **Merged by:** [@mxyng](https://github.com/mxyng) **Base:** `main` ← **Head:** `mxyng/log-trace` --- ### 📝 Commits (1) - [`4dc1b9b`](https://github.com/ollama/ollama/commit/4dc1b9b990577f28640cec8a37d9677908c4dd08) logutil: add Trace and TraceContext helpers ### 📊 Changes **7 files changed** (+22 additions, -18 deletions) <details> <summary>View changed files</summary> 📝 `harmony/harmonyparser.go` (+2 -3) 📝 `llm/server.go` (+1 -1) 📝 `logutil/logutil.go` (+9 -0) 📝 `ml/backend/ggml/ggml.go` (+3 -3) 📝 `model/bytepairencoding.go` (+2 -3) 📝 `model/model.go` (+1 -3) 📝 `model/sentencepiece.go` (+4 -5) </details> ### 📄 Description setting up trace logging is verbose so add a couple helpers modeled after `log/slog` helpers to make it simpler --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-13 00:33:36 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#13711