mirror of
https://github.com/qdrant/landing_page.git
synced 2026-10-09 21:08:31 +02:00
* Document audit logging tracing ID support (v1.18.0) Add a "Tracing IDs" subsection to the Audit Logging section of security.md, and code snippets for all six client SDKs showing how to attach an x-request-id header to requests so it appears in audit log entries. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * Small edits * Don't hide imports in Python snippet --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
18 lines
344 B
Go
18 lines
344 B
Go
package snippet
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/qdrant/go-client/qdrant"
|
|
)
|
|
|
|
func Main() {
|
|
// @hide-start
|
|
client, err := qdrant.NewClient(&qdrant.Config{Host: "localhost", Port: 6334})
|
|
if err != nil { panic(err) }
|
|
// @hide-end
|
|
|
|
ctx := qdrant.WithHeader(context.Background(), "x-request-id", "my-trace-id")
|
|
client.ListCollections(ctx)
|
|
}
|