feat: integrate OpenTelemetry in opengemini-client-go#234
Open
chenhuansome wants to merge 2 commits intoopenGemini:mainfrom
Open
feat: integrate OpenTelemetry in opengemini-client-go#234chenhuansome wants to merge 2 commits intoopenGemini:mainfrom
chenhuansome wants to merge 2 commits intoopenGemini:mainfrom
Conversation
9e3ee8c to
44f6a48
Compare
xuthus5
reviewed
Aug 23, 2025
Member
|
the format of the commit message content does not comply with the specifications. it must be |
199c033 to
643330e
Compare
xuthus5
reviewed
Aug 24, 2025
643330e to
b9c267c
Compare
xuthus5
reviewed
Aug 27, 2025
Signed-off-by: chenhuan <xiangyuyu_2024@qq.com>
Signed-off-by: chenhuan <xiangyuyu_2024@qq.com>
b9c267c to
17c6bb0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add OpenTelemetry support to the OpenGemini Go client to implement distributed tracing, metric collection, and log aggregation. The data format adheres to the OpenTelemetry protocol (OTLP), and it supports integration with mainstream observability tools such as Prometheus and Jaeger.
The Interceptor interface is defined, which includes the Query and Write methods. It is used to standardize the interception logic for handling query and write operations and provide a standard for subsequent interceptor implementations.
OtelClient uses OpenTelemetry for distributed tracing. It extracts and injects tracing context before the request and sets relevant attributes; after the request, it records information such as the response status.
Client supports adding multiple interceptors. Before and after executing an HTTP request, the closure functions of the interceptors are called in sequence, thereby enhancing the scalability of request processing and allowing additional operations to be inserted during the request lifecycle.