ClickHouse / ClickHouse/clickhouse-go

OpenTelemetry tracing instrumentation

Open
#1,444 2 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement feature-completeness observability Q1-FY-2026
Dominant language
Go
Stars
3.3k
Forks
684
Avg merge
2d 3h
Merged PRs (30d)
14

Description

Discussed in https://github.com/ClickHouse/clickhouse-go/discussions/1267

Originally posted by tanenbaum April 9, 2024
Hello!

I was looking at how I might get instrumentation out of the library, both traces and metrics. I noticed that the ch-go "low level" API instruments various code paths, like https://github.com/ClickHouse/ch-go/blob/main/query.go#L609. I did at first think this library used those code paths, but as far as I can tell it is only sharing the driver.Conn interface definition and not using the ch-go client.

Is there any plan to do the same sort of instrumentation in this library? Would you like contributions in this area?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with discussion 1267 and compare the instrumentation example in ch-go/query.go around line 609 with the clickhouse-go driver paths. Determine which tracing and metrics scope the project wants and how completion would be verified; the issue does not yet define an implementation target or acceptance criteria.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
observability
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.