mirror of
https://github.com/qdrant/landing_page.git
synced 2026-10-10 05:18:32 +02:00
Document audit logging tracing ID support (v1.18.0) (#2287)
* 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>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
e231339968
commit
c4ee144773
+18
@@ -0,0 +1,18 @@
|
||||
package com.example.snippets_amalgamation;
|
||||
|
||||
import io.qdrant.client.QdrantClient;
|
||||
import io.qdrant.client.QdrantGrpcClient;
|
||||
import io.qdrant.client.RequestHeaders;
|
||||
import io.grpc.Context;
|
||||
|
||||
public class Snippet {
|
||||
public static void run() throws Exception {
|
||||
// @hide-start
|
||||
QdrantClient client = new QdrantClient(
|
||||
QdrantGrpcClient.newBuilder("localhost", 6334, false).build());
|
||||
// @hide-end
|
||||
|
||||
Context ctx = RequestHeaders.withHeader(Context.current(), "x-request-id", "my-trace-id");
|
||||
ctx.run(() -> client.listCollectionsAsync());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user